Add I/O port filtering for AMDs sev module.
PATCH 1/1 Add I/O port filtering for AMDs sev module.
This adds a port allow list to allow PCIE, ACPI, PCI, DMA, RTC, etc and serial for easy debugging when debugging is enabled. The port allow list (switch statement) is copied directly from the tdx code.
Reviewed-by Keith Busch <[email protected]>
Signed-off-by Joshua Lilly <[email protected]>
--- arch/x86/coco/sev/core.c | 3 +++ arch/x86/coco/sev/shared.c | 41 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+)
arch/x86/coco/sev/core.c +3 -0
@@ -2638,6 +2638,9 @@ static int __init snp_init_platform_device(void)if (platform_device_register (&sev_guest_device))return -ENODEV ; +if (!sev_cfg.debug) + debug_enabled = false; +pr_info ("SNP guest platform device initialized.\n" );return 0 ; }
arch/x86/coco/sev/shared.c +41 -0
64 lines not on this page · raw message
Signature · 1 line
2.47.1