Commit 33f5fa16 authored by Izik Eidus's avatar Izik Eidus Committed by Avi Kivity

KVM: VMX: allow rmode_tss_base() to work with >2G of guest memory

Signed-off-by: default avatarIzik Eidus <izike@qumranet.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 7e778161
...@@ -1030,7 +1030,7 @@ static void enter_pmode(struct kvm_vcpu *vcpu) ...@@ -1030,7 +1030,7 @@ static void enter_pmode(struct kvm_vcpu *vcpu)
vmcs_write32(GUEST_CS_AR_BYTES, 0x9b); 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; gfn_t base_gfn = kvm->memslots[0].base_gfn + kvm->memslots[0].npages - 3;
return base_gfn << PAGE_SHIFT; return base_gfn << PAGE_SHIFT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment