Commit 000d75b
committed
KVM: x86: Update APICv ISR (a.k.a. SVI) as part of kvm_apic_update_apicv()
Fold the calls to .hwapic_isr_update() in kvm_apic_set_state(),
kvm_lapic_reset(), and __kvm_vcpu_update_apicv() into
kvm_apic_update_apicv(), as updating SVI is directly related to updating
KVM's own cache of ISR information, e.g. SVI is more or less the APICv
equivalent of highest_isr_cache.
Note, calling .hwapic_isr_update() during kvm_apic_update_apicv() has
benign side effects, as doing so changes the orders of the calls in
kvm_lapic_reset() and kvm_apic_set_state(), specifically with respect to
to the order between .hwapic_isr_update() and .apicv_post_state_restore().
However, the changes in ordering are glorified nops as the former hook is
VMX-only and the latter is SVM-only.
Reviewed-by: Chao Gao <chao.gao@intel.com>
Link: https://patch.msgid.link/20260109034532.1012993-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 249cc1a commit 000d75b
3 files changed
Lines changed: 12 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
760 | 760 | | |
761 | 761 | | |
762 | 762 | | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | 763 | | |
775 | 764 | | |
776 | 765 | | |
| |||
2783 | 2772 | | |
2784 | 2773 | | |
2785 | 2774 | | |
2786 | | - | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
2787 | 2782 | | |
2788 | | - | |
| 2783 | + | |
| 2784 | + | |
2789 | 2785 | | |
| 2786 | + | |
2790 | 2787 | | |
2791 | 2788 | | |
2792 | 2789 | | |
| |||
2914 | 2911 | | |
2915 | 2912 | | |
2916 | 2913 | | |
2917 | | - | |
| 2914 | + | |
2918 | 2915 | | |
2919 | | - | |
2920 | | - | |
2921 | 2916 | | |
2922 | 2917 | | |
2923 | 2918 | | |
| |||
3228 | 3223 | | |
3229 | 3224 | | |
3230 | 3225 | | |
3231 | | - | |
| 3226 | + | |
3232 | 3227 | | |
3233 | | - | |
3234 | | - | |
3235 | 3228 | | |
3236 | 3229 | | |
3237 | 3230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10886 | 10886 | | |
10887 | 10887 | | |
10888 | 10888 | | |
10889 | | - | |
10890 | | - | |
10891 | | - | |
10892 | | - | |
10893 | | - | |
10894 | 10889 | | |
10895 | 10890 | | |
10896 | 10891 | | |
10897 | | - | |
10898 | | - | |
10899 | 10892 | | |
10900 | 10893 | | |
10901 | 10894 | | |
| |||
0 commit comments