public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 0/3] task switch fixes
@ 2008-07-19 22:08 Marcelo Tosatti
  2008-07-19 22:08 ` [patch 1/3] KVM: task switch: translate guest segment limit to virt-extension byte granular field Marcelo Tosatti
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Marcelo Tosatti @ 2008-07-19 22:08 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm

Some more fixes for the task switch emulation.

> I think the problem is in seg_desct_to_kvm_desct() (besides the extra
> T's).  It copies the limit from the descriptor directly to the kvm_segment
> structure.

You're right.

After fixing that 2003 Server task switches successfully to an EIP that
contains junk, a few UD's are injected and then a GP, which BSOD's
asking for a reboot.

All task switch state is valid, can't find anything that would generate
any exception. And even if it did, #GP and #TS are handled with a BSOD.

Xen has this special case for when the TSS's first 104 bytes cross a page
boundary (docs mention this should be avoided since processor uses the
physical addresses as base), but not the case with 2003.

XP sets CR3 with invalid bits. Xen simply resets the guest in that case,
KVM could do the same.


-- 


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-07-21  8:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-19 22:08 [patch 0/3] task switch fixes Marcelo Tosatti
2008-07-19 22:08 ` [patch 1/3] KVM: task switch: translate guest segment limit to virt-extension byte granular field Marcelo Tosatti
2008-07-20  9:22   ` Avi Kivity
2008-07-20 16:43     ` Marcelo Tosatti
2008-07-21  8:14       ` Avi Kivity
2008-07-19 22:08 ` [patch 2/3] KVM: task switch: check task busy state Marcelo Tosatti
2008-07-19 22:08 ` [patch 3/3] KVM: task switch: check for segment base translation failure Marcelo Tosatti
2008-07-20  9:24   ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox