diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-10-25 17:42:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-11-09 16:22:43 -0800 |
commit | 15076d40b0ce2e04cf383425a5a26e01f53b2aee (patch) | |
tree | 19f7a50daf4e3725c0fb350c57aa8eae425a374f | |
parent | 42d7bdfc3320039bb9310703d6475a62f5c74772 (diff) |
KVM: get_tss_base_addr() should return a gpa_t
commit abb3911965c1bd8eea305f64d4840a314259d96d upstream.
If TSS we are switching to resides in high memory task switch will fail
since address will be truncated. Windows2k3 does this sometimes when
running with more then 4G
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index aa4c46f9b17..26e454ccd0a 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -3762,7 +3762,7 @@ static int save_guest_segment_descriptor(struct kvm_vcpu *vcpu, u16 selector, return kvm_write_guest(vcpu->kvm, gpa, seg_desc, 8); } -static u32 get_tss_base_addr(struct kvm_vcpu *vcpu, +static gpa_t get_tss_base_addr(struct kvm_vcpu *vcpu, struct desc_struct *seg_desc) { u32 base_addr; |