[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT a62acdc] monitor: Make pci_add device options tru
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT a62acdc] monitor: Make pci_add device options truely optional |
Date: |
Tue, 30 Jun 2009 00:57:41 -0000 |
From: Jan Kiszka <address@hidden>
Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c
index f7d38a7..d0f2911 100644
--- a/hw/pci-hotplug.c
+++ b/hw/pci-hotplug.c
@@ -153,6 +153,10 @@ void pci_device_hot_add(Monitor *mon, const char
*pci_addr, const char *type,
pci_addr += 9;
}
+ if (!opts) {
+ opts = "";
+ }
+
if (!strcmp(pci_addr, "auto"))
pci_addr = NULL;
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 932a013..a87530c 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -506,7 +506,7 @@ Add drive to PCI storage controller.
ETEXI
#if defined(TARGET_I386)
- { "pci_add", "sss", pci_device_hot_add, "auto|[[<domain>:]<bus>:]<slot>
nic|storage [[vlan=n][,macaddr=addr][,model=type]]
[file=file][,if=type][,bus=nr]...", "hot-add PCI device" },
+ { "pci_add", "sss?", pci_device_hot_add, "auto|[[<domain>:]<bus>:]<slot>
nic|storage [[vlan=n][,macaddr=addr][,model=type]]
[file=file][,if=type][,bus=nr]...", "hot-add PCI device" },
#endif
STEXI
@item pci_add
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT a62acdc] monitor: Make pci_add device options truely optional,
Anthony Liguori <=