[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 4/6] libxc: expose xsaves/xgetbv/xsavec to hvm guest



>>> On 02.07.15 at 16:02, <shuai.ruan@xxxxxxxxx> wrote:
> This patch exposes xsaves/xgetbv/xsavec to hvm guest.
> 
> Signed-off-by: Shuai Ruan <shuai.ruan@xxxxxxxxx>
> ---
>  tools/libxc/xc_cpuid_x86.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/tools/libxc/xc_cpuid_x86.c b/tools/libxc/xc_cpuid_x86.c
> index c97f91a..0ed8b68 100644
> --- a/tools/libxc/xc_cpuid_x86.c
> +++ b/tools/libxc/xc_cpuid_x86.c
> @@ -211,6 +211,9 @@ static void intel_xc_cpuid_policy(
>  }
>  
>  #define XSAVEOPT        (1 << 0)
> +#define XSAVEC          (1 << 1)
> +#define XGETBV          (1 << 2)

This needs a better macro name, as the bit isn't about XGETBV in
general, but the case of it supporting ECX=1 on input.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.