projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfe3950
)
ARM: KVM: vgic: decouple alignment restriction from page size
author
Marc Zyngier
<marc.zyngier@arm.com>
Wed, 12 Dec 2012 14:37:10 +0000
(14:37 +0000)
committer
Christoffer Dall
<cdall@cs.columbia.edu>
Wed, 6 Mar 2013 23:48:44 +0000
(15:48 -0800)
The virtual GIC is supposed to be 4kB aligned. On a 64kB page
system, comparing the alignment to PAGE_SIZE is wrong.
Use SZ_4K instead.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/vgic.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/kvm/vgic.c
b/arch/arm/kvm/vgic.c
index c9a17316e9fe75f2a8dec4fe3893816d3d0730c9..161d5c15f0f0c5b124d6a931c30284d36f1e52f2 100644
(file)
--- a/
arch/arm/kvm/vgic.c
+++ b/
arch/arm/kvm/vgic.c
@@
-1484,7
+1484,7
@@
int kvm_vgic_set_addr(struct kvm *kvm, unsigned long type, u64 addr)
if (addr & ~KVM_PHYS_MASK)
return -E2BIG;
- if (addr &
~PAGE_MASK
)
+ if (addr &
(SZ_4K - 1)
)
return -EINVAL;
mutex_lock(&kvm->lock);