summaryrefslogtreecommitdiff
path: root/fs/fat
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2021-07-13 09:32:50 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2021-08-02 11:01:51 -0400
commit549240e8e09e063b7ba44c9f8497e8499562a34c (patch)
tree5773bbad74401625a71bb1c84aebfacb444fe73a /fs/fat
parentc2f79a65b4b66681894ef7d7e3912ba55acc20d5 (diff)
downloadlinux-549240e8e09e063b7ba44c9f8497e8499562a34c.tar.gz
KVM: x86: Remove defunct BSP "update" in local APIC reset
Remove a BSP APIC update in kvm_lapic_reset() that is a glorified and confusing nop. When the code was originally added, kvm_vcpu_is_bsp() queried kvm->arch.bsp_vcpu, i.e. the intent was to set the BSP bit in the BSP vCPU's APIC. But, stuffing the BSP bit at INIT was wrong since the guest can change its BSP(s); this was fixed by commit 58d269d8cccc ("KVM: x86: BSP in MSR_IA32_APICBASE is writable"). In other words, kvm_vcpu_is_bsp() is now purely a reflection of vcpu->arch.apic_base.MSR_IA32_APICBASE_BSP, thus the update will always set the current value and kvm_lapic_set_base() is effectively a nop if the new and old values match. The RESET case, which does need to stuff the BSP for the reset vCPU, is handled by vendor code (though this will soon be moved to common code). No functional change intended. Reviewed-by: Reiji Watanabe <reijiw@google.com> Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20210713163324.627647-13-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'fs/fat')
0 files changed, 0 insertions, 0 deletions