* [PATCH] get_tss_base_addr() should return gpa_t type.
@ 2009-10-25 15:42 Gleb Natapov
2009-10-25 15:46 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Gleb Natapov @ 2009-10-25 15:42 UTC (permalink / raw)
To: avi, mtosatti; +Cc: kvm
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>
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 11a6f2f..cbbda32 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -4057,7 +4057,7 @@ static int save_guest_segment_descriptor(struct kvm_vcpu *vcpu, u16 selector,
return kvm_write_guest_virt(dtable.base + index*8, seg_desc, sizeof(*seg_desc), vcpu);
}
-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 = get_desc_base(seg_desc);
--
Gleb.
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] get_tss_base_addr() should return gpa_t type.
2009-10-25 15:42 [PATCH] get_tss_base_addr() should return gpa_t type Gleb Natapov
@ 2009-10-25 15:46 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-10-25 15:46 UTC (permalink / raw)
To: Gleb Natapov; +Cc: mtosatti, kvm
On 10/25/2009 05:42 PM, Gleb Natapov wrote:
> 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
>
Applied and queued.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-25 15:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-25 15:42 [PATCH] get_tss_base_addr() should return gpa_t type Gleb Natapov
2009-10-25 15:46 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox