ANDROID: KVM: arm64: iommu: Use same type for kernel/hyp
Although hyp_spinlock_t and u32 have the same size, that makes the build system duplicate the type for EL1/EL2 builds impacting KMI. Use a single type for lock, and cast it when used at EL2. Bug: 350677978 Bug: 357781595 Bug: 384432312 Change-Id: I13b7330dcf5c5340e3bad35eab9808388e9a84a3 Signed-off-by: Mostafa Saleh <smostafa@google.com>
This commit is contained in:
committed by
Aleksei Vetrov
parent
412d297361
commit
2e19490f3f
+1
-8
@@ -5,9 +5,6 @@
|
||||
#include <asm/kvm_host.h>
|
||||
#include <kvm/power_domain.h>
|
||||
#include <linux/io-pgtable.h>
|
||||
#ifdef __KVM_NVHE_HYPERVISOR__
|
||||
#include <nvhe/spinlock.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Domain ID for identity mapped domain that the host can attach
|
||||
@@ -58,11 +55,7 @@ extern void **kvm_nvhe_sym(kvm_hyp_iommu_domains);
|
||||
(1 << get_order(KVM_IOMMU_DOMAINS_ROOT_SIZE))
|
||||
|
||||
struct kvm_hyp_iommu {
|
||||
#ifdef __KVM_NVHE_HYPERVISOR__
|
||||
hyp_spinlock_t lock;
|
||||
#else
|
||||
u32 unused;
|
||||
#endif
|
||||
u32 lock; /* lock size verified in kvm_iommu_get_lock. */
|
||||
struct kvm_power_domain power_domain;
|
||||
bool power_is_off;
|
||||
ANDROID_KABI_RESERVE(1);
|
||||
|
||||
Reference in New Issue
Block a user