Commit fec99ec
Maxim Levitsky
KVM: x86: Unpack msr_data structure prior to calling kvm_apic_set_base()
JIRA: https://issues.redhat.com/browse/RHEL-71725
commit c9155eb
Author: Sean Christopherson <seanjc@google.com>
Date: Fri Nov 1 11:35:54 2024 -0700
KVM: x86: Unpack msr_data structure prior to calling kvm_apic_set_base()
Pass in the new value and "host initiated" as separate parameters to
kvm_apic_set_base(), as forcing the KVM_SET_SREGS path to declare and fill
an msr_data structure is awkward and kludgy, e.g. __set_sregs_common()
doesn't even bother to set the proper MSR index.
No functional change intended.
Suggested-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Link: https://lore.kernel.org/r/20241101183555.1794700-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>1 parent 84582b2 commit fec99ec
3 files changed
+8
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2628 | 2628 | | |
2629 | 2629 | | |
2630 | 2630 | | |
2631 | | - | |
| 2631 | + | |
2632 | 2632 | | |
2633 | 2633 | | |
2634 | | - | |
| 2634 | + | |
2635 | 2635 | | |
2636 | 2636 | | |
2637 | 2637 | | |
2638 | | - | |
| 2638 | + | |
2639 | 2639 | | |
2640 | | - | |
| 2640 | + | |
2641 | 2641 | | |
2642 | 2642 | | |
2643 | 2643 | | |
2644 | 2644 | | |
2645 | 2645 | | |
2646 | 2646 | | |
2647 | | - | |
| 2647 | + | |
2648 | 2648 | | |
2649 | 2649 | | |
2650 | 2650 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3859 | 3859 | | |
3860 | 3860 | | |
3861 | 3861 | | |
3862 | | - | |
| 3862 | + | |
3863 | 3863 | | |
3864 | 3864 | | |
3865 | 3865 | | |
| |||
11863 | 11863 | | |
11864 | 11864 | | |
11865 | 11865 | | |
11866 | | - | |
11867 | 11866 | | |
11868 | 11867 | | |
11869 | 11868 | | |
11870 | 11869 | | |
11871 | 11870 | | |
11872 | 11871 | | |
11873 | | - | |
11874 | | - | |
11875 | | - | |
| 11872 | + | |
11876 | 11873 | | |
11877 | 11874 | | |
11878 | 11875 | | |
| |||
0 commit comments