summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-10-02 16:06:16 +0200
committerGleb Natapov <gleb@redhat.com>2013-10-03 12:29:09 +0300
commit4344ee981e21990f8ea14d3c9e3890b9b7b06279 (patch)
tree745e9fc25021336e11188d010589ce0a56d7b3d9 /arch/x86/include
parentd7876f1be40a16223a44355740de625849504eb5 (diff)
downloadop-kernel-dev-4344ee981e21990f8ea14d3c9e3890b9b7b06279.zip
op-kernel-dev-4344ee981e21990f8ea14d3c9e3890b9b7b06279.tar.gz
KVM: x86: only copy XSAVE state for the supported features
This makes the interface more deterministic for userspace, which can expect (after configuring only the features it supports) to get exactly the same state from the kernel, independent of the host CPU and kernel version. Suggested-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 35d10d1..52110d0 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -390,6 +390,7 @@ struct kvm_vcpu_arch {
struct fpu guest_fpu;
u64 xcr0;
u64 guest_supported_xcr0;
+ u32 guest_xstate_size;
struct kvm_pio_request pio;
void *pio_data;
OpenPOWER on IntegriCloud