Re: [Xen-devel] [V6 4/4] libxc: expose xsaves/xgetbv1/xsavec to hvm guest

2015-10-12 Thread Andrew Cooper
On 12/10/15 07:07, Shuai Ruan wrote: > This patch exposes xsaves/xgetbv1/xsavec to hvm guest. > The reserved bits of eax/ebx/ecx/edx must be cleaned up > when call cpuid(0dh) with leaf 1 or 2..63. > > According to the spec the following bits must be reserved: > For leaf 1, bits 03-04/08-31 of ecx i

[Xen-devel] [V6 4/4] libxc: expose xsaves/xgetbv1/xsavec to hvm guest

2015-10-11 Thread Shuai Ruan
This patch exposes xsaves/xgetbv1/xsavec to hvm guest. The reserved bits of eax/ebx/ecx/edx must be cleaned up when call cpuid(0dh) with leaf 1 or 2..63. According to the spec the following bits must be reserved: For leaf 1, bits 03-04/08-31 of ecx is reserved. Edx is reserved. For leaf 2...63, bi