From e439ca081061b2b35ea70329adda50a607683c8b 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: 209580772 Change-Id: If60b2b38a419a9f44ebe9029f55dd016fd2444b5 Signed-off-by: Marc Zyngier [tabba@: had to assign it a new number since there are existing flags now] Signed-off-by: Fuad Tabba Signed-off-by: Quentin Perret --- arch/arm64/include/asm/kvm_host.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index b7d175e73a1b..6ebb2de3b120 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -222,7 +222,8 @@ struct kvm_arch { #define KVM_ARCH_FLAG_EL1_32BIT 4 /* PSCI SYSTEM_SUSPEND enabled for the guest */ #define KVM_ARCH_FLAG_SYSTEM_SUSPEND_ENABLED 5 - + /* Guest has bought into the MMIO guard extension */ +#define KVM_ARCH_FLAG_MMIO_GUARD 6 unsigned long flags; /*