KVM: VMX: allow rmode_tss_base() to work with >2G of guest memory
authorIzik Eidus <izike@qumranet.com>
Sun, 19 Aug 2007 19:24:58 +0000 (22:24 +0300)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:24 +0000 (10:18 +0200)
Signed-off-by: Izik Eidus <izike@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c

index cd999c0a24c4c79cf95e8f45ebc571881024951d..b40066854c143f391663ef32e0e4a7d00979c00d 100644 (file)
@@ -1030,7 +1030,7 @@ static void enter_pmode(struct kvm_vcpu *vcpu)
        vmcs_write32(GUEST_CS_AR_BYTES, 0x9b);
 }
 
-static int rmode_tss_base(struct kvm* kvm)
+static gva_t rmode_tss_base(struct kvm* kvm)
 {
        gfn_t base_gfn = kvm->memslots[0].base_gfn + kvm->memslots[0].npages - 3;
        return base_gfn << PAGE_SHIFT;