From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdKwh-0003WK-LX for qemu-devel@nongnu.org; Tue, 27 Nov 2012 08:11:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdKwc-0008Nx-Tw for qemu-devel@nongnu.org; Tue, 27 Nov 2012 08:11:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:21994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdKwc-0008NR-47 for qemu-devel@nongnu.org; Tue, 27 Nov 2012 08:11:22 -0500 Message-ID: <50B4BBF5.7050705@redhat.com> Date: Tue, 27 Nov 2012 14:11:17 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <1353858555-29592-1-git-send-email-stefanha@redhat.com> In-Reply-To: <1353858555-29592-1-git-send-email-stefanha@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] usb: fail usbdevice_create() when there is no USB bus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Peter Maydell , qemu-devel@nongnu.org On 11/25/12 16:49, Stefan Hajnoczi wrote: > Report an error instead of segfaulting when attaching a USB device to a > machine with no USB busses: > > $ qemu-system-arm -machine vexpress-a9 \ > -sd Fedora-17-armhfp-vexpress-mmcblk0.img \ > -kernel vmlinuz-3.4.2-3.fc17.armv7hl \ > -initrd initramfs-3.4.2-3.fc17.armv7hl.img \ > -usbdevice disk:format=raw:test.img > > Note that the vexpress-a9 machine does not have a USB host controller. > > Reported-by: David Abdurachmanov > Signed-off-by: Stefan Hajnoczi Patch added to usb patch queue. thanks, Gerd