]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69576af7550907944637ddf27e0e0cb77d155805
tree745e9fc25021336e11188d010589ce0a56d7b3d9
parentb0584886334342a08b6b1c3597f61098d12be2c1
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