From: Juan Quintela Subject: Re: [PATCH 3/3] qemu: cleanup unused macros in cirrus Date: Thu, 08 Oct 2009 17:24:35 +0200 Message-ID: References: <20091008145247.GD12275@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , Anthony Liguori , "qemu-devel\@nongnu.org" , kvm-devel To: "Michael S. Tsirkin" Return-path: Received: from trasno.trasno.org ([91.117.31.254]:39815 "EHLO trasno.trasno.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758342AbZJHPZi (ORCPT ); Thu, 8 Oct 2009 11:25:38 -0400 In-Reply-To: <20091008145247.GD12275@redhat.com> (Michael S. Tsirkin's message of "Thu, 8 Oct 2009 16:52:47 +0200") Sender: kvm-owner@vger.kernel.org List-ID: "Michael S. Tsirkin" wrote: > Cirrus vga has a copy of many PCI macros, > and it doesn't even use them. Clean up. > @@ -3248,8 +3213,8 @@ static int pci_cirrus_vga_initfn(PCIDevice *dev) > /* setup PCI */ > pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_CIRRUS); > pci_config_set_device_id(pci_conf, device_id); > + //pci_conf[0x04] = PCI_COMMAND_IOACCESS | PCI_COMMAND_MEMACCESS; If it is wrong as you claim in the other patch, just remove it, or at least put a comment. > pci_config_set_class(pci_conf, PCI_CLASS_DISPLAY_VGA); > - pci_conf[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL; Did yo;u wanted to remove this one also? > > /* setup memory space */ > /* memory #0 LFB */ Nice cleanup for the rest :) Later, Juan.