[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/2] monitor: Make pci_add device options truely opt
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH 2/2] monitor: Make pci_add device options truely optional |
Date: |
Fri, 26 Jun 2009 00:04:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
Signed-off-by: Jan Kiszka <address@hidden>
---
hw/pci-hotplug.c | 4 ++++
qemu-monitor.hx | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
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 2ea9840..2d1792d 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
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH 2/2] monitor: Make pci_add device options truely optional,
Jan Kiszka <=