mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
domain_capabilities: s/qemuDomainCapsFeatureFormatSimple/virDomainCapsFeatureFormatSimple/
There's nothing qemu specific about qemuDomainCapsFeatureFormatSimple() and in fact, the function lives in hypervisor agnostic location and thus mustn't have qemu prefix. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
a677ea928a
commit
5ea0315f60
@ -335,9 +335,9 @@ virDomainCapsStringValuesFormat(virBuffer *buf,
|
||||
|
||||
|
||||
static void
|
||||
qemuDomainCapsFeatureFormatSimple(virBuffer *buf,
|
||||
const char *featurename,
|
||||
virTristateBool supported)
|
||||
virDomainCapsFeatureFormatSimple(virBuffer *buf,
|
||||
const char *featurename,
|
||||
virTristateBool supported)
|
||||
{
|
||||
if (supported == VIR_TRISTATE_BOOL_ABSENT)
|
||||
return;
|
||||
@ -697,9 +697,9 @@ virDomainCapsFormatFeatures(const virDomainCaps *caps,
|
||||
if (i == VIR_DOMAIN_CAPS_FEATURE_IOTHREADS)
|
||||
continue;
|
||||
|
||||
qemuDomainCapsFeatureFormatSimple(&childBuf,
|
||||
virDomainCapsFeatureTypeToString(i),
|
||||
caps->features[i]);
|
||||
virDomainCapsFeatureFormatSimple(&childBuf,
|
||||
virDomainCapsFeatureTypeToString(i),
|
||||
caps->features[i]);
|
||||
}
|
||||
|
||||
virDomainCapsFeatureSEVFormat(&childBuf, caps->sev);
|
||||
@ -728,8 +728,8 @@ virDomainCapsFormat(const virDomainCaps *caps)
|
||||
if (caps->maxvcpus)
|
||||
virBufferAsprintf(&buf, "<vcpu max='%d'/>\n", caps->maxvcpus);
|
||||
|
||||
qemuDomainCapsFeatureFormatSimple(&buf, "iothreads",
|
||||
caps->features[VIR_DOMAIN_CAPS_FEATURE_IOTHREADS]);
|
||||
virDomainCapsFeatureFormatSimple(&buf, "iothreads",
|
||||
caps->features[VIR_DOMAIN_CAPS_FEATURE_IOTHREADS]);
|
||||
|
||||
virDomainCapsOSFormat(&buf, &caps->os);
|
||||
virDomainCapsCPUFormat(&buf, &caps->cpu);
|
||||
|
Loading…
x
Reference in New Issue
Block a user