RE: [EXTERNAL] Re: [svsm-devel] EDK2 CAA Page Fragmented Allocation

Jon Lange <[email protected]>
Newsgroups dev.linux.lists.coconut-svsm
Message-ID <SA6PR21MB43036655054213620D451C0BCA9EA@SA6PR21MB4303.namprd21.prod.outlook.com>
Adam wrote:

> If the guest accesses a GPA with the c-bit disabled, then KVM will rmpupdate that page to shared.
> If the guest then accesses the same GPA with the c-bit enabled, then KVM will rmpupdate it back to
> private, but it will be unaccepted and thus give the 0x404 error. I've seen this happen while investigating
> several different bugs.

This is a compelling theory.  If the OVMF mapping of the CAA page does not set the C-bit, then this would result in exactly the behavior that we are seeing, because the OVMF access would cause the page to flip to shared, and the next SVSM access would cause the page to flip to private but unvalidated, leading to the 0x404 error.  Gerd, can you check the OVMF mapping of the CAA page to ensure it has the C-bit set?

-Jon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.