]> 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)
commitf8932d022de91f91b3d42ed4617998ac2d5f5919
tree745e9fc25021336e11188d010589ce0a56d7b3d9
parent247f32e1a8e3cf0895351bf4acb036debce2502e
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