summaryrefslogtreecommitdiff
path: root/include/linux/workqueue_api.h
diff options
context:
space:
mode:
authorHao Zhang <zhanghao1@kylinos.cn>2026-06-29 14:10:41 +0800
committerSean Christopherson <seanjc@google.com>2026-07-08 13:48:22 -0700
commit6978adcc3e73d91fbf371f08cdd924cd05771ac6 (patch)
treea2f017e1188b9bb3305f61723a276ae54ec27e6f /include/linux/workqueue_api.h
parenta204badd8432f93b7e862e7dac6db0fe3d65f370 (diff)
KVM: VMX: Use cached vcpu_vmx pointer in MSR and segment helpers
vmx_get_msr() and vmx_set_msr() already cache to_vmx(vcpu) in a local 'vmx' pointer, but a few cases still open-code to_vmx(vcpu). Use the cached pointer for consistency. Likewise, cache to_vmx(vcpu) in vmx_get_segment_base() instead of open-coding it in both the real-mode check and the VMCS read path. No functional change intended. Signed-off-by: Hao Zhang <zhanghao1@kylinos.cn> Link: https://patch.msgid.link/tencent_A78DC401911634111A3391650CB00FCD0409@qq.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions