Re: [PATCH] x86/tdx: Generate SIGBUS on userspace MMIO

From: Kirill A. Shutemov
Date: Thu May 23 2024 - 06:14:47 EST


On Tue, May 21, 2024 at 06:35:49AM -0700, Kuppuswamy Sathyanarayanan wrote:
>
> On 5/21/24 12:35 AM, Kirill A. Shutemov wrote:
> > Currently attempt to do MMIO from userspace in TDX guest leads to
> > warning about unexpect #VE and SIGSEGV being delivered to the process.
> >
> > Enlightened userspace might choose to deal with MMIO on their own if
> > kernel doesn't emulate it.
>
> Any specific use cases ? Like who is using it?

Microsoft folks wanted it. Chris, Dexuan, John, any comments?

But it is generally right thing to do. SIGBUS is right signal to deliver.

--
Kiryl Shutsemau / Kirill A. Shutemov