From patchwork Fri Dec 7 16:08:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Cave-Ayland X-Patchwork-Id: 1009534 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ilande.co.uk Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43BHTh2SxXz9s3Z for ; Sat, 8 Dec 2018 03:09:12 +1100 (AEDT) Received: from localhost ([::1]:46890 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVIgf-0002Al-TY for incoming@patchwork.ozlabs.org; Fri, 07 Dec 2018 11:09:09 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVIfz-00026d-Al for qemu-devel@nongnu.org; Fri, 07 Dec 2018 11:08:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVIfx-0001tk-2g for qemu-devel@nongnu.org; Fri, 07 Dec 2018 11:08:27 -0500 Received: from chuckie.co.uk ([82.165.15.123]:39600 helo=s16892447.onlinehome-server.info) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gVIfv-0001aF-Hd; Fri, 07 Dec 2018 11:08:24 -0500 Received: from host86-191-82-245.range86-191.btcentralplus.com ([86.191.82.245] helo=kentang.home) by s16892447.onlinehome-server.info with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1gVIg7-0004ka-AC; Fri, 07 Dec 2018 16:08:36 +0000 From: Mark Cave-Ayland To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, david@gibson.dropbear.id.au Date: Fri, 7 Dec 2018 16:08:05 +0000 Message-Id: <20181207160806.13569-3-mark.cave-ayland@ilande.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181207160806.13569-1-mark.cave-ayland@ilande.co.uk> References: <20181207160806.13569-1-mark.cave-ayland@ilande.co.uk> X-SA-Exim-Connect-IP: 86.191.82.245 X-SA-Exim-Mail-From: mark.cave-ayland@ilande.co.uk X-SA-Exim-Version: 4.2.1 (built Sun, 08 Jan 2012 02:45:44 +0000) X-SA-Exim-Scanned: Yes (on s16892447.onlinehome-server.info) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 82.165.15.123 Subject: [Qemu-devel] [PATCH 2/3] mac_newworld: enable access to EDID data for the VGA device 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: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This is in preparation for some upcoming QEMU NDRV driver changes that pass display information from the host to the guest. Signed-off-by: Mark Cave-Ayland --- hw/ppc/mac_newworld.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/ppc/mac_newworld.c b/hw/ppc/mac_newworld.c index 14273a123e..df0a2f03ff 100644 --- a/hw/ppc/mac_newworld.c +++ b/hw/ppc/mac_newworld.c @@ -430,7 +430,10 @@ static void ppc_core99_init(MachineState *machine) } } - pci_vga_init(pci_bus); + dev = qdev_create(BUS(pci_bus), "VGA"); + qdev_prop_set_int32(dev, "addr", -1); + qdev_prop_set_bit(dev, "edid", true); + qdev_init_nofail(dev); if (graphic_depth != 15 && graphic_depth != 32 && graphic_depth != 8) { graphic_depth = 15;