Revert "ANDROID: KVM: arm64: Ignore length of 0 in kvm_flush_dcache_to_poc()"

This reverts commit 3b0c9ad7c7.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: I0c8e335994c7c7a8cfe29bfef20d624362b03aec
This commit is contained in:
Will Deacon
2022-07-07 15:49:09 +01:00
parent f6b5b12a3b
commit eeb2fb00df

View File

@@ -182,13 +182,8 @@ static inline void *__kvm_vector_slot2addr(void *base,
struct kvm;
#define kvm_flush_dcache_to_poc(a, l) do { \
unsigned long __a = (unsigned long)(a); \
unsigned long __l = (unsigned long)(l); \
\
if (__l) \
dcache_clean_inval_poc(__a, __a + __l); \
} while (0)
#define kvm_flush_dcache_to_poc(a,l) \
dcache_clean_inval_poc((unsigned long)(a), (unsigned long)(a)+(l))
static inline bool vcpu_has_cache_enabled(struct kvm_vcpu *vcpu)
{