mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
cpu: x86: Introduce the 'hv-avic' feature
Based on qemu commit e1f9a8e8c90ae54387922e33e5ac4fd759747d01 introduce the hv-avic feature in leaf 0x40000004, EAX 0x00000200 (1 << 9). Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
1b9eb990c6
commit
50f65e4646
@ -100,6 +100,8 @@ KVM_FEATURE_DEF(VIR_CPU_x86_HV_STIMER_DIRECT,
|
|||||||
|
|
||||||
KVM_FEATURE_DEF(VIR_CPU_x86_HV_TLBFLUSH,
|
KVM_FEATURE_DEF(VIR_CPU_x86_HV_TLBFLUSH,
|
||||||
0x40000004, 0x00000004, 0x0);
|
0x40000004, 0x00000004, 0x0);
|
||||||
|
KVM_FEATURE_DEF(VIR_CPU_x86_HV_AVIC,
|
||||||
|
0x40000004, 0x00000200, 0x0);
|
||||||
KVM_FEATURE_DEF(VIR_CPU_x86_HV_IPI,
|
KVM_FEATURE_DEF(VIR_CPU_x86_HV_IPI,
|
||||||
0x40000004, 0x00000400, 0x0);
|
0x40000004, 0x00000400, 0x0);
|
||||||
KVM_FEATURE_DEF(VIR_CPU_x86_HV_EVMCS,
|
KVM_FEATURE_DEF(VIR_CPU_x86_HV_EVMCS,
|
||||||
@ -118,6 +120,7 @@ static virCPUx86Feature x86_kvm_features[] =
|
|||||||
KVM_FEATURE(VIR_CPU_x86_HV_FREQUENCIES),
|
KVM_FEATURE(VIR_CPU_x86_HV_FREQUENCIES),
|
||||||
KVM_FEATURE(VIR_CPU_x86_HV_REENLIGHTENMENT),
|
KVM_FEATURE(VIR_CPU_x86_HV_REENLIGHTENMENT),
|
||||||
KVM_FEATURE(VIR_CPU_x86_HV_TLBFLUSH),
|
KVM_FEATURE(VIR_CPU_x86_HV_TLBFLUSH),
|
||||||
|
KVM_FEATURE(VIR_CPU_x86_HV_AVIC),
|
||||||
KVM_FEATURE(VIR_CPU_x86_HV_IPI),
|
KVM_FEATURE(VIR_CPU_x86_HV_IPI),
|
||||||
KVM_FEATURE(VIR_CPU_x86_HV_EVMCS),
|
KVM_FEATURE(VIR_CPU_x86_HV_EVMCS),
|
||||||
KVM_FEATURE(VIR_CPU_x86_HV_STIMER_DIRECT),
|
KVM_FEATURE(VIR_CPU_x86_HV_STIMER_DIRECT),
|
||||||
|
@ -61,6 +61,7 @@ struct _virCPUx86MSR {
|
|||||||
#define VIR_CPU_x86_HV_TLBFLUSH "hv-tlbflush"
|
#define VIR_CPU_x86_HV_TLBFLUSH "hv-tlbflush"
|
||||||
#define VIR_CPU_x86_HV_IPI "hv-ipi"
|
#define VIR_CPU_x86_HV_IPI "hv-ipi"
|
||||||
#define VIR_CPU_x86_HV_EVMCS "hv-evmcs"
|
#define VIR_CPU_x86_HV_EVMCS "hv-evmcs"
|
||||||
|
#define VIR_CPU_x86_HV_AVIC "hv-avic"
|
||||||
|
|
||||||
/* Hyper-V Synthetic Timer option */
|
/* Hyper-V Synthetic Timer option */
|
||||||
#define VIR_CPU_x86_HV_STIMER_DIRECT "hv-stimer-direct"
|
#define VIR_CPU_x86_HV_STIMER_DIRECT "hv-stimer-direct"
|
||||||
|
Loading…
Reference in New Issue
Block a user