From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chen, Tiejun" Subject: Re: [v5][PATCH 3/5] xen, gfx passthrough: support Intel IGD passthrough with VT-D Date: Wed, 25 Jun 2014 15:54:02 +0800 Message-ID: <53AA801A.80806@intel.com> References: <1403662641-28526-1-git-send-email-tiejun.chen@intel.com> <1403662641-28526-4-git-send-email-tiejun.chen@intel.com> <53AA6B68.7050406@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53AA6B68.7050406@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: Paolo Bonzini , anthony.perard@citrix.com, stefano.stabellini@eu.citrix.com, mst@redhat.com, Kelly.Zytaruk@amd.com Cc: peter.maydell@linaro.org, xen-devel@lists.xensource.com, allen.m.kay@intel.com, qemu-devel@nongnu.org, anthony@codemonkey.ws, yang.z.zhang@intel.com List-Id: xen-devel@lists.xenproject.org On 2014/6/25 14:25, Paolo Bonzini wrote: > Il 25/06/2014 04:17, Tiejun Chen ha scritto: >> +int pci_create_pch(PCIBus *bus) >> +{ >> + XenHostPCIDevice hdev; >> + int r = 0; >> + >> + if (!xen_has_gfx_passthru) { >> + return r; >> + } >> + > > You could make this an assertion, since the function is never called > with xen_has_gfx_passthru == 0. Or just drop the check completely, so I will drop this completely. Thanks Tiejun > the function can be moved in patch 2. > > Paolo > >