diff options
author | Avi Kivity <avi@qumranet.com> | 2007-03-08 04:48:09 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 03:52:23 -0400 |
commit | 1ea252afcd4b264b71d9c3f55358ff5ba4c04f1b (patch) | |
tree | 44573dbf1be2e7e688774b420cfd00ec2c4b7f7d /drivers/kvm/mmu.c | |
parent | ff42697436ddf5bd026e2cb4f117656b967f0709 (diff) |
KVM: Fix bogus sign extension in mmu mapping audit
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>
Diffstat (limited to 'drivers/kvm/mmu.c')
-rw-r--r-- | drivers/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index cab26f301eab..2d905770fd88 100644 --- 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, | |||
1360 | 1360 | ||
1361 | static void audit_mappings(struct kvm_vcpu *vcpu) | 1361 | static void audit_mappings(struct kvm_vcpu *vcpu) |
1362 | { | 1362 | { |
1363 | int i; | 1363 | unsigned i; |
1364 | 1364 | ||
1365 | if (vcpu->mmu.root_level == 4) | 1365 | if (vcpu->mmu.root_level == 4) |
1366 | audit_mappings_page(vcpu, vcpu->mmu.root_hpa, 0, 4); | 1366 | audit_mappings_page(vcpu, vcpu->mmu.root_hpa, 0, 4); |