diff options
| author | Binbin Wu <binbin.wu@linux.intel.com> | 2025-11-10 13:05:39 +0800 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2025-11-19 05:41:12 -0800 |
| commit | 0b28f21ad46200fec9f8b8058692902d0de98221 (patch) | |
| tree | 85a1e6f762e3c2adb150b4a40cbe61e401b8963b /drivers/usb/cdns3/cdns3-debug.h | |
| parent | 7649412af3eab700037feb14822d03eba484c576 (diff) | |
KVM: x86: Add a helper to dedup loading guest/host XCR0 and XSS
Add and use a helper, kvm_load_xfeatures(), to dedup the code that loads
guest/host xfeatures.
Opportunistically return early if X86_CR4_OSXSAVE is not set to reduce
indentations.
No functional change intended.
Suggested-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Chao Gao <chao.gao@intel.com>
Signed-off-by: Binbin Wu <binbin.wu@linux.intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://patch.msgid.link/20251110050539.3398759-1-binbin.wu@linux.intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions