diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2020-09-29 21:16:57 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-21 17:48:50 -0400 |
commit | a6337a3542b152b35f47895b88ef1ac0dadf971d (patch) | |
tree | 553774afad749a7a688b3a297cd919482a91fc45 /arch/x86/kvm/cpuid.c | |
parent | KVM: x86: Invoke vendor's vcpu_after_set_cpuid() after all common updates (diff) | |
download | linux-a6337a3542b152b35f47895b88ef1ac0dadf971d.tar.gz linux-a6337a3542b152b35f47895b88ef1ac0dadf971d.tar.bz2 linux-a6337a3542b152b35f47895b88ef1ac0dadf971d.zip |
KVM: x86: Move call to update_exception_bitmap() into VMX code
Now that vcpu_after_set_cpuid() and update_exception_bitmap() are called
back-to-back, subsume the exception bitmap update into the common CPUID
update. Drop the SVM invocation entirely as SVM's exception bitmap
doesn't vary with respect to guest CPUID.
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200930041659.28181-4-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/cpuid.c')
-rw-r--r-- | arch/x86/kvm/cpuid.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index 35223eb63242..06a278b3701d 100644 --- a/arch/x86/kvm/cpuid.c +++ b/arch/x86/kvm/cpuid.c @@ -171,7 +171,6 @@ static void kvm_vcpu_after_set_cpuid(struct kvm_vcpu *vcpu) /* Invoke the vendor callback only after the above state is updated. */ kvm_x86_ops.vcpu_after_set_cpuid(vcpu); - kvm_x86_ops.update_exception_bitmap(vcpu); } static int is_efer_nx(void) |