]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: Split cpuid register access from computation
authorAvi Kivity <avi@redhat.com>
Thu, 7 Jun 2012 11:07:48 +0000 (14:07 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 9 Jul 2012 11:19:00 +0000 (14:19 +0300)
commit62046e5a867cbff35e0beff42718dda41ff5d74b
tree310b84d9c0d3428d5fcb452bff02c0f00d6dab37
parentd881e6f6cffe3993245963143cab2528f918e071
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: Avi Kivity <avi@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/cpuid.h