aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/svm/svm.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2023-03-10 16:45:59 -0800
committerSean Christopherson <[email protected]>2023-04-06 14:57:22 -0700
commitfb3146b4dc3bc6d0c0402a75f21d628eccf9bf8c (patch)
tree3e9367e61a94a0f0dc974268470f9b914862c0c1 /arch/x86/kvm/svm/svm.c
parentb1932c5c19ddcbe9140b0583a0931b620c21ca02 (diff)
KVM: x86: Add a helper to query whether or not a vCPU has ever run
Add a helper to query if a vCPU has run so that KVM doesn't have to open code the check on last_vmentry_cpu being set to a magic value. No functional change intended. Suggested-by: Xiaoyao Li <[email protected]> Cc: Like Xu <[email protected]> Reviewed-by: Xiaoyao Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
0 files changed, 0 insertions, 0 deletions