Skip to content
Commit 62046e5a authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: Split cpuid register access from computation



Introduce kvm_cpuid() to perform the leaf limit check and calculate
register values, and let kvm_emulate_cpuid() just handle reading and
writing the registers from/to the vcpu.  This allows us to reuse
kvm_cpuid() in a context where directly reading and writing registers
is not desired.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent d881e6f6
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