From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753295AbbDAN0k (ORCPT ); Wed, 1 Apr 2015 09:26:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41523 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752083AbbDAN0i (ORCPT ); Wed, 1 Apr 2015 09:26:38 -0400 Date: Wed, 1 Apr 2015 15:26:26 +0200 From: "Michael S. Tsirkin" To: Gerd Hoffmann Cc: dri-devel@lists.freedesktop.org, virtio-dev@lists.oasis-open.org, airlied@gmail.com, airlied@redhat.com, David Airlie , Rusty Russell , open list , "open list:VIRTIO CORE, NET..." Subject: Re: [PATCH v2 4/4] Add virtio-vga bits. Message-ID: <20150401152535-mutt-send-email-mst@redhat.com> References: <1427894130-14228-1-git-send-email-kraxel@redhat.com> <1427894130-14228-5-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1427894130-14228-5-git-send-email-kraxel@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 01, 2015 at 03:15:30PM +0200, Gerd Hoffmann wrote: > +static void virtio_pci_kick_out_firmware_fb(struct pci_dev *pci_dev) > +{ > + struct apertures_struct *ap; > + bool primary; > + > + ap = alloc_apertures(1); > + if (!ap) > + return; > + > + ap->ranges[0].base = pci_resource_start(pci_dev, 2); > + ap->ranges[0].size = pci_resource_len(pci_dev, 2); I thought you mentioned it's better to switch to a different BAR to be compatible with stdvga? -- MST