guest will be destroyed when create guest with parameter "-usbdevice tablet".
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Environment:
------------
Host OS (ia32/ia32e/
Guest OS (ia32/ia32e/
Guest OS Type (Linux/
kvm.git Commit:
qemu.git Commit:
Host Kernel Version:3.18.0-rc3
Hardware: Ivytown_
Bug detailed description:
-------
when create guest with parameter "-usbdevice tablet", then guest will be destroyed.
note:
this shoule be a qemu bug:
kvm + qemu = result
2c4aa55a + ab0302ee = bad
2c4aa55a + 54600752 = good
Reproduce steps:
----------------
1. create guest
qemu-system-x86_64 --enable-kvm -m 4G smp 2 -net none win8.1.qcow -usbdevice tablet
Current result:
----------------
the guest will be destroyed when create guest with "-usbdevice tablet"
Expected result:
----------------
the guest works fine when create guest with "-usbdevice tablet"
Basic root-causing log:
-------
[root@vt-hsw2 ~]# qemu-system-x86_64 -enable-kvm -m 4G -smp 2 -net none /root/cathy/
qemu-system-x86_64: util/qemu-
Aborted (core dumped)
Could you test this?
Signed-off-by: Tiejun Chen <email address hidden>
---
util/qemu-option.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/ qemu-option. c b/util/ qemu-option. c qemu-option. c qemu-option. c get_bool_ helper( QemuOpts *opts, const char *name,
index a708241..7cb3601 100644
--- a/util/
+++ b/util/
@@ -377,7 +377,7 @@ static bool qemu_opt_
}
opt = qemu_opt_find(opts, name); by_name( opts->list- >desc, name); value_str) {
parse_ option_ bool(name, desc->def_ value_str, &ret, &error_abort);
- if (opt == NULL) {
+ if ((opt == NULL) || !opt->desc) {
const QemuOptDesc *desc = find_desc_
if (desc && desc->def_
--