提交 77b93dbc 编写于 作者: M Michal Privoznik

qemu: Wrap controllers code into dummy loop

which just re-indent code and prepare it for next patch.
上级 ec02d49d
......@@ -4429,7 +4429,7 @@ qemuBuildCommandLine(virConnectPtr conn,
virDomainSnapshotObjPtr snapshot,
enum virNetDevVPortProfileOp vmop)
{
int i;
int i, j;
struct utsname ut;
int disableKQEMU = 0;
int enableKQEMU = 0;
......@@ -5024,7 +5024,8 @@ qemuBuildCommandLine(virConnectPtr conn,
}
if (qemuCapsGet(caps, QEMU_CAPS_DEVICE)) {
for (i = 0 ; i < def->ncontrollers ; i++) {
for (j = 0; j < 1; j++) {
for (i = 0; i < def->ncontrollers; i++) {
virDomainControllerDefPtr cont = def->controllers[i];
/* We don't add an explicit IDE or FD controller because the
......@@ -5082,6 +5083,7 @@ qemuBuildCommandLine(virConnectPtr conn,
}
}
}
}
if (usbcontroller == 0)
virCommandAddArg(cmd, "-usb");
......@@ -5553,7 +5555,6 @@ qemuBuildCommandLine(virConnectPtr conn,
virDomainSmartcardDefPtr smartcard = def->smartcards[0];
char *devstr;
virBuffer opt = VIR_BUFFER_INITIALIZER;
int j;
const char *database;
if (def->nsmartcards > 1 ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册