summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/cpuid.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-03-08 10:00:11 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-09 14:04:36 +0100
commit5a5fbdc0e3f1159a734f1890da60fce70e98271d (patch)
treea8a235aa34fe752cbb20066e12651746697c6c0e /arch/x86/kvm/cpuid.c
parenta87036add09283e6c4f4103a15c596c67b86ab86 (diff)
downloadop-kernel-dev-5a5fbdc0e3f1159a734f1890da60fce70e98271d.zip
op-kernel-dev-5a5fbdc0e3f1159a734f1890da60fce70e98271d.tar.gz
KVM: x86: remove eager_fpu field of struct kvm_vcpu_arch
It is now equal to use_eager_fpu(), which simply tests a cpufeature bit. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/cpuid.c')
-rw-r--r--arch/x86/kvm/cpuid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index fa241d4..0029644 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -104,8 +104,7 @@ int kvm_update_cpuid(struct kvm_vcpu *vcpu)
if (best && (best->eax & (F(XSAVES) | F(XSAVEC))))
best->ebx = xstate_required_size(vcpu->arch.xcr0, true);
- vcpu->arch.eager_fpu = use_eager_fpu();
- if (vcpu->arch.eager_fpu)
+ if (use_eager_fpu())
kvm_x86_ops->fpu_activate(vcpu);
/*
OpenPOWER on IntegriCloud