mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
qemu: add virQEMUCapsSupportsVmport
The vmport machine argument works with pc machine kind, not with xen for example.
This commit is contained in:
parent
46ae6b7fc7
commit
f5a5f2b7d4
@ -3724,6 +3724,19 @@ virQEMUCapsSupportsChardev(virDomainDefPtr def,
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
virQEMUCapsSupportsVmport(virQEMUCapsPtr qemuCaps,
|
||||
const virDomainDef *def)
|
||||
{
|
||||
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_MACHINE_VMPORT_OPT))
|
||||
return false;
|
||||
|
||||
return qemuDomainMachineIsI440FX(def) ||
|
||||
qemuDomainMachineIsQ35(def) ||
|
||||
STREQ(def->os.machine, "isapc");
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
virQEMUCapsIsMachineSupported(virQEMUCapsPtr qemuCaps,
|
||||
const char *canonical_machine)
|
||||
|
@ -263,6 +263,9 @@ bool virQEMUCapsGet(virQEMUCapsPtr qemuCaps,
|
||||
bool virQEMUCapsHasPCIMultiBus(virQEMUCapsPtr qemuCaps,
|
||||
virDomainDefPtr def);
|
||||
|
||||
bool virQEMUCapsSupportsVmport(virQEMUCapsPtr qemuCaps,
|
||||
const virDomainDef *def);
|
||||
|
||||
char *virQEMUCapsFlagsString(virQEMUCapsPtr qemuCaps);
|
||||
|
||||
const char *virQEMUCapsGetBinary(virQEMUCapsPtr qemuCaps);
|
||||
|
Loading…
x
Reference in New Issue
Block a user