From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0XtA-0006dW-9U for qemu-devel@nongnu.org; Thu, 04 Jun 2015 12:21:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0Xt9-0004pF-Gn for qemu-devel@nongnu.org; Thu, 04 Jun 2015 12:21:04 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:34378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0Xt8-0004o9-Qg for qemu-devel@nongnu.org; Thu, 04 Jun 2015 12:21:03 -0400 From: Peter Maydell Date: Thu, 4 Jun 2015 17:20:53 +0100 Message-Id: <1433434853-19229-5-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1433434853-19229-1-git-send-email-peter.maydell@linaro.org> References: <1433434853-19229-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 4/4] hw/arm/virt: Make block devices default to virtio List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, patches@linaro.org, Markus Armbruster , Alexander Graf , Christian Borntraeger , Cornelia Huck Now we have virtio-pci, we can make the virt board's default block device type be IF_VIRTIO. This allows users to use simplified command lines that don't have to explicitly create virtio-pci-blk devices; the -hda &c very short options now also work. Signed-off-by: Peter Maydell --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 0a75cc8..14afe86 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -961,6 +961,7 @@ static void virt_class_init(ObjectClass *oc, void *data) mc->init = machvirt_init; mc->max_cpus = 8; mc->has_dynamic_sysbus = true; + mc->block_default_type = IF_VIRTIO; } static const TypeInfo machvirt_info = { -- 1.9.1