audk/OvmfPkg/Bhyve
Michael Roth f0ed194236 OvmfPkg: Don't make APIC MMIO accesses with encryption bit set
For the most part, OVMF will clear the encryption bit for MMIO regions,
but there is currently one known exception during SEC when the APIC
base address is accessed via MMIO with the encryption bit set for
SEV-ES/SEV-SNP guests. In the case of SEV-SNP, this requires special
handling on the hypervisor side which may not be available in the
future[1], so make the necessary changes in the SEC-configured page
table to clear the encryption bit for 4K region containing the APIC
base address.

[1] https://lore.kernel.org/lkml/20240208002420.34mvemnzrwwsaesw@amd.com/#t

Suggested-by: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Min Xu <min.m.xu@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Jianyong Wu <jianyong.wu@arm.com>
Cc: Anatol Belski <anbelski@linux.microsoft.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
2024-05-02 12:43:50 +00:00
..
AcpiPlatformDxe OvmfPkg/Bhyve: don't exit early if RSDP is not found in memory 2023-09-08 16:06:10 +00:00
AcpiTables OvmfPkg: Bhyve: Delete unused AcpiTables/Ssdt.asl file 2021-12-23 07:48:08 +00:00
BhyveRfbDxe OvmfPkg: exclude the CSM-based VideoDxe driver 2023-12-07 18:04:57 +00:00
PlatformPei OvmfPkg/Bhyve: use a proper PCI IO range 2023-12-07 16:59:09 +00:00
ResetVector OvmfPkg/Bhyve: Copy Real16ToFlat32.asm and enable cache in CR0 2020-11-27 16:48:47 +00:00
SmbiosPlatformDxe OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
BhyveDefines.fdf.inc OvmfPkg/Bhyve: rename files to remove 'Pkg' infix 2020-08-24 17:57:07 +00:00
BhyveX64.dsc OvmfPkg: Don't make APIC MMIO accesses with encryption bit set 2024-05-02 12:43:50 +00:00
BhyveX64.fdf OvmfPkg: remove Rule.Common.USER_DEFINED.CSM from all FDF files 2023-12-07 18:04:57 +00:00
FvmainCompactScratchEnd.fdf.inc Add BhyvePkg, to support the bhyve hypervisor 2020-07-31 13:03:10 +00:00
License.txt Add BhyvePkg, to support the bhyve hypervisor 2020-07-31 13:03:10 +00:00
VarStore.fdf.inc Add BhyvePkg, to support the bhyve hypervisor 2020-07-31 13:03:10 +00:00