]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: avoid unnecessary XSETBV on guest entry
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Dec 2017 12:51:32 +0000 (13:51 +0100)
committerRadim Krčmář <rkrcmar@redhat.com>
Tue, 16 Jan 2018 15:34:13 +0000 (16:34 +0100)
commit464d453ecfb720a49afe7c7b16cb3a089d4e1632
tree94fc0056f603db46d4026b5a179167783f728452
parent333a2ad65e37bee5375ca6fd37850409b51d26ad
KVM: x86: avoid unnecessary XSETBV on guest entry

xsetbv can be expensive when running on nested virtualization, try to
avoid it.

Reviewed-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Wanpeng Li <wanpeng.li@hotmail.com>
Reviewed-by: Quan Xu <quan.xu0@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/x86.c