Commit
c7f3a1f7870 turned qemuDomainMachineNeedsFDC() effectively into
qemuDomainIsQ35. Use it instead as it also matches the non-canonicalized
'q35'.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
}
-static bool
-qemuDomainMachineNeedsFDC(const char *machine,
- const virArch arch)
-{
- if (!ARCH_IS_X86(arch))
- return false;
-
- if (!STRPREFIX(machine, "pc-q35-"))
- return false;
-
- return true;
-}
-
-
bool
qemuDomainIsQ35(const virDomainDef *def)
{
bool
qemuDomainNeedsFDC(const virDomainDef *def)
{
- return qemuDomainMachineNeedsFDC(def->os.machine, def->os.arch);
+ /* all supported Q35 machines need explicit FDC */
+ return qemuDomainIsQ35(def);
}