Add KVM paravirt cpuid leaf

Initialize KVM paravirt cpuid leaf and allow user to control guest
visible PV features through -cpu flag.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Gleb Natapov 2010-01-13 15:25:06 +02:00 committed by Anthony Liguori
parent 4277906d28
commit bb0300dc57
3 changed files with 89 additions and 11 deletions

View file

@ -701,7 +701,8 @@ typedef struct CPUX86State {
uint8_t nmi_pending;
uint8_t has_error_code;
uint32_t sipi_vector;
uint32_t cpuid_kvm_features;
/* in order to simplify APIC support, we leave this pointer to the
user */
struct APICState *apic_state;