mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
qemu: add qemuDomainIsMipsMalta()
This identifies various MIPS Malta machines, be it 32-bit or 64-bit, little-endian or big-endian. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
395bbd61ea
commit
fc80b94a57
@ -8647,6 +8647,20 @@ qemuDomainMachineIsPSeries(const char *machine,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static bool
|
||||||
|
qemuDomainMachineIsMipsMalta(const char *machine,
|
||||||
|
const virArch arch)
|
||||||
|
{
|
||||||
|
if (!ARCH_IS_MIPS(arch))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (STREQ(machine, "malta"))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* You should normally avoid this function and use
|
/* You should normally avoid this function and use
|
||||||
* qemuDomainHasBuiltinIDE() instead. */
|
* qemuDomainHasBuiltinIDE() instead. */
|
||||||
bool
|
bool
|
||||||
@ -8719,6 +8733,13 @@ qemuDomainIsPSeries(const virDomainDef *def)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
qemuDomainIsMipsMalta(const virDomainDef *def)
|
||||||
|
{
|
||||||
|
return qemuDomainMachineIsMipsMalta(def->os.machine, def->os.arch);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
qemuDomainHasPCIRoot(const virDomainDef *def)
|
qemuDomainHasPCIRoot(const virDomainDef *def)
|
||||||
{
|
{
|
||||||
|
@ -770,6 +770,7 @@ bool qemuDomainIsS390CCW(const virDomainDef *def);
|
|||||||
bool qemuDomainIsARMVirt(const virDomainDef *def);
|
bool qemuDomainIsARMVirt(const virDomainDef *def);
|
||||||
bool qemuDomainIsRISCVVirt(const virDomainDef *def);
|
bool qemuDomainIsRISCVVirt(const virDomainDef *def);
|
||||||
bool qemuDomainIsPSeries(const virDomainDef *def);
|
bool qemuDomainIsPSeries(const virDomainDef *def);
|
||||||
|
bool qemuDomainIsMipsMalta(const virDomainDef *def);
|
||||||
bool qemuDomainHasPCIRoot(const virDomainDef *def);
|
bool qemuDomainHasPCIRoot(const virDomainDef *def);
|
||||||
bool qemuDomainHasPCIeRoot(const virDomainDef *def);
|
bool qemuDomainHasPCIeRoot(const virDomainDef *def);
|
||||||
bool qemuDomainHasBuiltinIDE(const virDomainDef *def);
|
bool qemuDomainHasBuiltinIDE(const virDomainDef *def);
|
||||||
|
Loading…
Reference in New Issue
Block a user