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 <maz@kernel.org>
[tabba@: had to assign it a new number since there are existing
flags now]
Signed-off-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
This commit is contained in:
Marc Zyngier
2022-01-06 10:23:51 +00:00
committed by Quentin Perret
parent d8bf88fa79
commit e439ca0810

View File

@@ -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;
/*