• Avi Kivity's avatar
    KVM: Split cpuid register access from computation · 62046e5a
    Avi Kivity authored
    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>
    62046e5a
cpuid.h 1.61 KB