|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Qemu-devel] [RFC][PATCH 2/2] xen:i386:pc_piix: create isa bridge specific to IGD passthrough
On 2014/11/17 18:13, Michael S. Tsirkin wrote: On Mon, Nov 17, 2014 at 05:42:12PM +0800, Chen, Tiejun wrote:On 2014/11/17 17:25, Michael S. Tsirkin wrote:On Mon, Nov 17, 2014 at 04:48:32PM +0800, Chen, Tiejun wrote:On 2014/11/17 14:10, Michael S. Tsirkin wrote:On Mon, Nov 17, 2014 at 10:47:56AM +0800, Chen, Tiejun wrote:On 2014/11/5 22:09, Michael S. Tsirkin wrote:On Wed, Nov 05, 2014 at 03:22:59PM +0800, Tiejun Chen wrote:Currently IGD drivers always need to access PCH by 1f.0, and PCH vendor/device id is used to identify the card. Signed-off-by: Tiejun Chen <tiejun.chen@xxxxxxxxx> ---[snip] Yeah.Here I assume vendor ID is always PCI_VENDOR_ID_INTEL so looks you means I also need to check that table to do something like,
is_igd_vga_passthugh(dev)
{
int i;
int num = ARRAY_SIZE(xen_igd_combo_id_infos);
for (i = 0; i < num; i++) {
if (dev->device_id == xen_igd_combo_id_infos[i].gpu_device_id)
return 1;
return 0;
}
Then we can simplify the subsequent codes based on this, right?
Thanks
Tiejun
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |