mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
qemu: Make virQEMUCapsIsMachineSupported static
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
42adc0b87d
commit
21b2025a0e
@ -2428,6 +2428,20 @@ virQEMUCapsProbeQMPMachineTypes(virQEMUCapsPtr qemuCaps,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static bool
|
||||||
|
virQEMUCapsIsMachineSupported(virQEMUCapsPtr qemuCaps,
|
||||||
|
const char *canonical_machine)
|
||||||
|
{
|
||||||
|
size_t i;
|
||||||
|
|
||||||
|
for (i = 0; i < qemuCaps->nmachineTypes; i++) {
|
||||||
|
if (STREQ(canonical_machine, qemuCaps->machineTypes[i].name))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virQEMUCapsProbeQMPMachineProps(virQEMUCapsPtr qemuCaps,
|
virQEMUCapsProbeQMPMachineProps(virQEMUCapsPtr qemuCaps,
|
||||||
qemuMonitorPtr mon)
|
qemuMonitorPtr mon)
|
||||||
@ -5146,20 +5160,6 @@ virQEMUCapsSupportsVmport(virQEMUCapsPtr qemuCaps,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
|
||||||
virQEMUCapsIsMachineSupported(virQEMUCapsPtr qemuCaps,
|
|
||||||
const char *canonical_machine)
|
|
||||||
{
|
|
||||||
size_t i;
|
|
||||||
|
|
||||||
for (i = 0; i < qemuCaps->nmachineTypes; i++) {
|
|
||||||
if (STREQ(canonical_machine, qemuCaps->machineTypes[i].name))
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The preferred machine to use if none is listed explicitly
|
* The preferred machine to use if none is listed explicitly
|
||||||
* Note that this may differ from QEMU's own default machine
|
* Note that this may differ from QEMU's own default machine
|
||||||
|
@ -645,9 +645,6 @@ bool virQEMUCapsSupportsGICVersion(virQEMUCapsPtr qemuCaps,
|
|||||||
virDomainVirtType virtType,
|
virDomainVirtType virtType,
|
||||||
virGICVersion version);
|
virGICVersion version);
|
||||||
|
|
||||||
bool virQEMUCapsIsMachineSupported(virQEMUCapsPtr qemuCaps,
|
|
||||||
const char *canonical_machine);
|
|
||||||
|
|
||||||
const char *virQEMUCapsGetPreferredMachine(virQEMUCapsPtr qemuCaps);
|
const char *virQEMUCapsGetPreferredMachine(virQEMUCapsPtr qemuCaps);
|
||||||
|
|
||||||
int virQEMUCapsInitGuestFromBinary(virCapsPtr caps,
|
int virQEMUCapsInitGuestFromBinary(virCapsPtr caps,
|
||||||
|
Loading…
Reference in New Issue
Block a user