Re: [libvirt] Questions about function virPCIDeviceIsBehindSwitchLackingACS in virpci.c

2017-09-21 Thread Wuzongyong (Euler Dept)
zongshun (Vincent) > <wanzongs...@huawei.com> > Subject: Re: [libvirt] Questions about function > virPCIDeviceIsBehindSwitchLackingACS in virpci.c > > On Wed, 20 Sep 2017 21:39:55 -0400 > Laine Stump <la...@laine.org> wrote: > > > On 09/20/2017 09:25 PM, Wuzongy

Re: [libvirt] Questions about function virPCIDeviceIsBehindSwitchLackingACS in virpci.c

2017-09-20 Thread Alex Williamson
>> Sent: Thursday, September 21, 2017 8:57 AM > >> To: libvirt-l...@redhat.com > >> Cc: Wuzongyong (Euler Dept) <cordius...@huawei.com>; Wanzongshun > >> (Vincent) <wanzongs...@huawei.com>; Alex Williamson > >> <alex.william...@redhat.com

Re: [libvirt] Questions about function virPCIDeviceIsBehindSwitchLackingACS in virpci.c

2017-09-20 Thread Laine Stump
Cc: Wuzongyong (Euler Dept) <cordius...@huawei.com>; Wanzongshun >> (Vincent) <wanzongs...@huawei.com>; Alex Williamson >> <alex.william...@redhat.com> >> Subject: Re: [libvirt] Questions about function >> virPCIDeviceIsBehindSwitchLackingACS in virpci.c >>

Re: [libvirt] Questions about function virPCIDeviceIsBehindSwitchLackingACS in virpci.c

2017-09-20 Thread Wuzongyong (Euler Dept)
nt) <wanzongs...@huawei.com>; Alex Williamson > <alex.william...@redhat.com> > Subject: Re: [libvirt] Questions about function > virPCIDeviceIsBehindSwitchLackingACS in virpci.c > > On 09/18/2017 09:24 PM, Wuzongyong (Euler Dept) wrote: > Hi, > > In function virPC

Re: [libvirt] Questions about function virPCIDeviceIsBehindSwitchLackingACS in virpci.c

2017-09-20 Thread Laine Stump
On 09/18/2017 09:24 PM, Wuzongyong (Euler Dept) wrote: > > Hi, > >   > > In function virPCIDeviceIsBehindSwitchLackingACS, I noticed that(line 8): > >   > > 1    if (virPCIDeviceGetParent(dev, ) < 0) > > 2    return -1; > > 3    if (!parent) { > > 4    /* if we have no parent, and this is

Re: [libvirt] Questions about function virPCIDeviceIsBehindSwitchLackingACS in virpci.c

2017-09-20 Thread Michal Privoznik
On 09/19/2017 03:24 AM, Wuzongyong (Euler Dept) wrote: > Hi, > > In function virPCIDeviceIsBehindSwitchLackingACS, I noticed that(line 8): > > 1if (virPCIDeviceGetParent(dev, ) < 0) > 2return -1; > 3if (!parent) { > 4/* if we have no parent, and this is the root bus, ACS

[libvirt] Questions about function virPCIDeviceIsBehindSwitchLackingACS in virpci.c

2017-09-18 Thread Wuzongyong (Euler Dept)
Hi, In function virPCIDeviceIsBehindSwitchLackingACS, I noticed that(line 8): 1if (virPCIDeviceGetParent(dev, ) < 0) 2return -1; 3if (!parent) { 4/* if we have no parent, and this is the root bus, ACS doesn't come 5 * into play since devices on the root bus can't

[libvirt] Questions about function virPCIDeviceIsBehindSwitchLackingACS in virpci.c

2017-09-18 Thread Wuzongyong (Euler Dept)
In function virPCIDeviceIsBehindSwitchLackingACS, I noticed that(line 8): 1if (virPCIDeviceGetParent(dev, ) < 0) 2return -1; 3if (!parent) { 4/* if we have no parent, and this is the root bus, ACS doesn't come 5 * into play since devices on the root bus can't P2P