mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 14:35:25 +00:00
conf: Adjust hyperv tlbflush formatting
Commit 247357cc29
added support for direct and extended modes for
tlbflush, but forgot to do the formatting as well.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
ad6b4d1fef
commit
9df14f5173
@ -27974,7 +27974,6 @@ virDomainDefFormatFeatures(virBuffer *buf,
|
||||
case VIR_DOMAIN_HYPERV_RESET:
|
||||
case VIR_DOMAIN_HYPERV_FREQUENCIES:
|
||||
case VIR_DOMAIN_HYPERV_REENLIGHTENMENT:
|
||||
case VIR_DOMAIN_HYPERV_TLBFLUSH:
|
||||
case VIR_DOMAIN_HYPERV_IPI:
|
||||
case VIR_DOMAIN_HYPERV_EVMCS:
|
||||
case VIR_DOMAIN_HYPERV_AVIC:
|
||||
@ -28004,6 +28003,16 @@ virDomainDefFormatFeatures(virBuffer *buf,
|
||||
}
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_HYPERV_TLBFLUSH:
|
||||
if (def->hyperv_features[j] != VIR_TRISTATE_SWITCH_ON)
|
||||
break;
|
||||
|
||||
if (def->hyperv_tlbflush_direct == VIR_TRISTATE_SWITCH_ON)
|
||||
virBufferAddLit(&hypervChildBuf, "<direct state='on'/>\n");
|
||||
if (def->hyperv_tlbflush_extended == VIR_TRISTATE_SWITCH_ON)
|
||||
virBufferAddLit(&hypervChildBuf, "<extended state='on'/>\n");
|
||||
break;
|
||||
|
||||
case VIR_DOMAIN_HYPERV_LAST:
|
||||
break;
|
||||
}
|
||||
|
@ -22,7 +22,10 @@
|
||||
<vendor_id state='on' value='KVM Hv'/>
|
||||
<frequencies state='on'/>
|
||||
<reenlightenment state='on'/>
|
||||
<tlbflush state='on'/>
|
||||
<tlbflush state='on'>
|
||||
<direct state='on'/>
|
||||
<extended state='on'/>
|
||||
</tlbflush>
|
||||
<ipi state='on'/>
|
||||
<evmcs state='on'/>
|
||||
<avic state='on'/>
|
||||
|
Loading…
Reference in New Issue
Block a user