projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff42697
)
KVM: Fix bogus sign extension in mmu mapping audit
author
Avi Kivity
<avi@qumranet.com>
Thu, 8 Mar 2007 09:48:09 +0000
(11:48 +0200)
committer
Avi Kivity
<avi@qumranet.com>
Thu, 3 May 2007 07:52:23 +0000
(10:52 +0300)
When auditing a 32-bit guest on a 64-bit host, sign extension of the page
table directory pointer table index caused bogus addresses to be shown on
audit errors.
Fix by declaring the index unsigned.
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/mmu.c
patch
|
blob
|
history
diff --git
a/drivers/kvm/mmu.c
b/drivers/kvm/mmu.c
index cab26f301eab5caed62b1a3dcf8c4c7896b23d8b..2d905770fd88a3bc23e75968a6084640ee310f2c 100644
(file)
--- a/
drivers/kvm/mmu.c
+++ b/
drivers/kvm/mmu.c
@@
-1360,7
+1360,7
@@
static void audit_mappings_page(struct kvm_vcpu *vcpu, u64 page_pte,
static void audit_mappings(struct kvm_vcpu *vcpu)
{
-
int
i;
+
unsigned
i;
if (vcpu->mmu.root_level == 4)
audit_mappings_page(vcpu, vcpu->mmu.root_hpa, 0, 4);