linux/drivers/virt/coco
Will Deacon 2459a0b149 drivers/virt: pkvm: Don't fail ioremap() call if MMIO_GUARD fails
[ Upstream commit d44679fb95 ]

Calling the MMIO_GUARD hypercall from guests which have not been
enrolled (e.g. because they are running without pvmfw) results in
-EINVAL being returned. In this case, MMIO_GUARD is not active
and so we can simply proceed with the normal ioremap() routine.

Don't fail ioremap() if MMIO_GUARD fails; instead WARN_ON_ONCE()
to highlight that the pvm environment is slightly wonky.

Fixes: 0f12694958 ("drivers/virt: pkvm: Intercept ioremap using pKVM MMIO_GUARD hypercall")
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20241202145731.6422-2-will@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-12-14 20:03:17 +01:00
..
efi_secret virt: efi_secret: Convert to platform remove callback returning void 2024-03-09 11:37:18 +01:00
pkvm-guest drivers/virt: pkvm: Don't fail ioremap() call if MMIO_GUARD fails 2024-12-14 20:03:17 +01:00
sev-guest virt: sev-guest: Ensure the SNP guest messages do not exceed a page 2024-08-27 10:35:38 +02:00
tdx-guest [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
Kconfig drivers/virt: pkvm: Add initial support for running as a protected guest 2024-08-30 16:30:41 +01:00
Makefile drivers/virt: pkvm: Add initial support for running as a protected guest 2024-08-30 16:30:41 +01:00
tsm.c x86/sev: Extend the config-fs attestation support for an SVSM 2024-06-17 20:42:57 +02:00