• Avi Kivity's avatar
    KVM: Handle cpuid in the kernel instead of punting to userspace · 06465c5a
    Avi Kivity authored
    KVM used to handle cpuid by letting userspace decide what values to
    return to the guest.  We now handle cpuid completely in the kernel.  We
    still let userspace decide which values the guest will see by having
    userspace set up the value table beforehand (this is necessary to allow
    management software to set the cpu features to the least common denominator,
    so that live migration can work).
    
    The motivation for the change is that kvm kernel code can be impacted by
    cpuid features, for example the x86 emulator.
    Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
    06465c5a
kvm.h 16.5 KB