Commit:     cd0536d7cb4d5d5c5aa37ccd3edd71c4b0524add
Parent:     653e3108b7d6097d25089d25ab4e99bc58b28962
Author:     Avi Kivity <[EMAIL PROTECTED]>
AuthorDate: Tue May 8 11:34:07 2007 +0300
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Mon Jul 16 12:05:41 2007 +0300

    KVM: Fix vmx I/O bitmap initialization on highmem systems
    kunmap() expects a struct page, not a virtual address.  Fixes an oops 
    kvm-intel.ko on i386 with CONFIG_HIGHMEM.
    Thanks to Michael Ivanov <[EMAIL PROTECTED]> for reporting.
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
 drivers/kvm/vmx.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index e39ebe0..34171d9 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -2274,11 +2274,11 @@ static int __init vmx_init(void)
        iova = kmap(vmx_io_bitmap_a);
        memset(iova, 0xff, PAGE_SIZE);
        clear_bit(0x80, iova);
-       kunmap(iova);
+       kunmap(vmx_io_bitmap_a);
        iova = kmap(vmx_io_bitmap_b);
        memset(iova, 0xff, PAGE_SIZE);
-       kunmap(iova);
+       kunmap(vmx_io_bitmap_b);
        r = kvm_init_arch(&vmx_arch_ops, THIS_MODULE);
        if (r)
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