summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorBinbin Wu <binbin.wu@linux.intel.com>2025-11-10 08:05:39 +0300
committerSean Christopherson <seanjc@google.com>2025-11-19 16:41:12 +0300
commit0b28f21ad46200fec9f8b8058692902d0de98221 (patch)
tree85a1e6f762e3c2adb150b4a40cbe61e401b8963b /scripts/patch-kernel
parent7649412af3eab700037feb14822d03eba484c576 (diff)
downloadlinux-0b28f21ad46200fec9f8b8058692902d0de98221.tar.xz
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 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions