Received: from eggs.gnu.org ([2001:4830:134:3::10]:42519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y80dq-00033e-Vh for qemu-devel@nongnu.org; Mon, 05 Jan 2015 00:55:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y80dc-0003Ip-Cc for qemu-devel@nongnu.org; Mon, 05 Jan 2015 00:55:50 -0500 Received: from indium.canonical.com ([91.189.90.7]:35240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y80dc-0003IQ-0Y for qemu-devel@nongnu.org; Mon, 05 Jan 2015 00:55:36 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1Y80da-00064t-UX for ; Mon, 05 Jan 2015 05:55:34 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id E20202E80C2 for ; Mon, 5 Jan 2015 05:55:34 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 05 Jan 2015 05:47:21 -0000 From: Tiejun Chen Sender: bounces@canonical.com References: <20141231054647.21695.83765.malonedeb@gac.canonical.com> Message-Id: <20150105054721.24535.77810.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1406706] Re: guest will be destroyed when create guest with parameter "-usbdevice tablet". Reply-To: Bug 1406706 <1406706@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Could you test this? Signed-off-by: Tiejun Chen --- util/qemu-option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) = diff --git a/util/qemu-option.c b/util/qemu-option.c index a708241..7cb3601 100644 --- a/util/qemu-option.c +++ b/util/qemu-option.c @@ -377,7 +377,7 @@ static bool qemu_opt_get_bool_helper(QemuOpts *opts, co= nst char *name, } = opt =3D qemu_opt_find(opts, name); - if (opt =3D=3D NULL) { + if ((opt =3D=3D NULL) || !opt->desc) { const QemuOptDesc *desc =3D find_desc_by_name(opts->list->desc, na= me); if (desc && desc->def_value_str) { parse_option_bool(name, desc->def_value_str, &ret, &error_abor= t); -- -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1406706 Title: guest will be destroyed when create guest with parameter "-usbdevice tablet". Status in QEMU: New Bug description: Environment: ------------ Host OS (ia32/ia32e/IA64):ia32e Guest OS (ia32/ia32e/IA64):ia32e Guest OS Type (Linux/Windows):windows kvm.git Commit:2c4aa55a6af070262cca425745e8e54310e96b8d qemu.git Commit:ab0302ee764fd702465aef6d88612cdff4302809 Host Kernel Version:3.18.0-rc3 Hardware: Ivytown_EP,Haswell_EP = Bug detailed description: -------------------------- when create guest with parameter "-usbdevice tablet", then guest will be = destroyed. note: this shoule be a qemu bug: kvm + qemu =3D result 2c4aa55a + ab0302ee =3D bad 2c4aa55a + 54600752 =3D good Reproduce steps: ---------------- 1. create guest qemu-system-x86_64 --enable-kvm -m 4G smp 2 -net none win8.1.qcow -usbdev= ice 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/win8.1.qcow -usbdevice tablet qemu-system-x86_64: util/qemu-option.c:387: qemu_opt_get_bool_helper: Ass= ertion `opt->desc && opt->desc->type =3D=3D QEMU_OPT_BOOL' failed. Aborted (core dumped) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1406706/+subscriptions