From patchwork Fri Mar 17 11:29:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lan Tianyu X-Patchwork-Id: 740270 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vl3HN1Ghdz9ryT for ; Fri, 17 Mar 2017 22:37:52 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="n/Jtiv2U"; dkim-atps=neutral Received: from localhost ([::1]:48374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coqCb-0003nz-Kq for incoming@patchwork.ozlabs.org; Fri, 17 Mar 2017 07:37:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1coqBq-0003mM-QR for qemu-devel@nongnu.org; Fri, 17 Mar 2017 07:37:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1coqBl-000733-US for qemu-devel@nongnu.org; Fri, 17 Mar 2017 07:37:02 -0400 Received: from mga09.intel.com ([134.134.136.24]:35779) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1coqBl-00071r-Jn for qemu-devel@nongnu.org; Fri, 17 Mar 2017 07:36:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1489750617; x=1521286617; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=5vvLra+IsVOnGrZXgXFsNLi4Y1ZxUU9+Pd4IK6lHhCU=; b=n/Jtiv2UshecyZtNa2FIrNl8mFpDos2wH7GFPVFJIJdvQMLXmMZiw1Nf f6T4sTzXBPjCNkj49O9tTiqF1M6qzQ==; Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Mar 2017 04:36:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,176,1486454400"; d="scan'208";a="61628326" Received: from lantianyu-ws.sh.intel.com (HELO localhost) ([10.239.159.159]) by orsmga002.jf.intel.com with ESMTP; 17 Mar 2017 04:36:54 -0700 From: Lan Tianyu To: qemu-devel@nongnu.org Date: Fri, 17 Mar 2017 19:29:14 +0800 Message-Id: <1489750157-17401-2-git-send-email-tianyu.lan@intel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1489750157-17401-1-git-send-email-tianyu.lan@intel.com> References: <1489750157-17401-1-git-send-email-tianyu.lan@intel.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 134.134.136.24 Subject: [Qemu-devel] [RFC PATCH 1/4] I440: Allow adding sysbus devices with -device on I440 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lan Tianyu , kevin.tian@intel.com, ehabkost@redhat.com, mst@redhat.com, pbonzini@redhat.com, chao.gao@intel.com, rth@twiddle.net Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Chao Gao xen-viommu will be a sysbus device and the device model will be enabled via "-device" parameter. Signed-off-by: Chao Gao Signed-off-by: Lan Tianyu --- hw/i386/pc_piix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index a07dc81..3289593 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -436,6 +436,7 @@ static void pc_i440fx_machine_options(MachineClass *m) m->hot_add_cpu = pc_hot_add_cpu; m->default_machine_opts = "firmware=bios-256k.bin"; m->default_display = "std"; + m->has_dynamic_sysbus = true; } static void pc_i440fx_2_7_machine_options(MachineClass *m)