From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: [PATCH v3 11/11] igd: move igd-passthrough-isa-bridge creation to machine init Date: Thu, 07 Jan 2016 08:38:59 +0100 Message-ID: <1452152339.6096.78.camel@redhat.com> References: <1451994098-6972-1-git-send-email-kraxel@redhat.com> <1451994098-6972-12-git-send-email-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: 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: Stefano Stabellini Cc: igvt-g@ml01.01.org, xen-devel@lists.xensource.com, Eduardo Habkost , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Cao jin , vfio-users@redhat.com, Paolo Bonzini , Richard Henderson List-Id: xen-devel@lists.xenproject.org Hi, > One thing I don't like about this is that it is going to skip the checks > done in xen_pt_initfn. Hmm? Those checks are still done when you assign a igd ... > For example it is going to create the isa bridge, > even if there is going to be an error loading the vga bios or if the > device specified is not even an Intel graphic card. Creating the special igd-isa-bridge is no longer tied to actually assigning a igd, but to the igd-passthru=3Don machine option being present (and machine type being 'pc'). xen_pt_initfn checks that igd-passthru=3Don is set in case it finds a igd device is assigned, that will make sure the igd-isa-bridge is present. But, yes, you can create a igd-isa-bridge now even when not assigning a igd device, either by specifying igd-passthru=3Don or using -device. I fail to see why this is a problem though, care to explain? Also note that moving this to machine init nicely handles the fact that the igd-isa-bridge is needed on 'pc' only, not on 'q35'. If you don't want create the igd-isa-bridge in machine init, what is your alternative suggestion to handle this? cheers, Gerd