mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemuAppendLoadparmMachineParm: Format 'loadparm' based on architecture
Check the architecture of the guest rather than relying on QEMU_CAPS_LOADPARM which is set based on architecture. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0ec1907bac
commit
e30387b340
@ -6570,6 +6570,10 @@ qemuAppendLoadparmMachineParm(virBuffer *buf,
|
||||
{
|
||||
size_t i = 0;
|
||||
|
||||
if (def->os.arch != VIR_ARCH_S390 &&
|
||||
def->os.arch != VIR_ARCH_S390X)
|
||||
return;
|
||||
|
||||
for (i = 0; i < def->ndisks; i++) {
|
||||
virDomainDiskDef *disk = def->disks[i];
|
||||
|
||||
@ -6893,8 +6897,7 @@ qemuBuildMachineCommandLine(virCommand *cmd,
|
||||
virBufferAsprintf(&buf, ",max-cpu-compat=%s", cpu->model);
|
||||
}
|
||||
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_LOADPARM))
|
||||
qemuAppendLoadparmMachineParm(&buf, def);
|
||||
qemuAppendLoadparmMachineParm(&buf, def);
|
||||
|
||||
if (def->sec) {
|
||||
switch ((virDomainLaunchSecurity) def->sec->sectype) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user