[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <DARCHDIZG7IP.2VTEVNMVX8R1E@ventanamicro.com>
Date: Fri, 20 Jun 2025 14:04:28 +0200
From: Radim Krčmář <rkrcmar@...tanamicro.com>
To: "Xu Lu" <luxu.kernel@...edance.com>, <anup@...infault.org>,
<atish.patra@...ux.dev>, <paul.walmsley@...ive.com>, <palmer@...belt.com>,
<aou@...s.berkeley.edu>, <alex@...ti.fr>
Cc: <kvm@...r.kernel.org>, <kvm-riscv@...ts.infradead.org>,
<linux-riscv@...ts.infradead.org>, <linux-kernel@...r.kernel.org>,
"linux-riscv" <linux-riscv-bounces@...ts.infradead.org>
Subject: Re: [PATCH] RISC-V: KVM: Delegate illegal instruction fault
2025-06-20T17:17:20+08:00, Xu Lu <luxu.kernel@...edance.com>:
> Delegate illegal instruction fault to VS mode in default to avoid such
> exceptions being trapped to HS and redirected back to VS.
>
> Signed-off-by: Xu Lu <luxu.kernel@...edance.com>
> ---
> diff --git a/arch/riscv/include/asm/kvm_host.h b/arch/riscv/include/asm/kvm_host.h
> @@ -48,6 +48,7 @@
> + BIT(EXC_INST_ILLEGAL) | \
You should also remove the dead code in kvm_riscv_vcpu_exit.
And why not delegate the others as well?
(EXC_LOAD_MISALIGNED, EXC_STORE_MISALIGNED, EXC_LOAD_ACCESS,
EXC_STORE_ACCESS, and EXC_INST_ACCESS.)
Thanks.
Powered by blists - more mailing lists