提交 45c02ee0 编写于 作者: J Jiri Denemark

qemu: Fail if per-device boot is used but deviceboot is not supported

上级 b9c1a9cb
......@@ -2949,6 +2949,13 @@ qemuBuildCommandLine(virConnectPtr conn,
}
virCommandAddArgBuffer(cmd, &boot_buf);
} else if (!(qemuCmdFlags & QEMUD_CMD_FLAG_BOOTINDEX)) {
/* def->os.nBootDevs is guaranteed to be > 0 unless per-device boot
* configuration is used
*/
qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("hypervisor lacks deviceboot feature"));
goto error;
}
if (def->os.kernel)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册