Commit:     1ea252afcd4b264b71d9c3f55358ff5ba4c04f1b
Parent:     ff42697436ddf5bd026e2cb4f117656b967f0709
Author:     Avi Kivity <[EMAIL PROTECTED]>
AuthorDate: Thu Mar 8 11:48:09 2007 +0200
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Thu May 3 10:52:23 2007 +0300

    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 <[EMAIL PROTECTED]>
 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 cab26f3..2d90577 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,
 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);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to