Commit cbdeea0
committed
KVM: x86: Drop superfluous host XSAVE check when adjusting guest XSAVES caps
Drop the manual boot_cpu_has() checks on XSAVE when adjusting the guest's
XSAVES capabilities now that guest cpu_caps incorporates KVM's support.
The guest's cpu_caps are initialized from kvm_cpu_caps, which are in turn
initialized from boot_cpu_data, i.e. checking guest_cpu_cap_has() also
checks host/KVM capabilities (which is the entire point of cpu_caps).
Cc: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20241128013424.4096668-52-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 8f2a277 commit cbdeea0
2 files changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4402 | 4402 | | |
4403 | 4403 | | |
4404 | 4404 | | |
4405 | | - | |
4406 | 4405 | | |
4407 | 4406 | | |
4408 | 4407 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7825 | 7825 | | |
7826 | 7826 | | |
7827 | 7827 | | |
7828 | | - | |
7829 | | - | |
| 7828 | + | |
7830 | 7829 | | |
7831 | 7830 | | |
7832 | 7831 | | |
| |||
0 commit comments