[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [v5][PATCH 3/5] xen, gfx passthrough: support Intel IGD passthrough with VT-D
- To: Paolo Bonzini <pbonzini@xxxxxxxxxx>, anthony.perard@xxxxxxxxxx, stefano.stabellini@xxxxxxxxxxxxx, mst@xxxxxxxxxx, Kelly.Zytaruk@xxxxxxx
- From: "Chen, Tiejun" <tiejun.chen@xxxxxxxxx>
- Date: Wed, 25 Jun 2014 15:54:02 +0800
- Cc: peter.maydell@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, allen.m.kay@xxxxxxxxx, qemu-devel@xxxxxxxxxx, anthony@xxxxxxxxxxxxx, yang.z.zhang@xxxxxxxxx
- Delivery-date: Wed, 25 Jun 2014 07:54:33 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|