From 4ee39eb82d9763e2942cac84de6cf284c67510eb Mon Sep 17 00:00:00 2001 From: Marc Zyngier Date: Thu, 6 Jan 2022 10:23:51 +0000 Subject: [PATCH] ANDROID: KVM: arm64: Introduce KVM_ARCH_FLAG_MMIO_GUARD flag Add a per-VM flag indicating that the guest has bought into the MMIO guard enforcement framework. Bug: 357781595 Change-Id: If60b2b38a419a9f44ebe9029f55dd016fd2444b5 Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/kvm_host.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index d5b313978888..92930cef4bff 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -340,6 +340,8 @@ struct kvm_arch { #define KVM_ARCH_FLAG_ID_REGS_INITIALIZED 7 /* Fine-Grained UNDEF initialised */ #define KVM_ARCH_FLAG_FGU_INITIALIZED 8 + /* Guest has bought into the MMIO guard extension */ +#define KVM_ARCH_FLAG_MMIO_GUARD 9 unsigned long flags; /* VM-wide vCPU feature set */