Commit d91060e
committed
KVM: x86: Get vcpu->arch.apic_base directly and drop kvm_get_apic_base()
Access KVM's emulated APIC base MSR value directly instead of bouncing
through a helper, as there is no reason to add a layer of indirection, and
there are other MSRs with a "set" but no "get", e.g. EFER.
No functional change intended.
Reviewed-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20241009181742.1128779-4-seanjc@google.com
Link: https://lore.kernel.org/r/20241101183555.1794700-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 8166d25 commit d91060e
2 files changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | 671 | | |
677 | 672 | | |
678 | | - | |
| 673 | + | |
679 | 674 | | |
680 | 675 | | |
681 | 676 | | |
| |||
4315 | 4310 | | |
4316 | 4311 | | |
4317 | 4312 | | |
4318 | | - | |
| 4313 | + | |
4319 | 4314 | | |
4320 | 4315 | | |
4321 | 4316 | | |
| |||
10173 | 10168 | | |
10174 | 10169 | | |
10175 | 10170 | | |
10176 | | - | |
| 10171 | + | |
10177 | 10172 | | |
10178 | 10173 | | |
10179 | 10174 | | |
| |||
11725 | 11720 | | |
11726 | 11721 | | |
11727 | 11722 | | |
11728 | | - | |
| 11723 | + | |
11729 | 11724 | | |
11730 | 11725 | | |
11731 | 11726 | | |
| |||
0 commit comments