From: Eduardo Habkost Subject: Re: [PATCH v2 02/10] pc: remove has_igd_gfx_passthru global Date: Thu, 17 Dec 2015 15:45:07 -0200 Message-ID: <20151217174507.GS3774@thinpad.lan.raisama.net> References: <1450093182-3500-1-git-send-email-kraxel@redhat.com> <1450093182-3500-4-git-send-email-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1450093182-3500-4-git-send-email-kraxel@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Gerd Hoffmann Cc: igvt-g@ml01.01.org, xen-devel@lists.xensource.com, Stefano Stabellini , qemu-devel@nongnu.org, vfio-users@redhat.com, Paolo Bonzini List-Id: xen-devel@lists.xenproject.org On Mon, Dec 14, 2015 at 12:39:34PM +0100, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann > --- > hw/xen/xen_pt.h | 3 +-- > vl.c | 10 ---------- > 2 files changed, 1 insertion(+), 12 deletions(-) >=20 > diff --git a/hw/xen/xen_pt.h b/hw/xen/xen_pt.h > index c545280..6d8702b 100644 > --- a/hw/xen/xen_pt.h > +++ b/hw/xen/xen_pt.h > @@ -320,10 +320,9 @@ extern void *pci_assign_dev_load_option_rom(PCIDev= ice *dev, > unsigned int domain, > unsigned int bus, unsigned= int slot, > unsigned int function); > -extern bool has_igd_gfx_passthru; > static inline bool is_igd_vga_passthrough(XenHostPCIDevice *dev) > { > - return (has_igd_gfx_passthru > + return (qdev_get_machine->igd_gfx_passthru > && ((dev->class_code >> 0x8) =3D=3D PCI_CLASS_DISPLAY_VGA)= ); > } Doesn't compile: qemu/hw/xen/xen_pt.h: In function =E2=80=98is_igd_vga_passthrough=E2=80=99= : qemu/hw/xen/xen_pt.h:325:29: error: request for member =E2=80=98igd_gfx_p= assthru=E2=80=99 in something not a structure or union return (qdev_get_machine->igd_gfx_passthru ^ --=20 Eduardo