Skip to content
Commit fb3146b4 authored by Sean Christopherson's avatar Sean Christopherson
Browse files

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: default avatarXiaoyao Li <xiaoyao.li@intel.com>
Cc: Like Xu <like.xu.linux@gmail.com>
Reviewed-by: default avatarXiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20230311004618.920745-3-seanjc@google.com
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent b1932c5c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment