]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/kvm/cpuid.c
KVM: x86: only copy XSAVE state for the supported features
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Oct 2013 14:06:16 +0000 (16:06 +0200)
committerGleb Natapov <gleb@redhat.com>
Thu, 3 Oct 2013 09:29:09 +0000 (12:29 +0300)
commit4344ee981e21990f8ea14d3c9e3890b9b7b06279
tree745e9fc25021336e11188d010589ce0a56d7b3d9
parentd7876f1be40a16223a44355740de625849504eb5
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>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/cpuid.c
arch/x86/kvm/x86.c