[Qemu-devel] Re: [PATCH v5] KVM: VMX: Enable XSAVE/XRSTORE for guest

2010-05-26 Thread Avi Kivity
On 05/26/2010 01:52 PM, Jan Kiszka wrote: Avi Kivity wrote: On 05/26/2010 12:19 PM, Sheng Yang wrote: I've done a prototype of LM support, would send out tomorrow. But the test case in QEmu side seems got something wrong. I always got an segfault at: qemu-kvm/hw/fw_cfg.c:223 223

[Qemu-devel] Re: [PATCH v5] KVM: VMX: Enable XSAVE/XRSTORE for guest

2010-05-26 Thread Jan Kiszka
Avi Kivity wrote: > On 05/26/2010 12:19 PM, Sheng Yang wrote: >> I've done a prototype of LM support, would send out tomorrow. But the >> test >> case in QEmu side seems got something wrong. I always got an segfault at: >> qemu-kvm/hw/fw_cfg.c:223 >> 223 s->entries[arch][key].data = data; >

[Qemu-devel] Re: [PATCH v5] KVM: VMX: Enable XSAVE/XRSTORE for guest

2010-05-26 Thread Avi Kivity
On 05/26/2010 12:19 PM, Sheng Yang wrote: From: Dexuan Cui This patch enable guest to use XSAVE/XRSTORE instructions. We assume that host_xcr0 would use all possible bits that OS supported. And we loaded xcr0 in the same way we handled fpu - do it as late as we can. Looks really good n