From patchwork Tue Sep 15 05:51:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Herrenschmidt X-Patchwork-Id: 517665 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 8438114018C for ; Tue, 15 Sep 2015 15:51:59 +1000 (AEST) Received: from localhost ([::1]:45145 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbj9p-0003XD-11 for incoming@patchwork.ozlabs.org; Tue, 15 Sep 2015 01:51:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbj9Z-0003BQ-3p for qemu-devel@nongnu.org; Tue, 15 Sep 2015 01:51:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zbj9T-0004tz-Qu for qemu-devel@nongnu.org; Tue, 15 Sep 2015 01:51:41 -0400 Received: from gate.crashing.org ([63.228.1.57]:49944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbj9T-0004so-IJ; Tue, 15 Sep 2015 01:51:35 -0400 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id t8F5pUAX021076; Tue, 15 Sep 2015 00:51:31 -0500 Message-ID: <1442296289.3146.8.camel@kernel.crashing.org> From: Benjamin Herrenschmidt To: agraf@suse.de Date: Tue, 15 Sep 2015 15:51:29 +1000 X-Mailer: Evolution 3.16.5 (3.16.5-1.fc22) Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 63.228.1.57 Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH] ppc/spapr: Allow VIRTIO_VGA 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 It works fine with the Linux driver out of the box Signed-off-by: Benjamin Herrenschmidt --- default-configs/ppc64-softmmu.mak | 1 + hw/ppc/spapr.c | 1 + 2 files changed, 2 insertions(+) diff --git a/default-configs/ppc64-softmmu.mak b/default-configs/ppc64-softmmu.mak index a11de08..ec3cd8b 100644 --- a/default-configs/ppc64-softmmu.mak +++ b/default-configs/ppc64-softmmu.mak @@ -3,6 +3,7 @@ include pci.mak include sound.mak include usb.mak +CONFIG_VIRTIO_VGA=y CONFIG_ISA_MMIO=y CONFIG_ESCC=y CONFIG_M48T59=y diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 4590c30..b47cacd 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -1072,6 +1072,7 @@ static int spapr_vga_init(PCIBus *pci_bus) case VGA_DEVICE: return true; case VGA_STD: + case VGA_VIRTIO: return pci_vga_init(pci_bus) != NULL; default: fprintf(stderr, "This vga model is not supported,"