From patchwork Fri Oct 26 17:21:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Liguori X-Patchwork-Id: 194543 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 769392C0097 for ; Sat, 27 Oct 2012 04:22:39 +1100 (EST) Received: from localhost ([::1]:48233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRncD-0000B5-K7 for incoming@patchwork.ozlabs.org; Fri, 26 Oct 2012 13:22:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRnbV-0006xv-Up for qemu-devel@nongnu.org; Fri, 26 Oct 2012 13:21:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRnbU-0005cR-Mc for qemu-devel@nongnu.org; Fri, 26 Oct 2012 13:21:53 -0400 Received: from e28smtp01.in.ibm.com ([122.248.162.1]:36459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRnbU-0005bg-0j for qemu-devel@nongnu.org; Fri, 26 Oct 2012 13:21:52 -0400 Received: from /spool/local by e28smtp01.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 26 Oct 2012 22:51:49 +0530 Received: from d28relay05.in.ibm.com (9.184.220.62) by e28smtp01.in.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 26 Oct 2012 22:51:47 +0530 Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q9QHLkl037945398 for ; Fri, 26 Oct 2012 22:51:47 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q9QMpbIb004820 for ; Sat, 27 Oct 2012 09:51:37 +1100 Received: from titi.austin.rr.com ([9.57.74.46]) by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q9QMpL7q003796; Sat, 27 Oct 2012 09:51:34 +1100 From: Anthony Liguori To: qemu-devel@nongnu.org Date: Fri, 26 Oct 2012 12:21:28 -0500 Message-Id: <1351272088-7942-5-git-send-email-aliguori@us.ibm.com> X-Mailer: git-send-email 1.8.0 In-Reply-To: <1351272088-7942-1-git-send-email-aliguori@us.ibm.com> References: <1351272088-7942-1-git-send-email-aliguori@us.ibm.com> x-cbid: 12102617-4790-0000-0000-00000542EFC6 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 122.248.162.1 Cc: Amit Shah , Paolo Bonzini , Anthony Liguori , Andreas Faerber Subject: [Qemu-devel] [PATCH 4/4] pc-1.3: add virtio-rng and virtio-balloon to the default machine X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The default machine should be useful so add the virtio-rng and virtio-balloon devices by default to enable these features. These are protected by -nodefaults so they will only be added if you're executing from the command line (not if you're using libvirt). Signed-off-by: Anthony Liguori --- hw/pc_piix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 47ebc1a..65d0889 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -352,6 +352,11 @@ static QEMUMachine pc_machine_v1_3 = { .init = pc_init_pci, .max_cpus = 255, .is_default = 1, + .default_devices = (DeviceDescription[]){ + { "virtio-rng-pci" }, + { "virtio-balloon-pci" }, + { }, + }, }; #define PC_COMPAT_1_2 \