Re: [PATCH] x86/tdx: Generate SIGBUS on userspace MMIO
From: Kirill A. Shutemov <hidden>
Date: 2024-06-10 13:34:37
Also in:
lkml
From: Kirill A. Shutemov <hidden>
Date: 2024-06-10 13:34:37
Also in:
lkml
On Tue, May 28, 2024 at 01:09:19PM +0300, Kirill A. Shutemov wrote:
Currently, attempting to perform MMIO from userspace in a TDX guest leads to a warning about an unexpected #VE and SIGSEGV being delivered to the process. Enlightened userspace may choose to handle MMIO on their own if the kernel does not emulate it. Handle the EPT_VIOLATION exit reason for userspace and deliver SIGBUS instead of SIGSEGV. SIGBUS is more appropriate for the MMIO situation. Signed-off-by: Kirill A. Shutemov <redacted>
Any feedback? -- Kiryl Shutsemau / Kirill A. Shutemov