KVM: x86: Fix xsave cpuid exposing bug
authorLiu, Jinsong <jinsong.liu@intel.com>
Fri, 21 Feb 2014 17:39:02 +0000 (17:39 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 22 Feb 2014 14:53:34 +0000 (15:53 +0100)
commit56c103ec040b1944c8866f79aa768265c0dd2986
tree7201960f61ecfd19f3e78dfa6d6526822f055786
parent49345f13f0830741b94b867cf906c4aad3988306
KVM: x86: Fix xsave cpuid exposing bug

From 00c920c96127d20d4c3bb790082700ae375c39a0 Mon Sep 17 00:00:00 2001
From: Liu Jinsong <jinsong.liu@intel.com>
Date: Fri, 21 Feb 2014 23:47:18 +0800
Subject: [PATCH] KVM: x86: Fix xsave cpuid exposing bug

EBX of cpuid(0xD, 0) is dynamic per XCR0 features enable/disable.
Bit 63 of XCR0 is reserved for future expansion.

Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/xsave.h
arch/x86/kvm/cpuid.c
arch/x86/kvm/x86.c