While the chances of the current checks resulting in false
positives are basically zero, it's still nicer to check for
the full prefix instead of the prefix's prefix.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
bool
qemuDomainMachineIsQ35(const char *machine)
{
- return (STRPREFIX(machine, "pc-q35") ||
+ return (STRPREFIX(machine, "pc-q35-") ||
STREQ(machine, "q35"));
}
return (STREQ(machine, "pc") ||
STRPREFIX(machine, "pc-0.") ||
STRPREFIX(machine, "pc-1.") ||
- STRPREFIX(machine, "pc-i440") ||
+ STRPREFIX(machine, "pc-i440fx-") ||
STRPREFIX(machine, "rhel"));
}