mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: add qemuDomainIsRISCVVirt() and qemuDomainMachineIsRISCVVirt()
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
93f165331d
commit
ee57f38c46
@ -9555,6 +9555,28 @@ qemuDomainMachineIsARMVirt(const char *machine,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
qemuDomainIsRISCVVirt(const virDomainDef *def)
|
||||||
|
{
|
||||||
|
return qemuDomainMachineIsRISCVVirt(def->os.machine, def->os.arch);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
qemuDomainMachineIsRISCVVirt(const char *machine,
|
||||||
|
const virArch arch)
|
||||||
|
{
|
||||||
|
if (!ARCH_IS_RISCV(arch))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (STRNEQ(machine, "virt") &&
|
||||||
|
!STRPREFIX(machine, "virt-"))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
qemuDomainIsPSeries(const virDomainDef *def)
|
qemuDomainIsPSeries(const virDomainDef *def)
|
||||||
{
|
{
|
||||||
|
@ -815,6 +815,7 @@ bool qemuDomainHasPCIeRoot(const virDomainDef *def);
|
|||||||
bool qemuDomainNeedsFDC(const virDomainDef *def);
|
bool qemuDomainNeedsFDC(const virDomainDef *def);
|
||||||
bool qemuDomainIsS390CCW(const virDomainDef *def);
|
bool qemuDomainIsS390CCW(const virDomainDef *def);
|
||||||
bool qemuDomainIsARMVirt(const virDomainDef *def);
|
bool qemuDomainIsARMVirt(const virDomainDef *def);
|
||||||
|
bool qemuDomainIsRISCVVirt(const virDomainDef *def);
|
||||||
bool qemuDomainIsPSeries(const virDomainDef *def);
|
bool qemuDomainIsPSeries(const virDomainDef *def);
|
||||||
bool qemuDomainHasBuiltinIDE(const virDomainDef *def);
|
bool qemuDomainHasBuiltinIDE(const virDomainDef *def);
|
||||||
|
|
||||||
@ -824,6 +825,8 @@ bool qemuDomainMachineNeedsFDC(const char *machine);
|
|||||||
bool qemuDomainMachineIsS390CCW(const char *machine);
|
bool qemuDomainMachineIsS390CCW(const char *machine);
|
||||||
bool qemuDomainMachineIsARMVirt(const char *machine,
|
bool qemuDomainMachineIsARMVirt(const char *machine,
|
||||||
const virArch arch);
|
const virArch arch);
|
||||||
|
bool qemuDomainMachineIsRISCVVirt(const char *machine,
|
||||||
|
const virArch arch);
|
||||||
bool qemuDomainMachineIsPSeries(const char *machine,
|
bool qemuDomainMachineIsPSeries(const char *machine,
|
||||||
const virArch arch);
|
const virArch arch);
|
||||||
bool qemuDomainMachineHasBuiltinIDE(const char *machine);
|
bool qemuDomainMachineHasBuiltinIDE(const char *machine);
|
||||||
|
Loading…
Reference in New Issue
Block a user