public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Stupid Xen vs KVM question
@ 2014-12-04 22:59 Andy Lutomirski
  2014-12-05  2:24 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 5+ messages in thread
From: Andy Lutomirski @ 2014-12-04 22:59 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk, kvm list, Rusty Russell

This code in arch/x86/kernel/entry_32.S is wrong:

#ifdef CONFIG_PARAVIRT
    /*
     * The kernel can't run on a non-flat stack if paravirt mode
     * is active.  Rather than try to fixup the high bits of
     * ESP, bypass this code entirely.  This may break DOSemu
     * and/or Wine support in a paravirt VM, although the option
     * is still available to implement the setting of the high
     * 16-bits in the INTERRUPT_RETURN paravirt-op.
     */
    cmpl $0, pv_info+PARAVIRT_enabled
    jne restore_nocheck
#endif

On KVM guests, it notices that paravirt is enabled and bails.  It
should work fine on KVM -- the condition it should be checking is
whether we have native segmentation.

Do you know the right way to ask that?

Thanks,
Andy

-- 
Andy Lutomirski
AMA Capital Management, LLC

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

end of thread, other threads:[~2014-12-05 17:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-04 22:59 Stupid Xen vs KVM question Andy Lutomirski
2014-12-05  2:24 ` Konrad Rzeszutek Wilk
2014-12-05  7:29   ` Paolo Bonzini
2014-12-05 16:09     ` Konrad Rzeszutek Wilk
2014-12-05 17:52       ` Andy Lutomirski

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