qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 02/10] pc: remove has_igd_gfx_passthru global


From: Eduardo Habkost
Subject: Re: [Qemu-devel] [PATCH v2 02/10] pc: remove has_igd_gfx_passthru global
Date: Thu, 17 Dec 2015 15:45:07 -0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Dec 14, 2015 at 12:39:34PM +0100, Gerd Hoffmann wrote:
> Signed-off-by: Gerd Hoffmann <address@hidden>
> ---
>  hw/xen/xen_pt.h |  3 +--
>  vl.c            | 10 ----------
>  2 files changed, 1 insertion(+), 12 deletions(-)
> 
> 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(PCIDevice 
> *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) == PCI_CLASS_DISPLAY_VGA));
>  }

Doesn't compile:

qemu/hw/xen/xen_pt.h: In function ‘is_igd_vga_passthrough’:
qemu/hw/xen/xen_pt.h:325:29: error: request for member ‘igd_gfx_passthru’ in 
something not a structure or union
     return (qdev_get_machine->igd_gfx_passthru
                             ^

-- 
Eduardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]