Re: [Qemu-devel] [PATCH v4 2/2] enable multi-function hot-add

2015-10-23 Thread Cao jin
On 10/23/2015 09:41 PM, Michael S. Tsirkin wrote: On Fri, Oct 23, 2015 at 04:14:07PM +0800, Cao jin wrote: On 10/23/2015 02:50 PM, Michael S. Tsirkin wrote: On Fri, Oct 23, 2015 at 12:13:53PM +0800, Cao jin wrote: Hi Michael On 10/22/2015 10:37 PM, Michael S. Tsirkin wrote: On Thu, Oct 2

Re: [Qemu-devel] [PATCH v4 2/2] enable multi-function hot-add

2015-10-23 Thread Michael S. Tsirkin
On Fri, Oct 23, 2015 at 04:14:07PM +0800, Cao jin wrote: > > > On 10/23/2015 02:50 PM, Michael S. Tsirkin wrote: > >On Fri, Oct 23, 2015 at 12:13:53PM +0800, Cao jin wrote: > >>Hi Michael > >> > >>On 10/22/2015 10:37 PM, Michael S. Tsirkin wrote: > >>>On Thu, Oct 22, 2015 at 07:57:52PM +0800, Cao

Re: [Qemu-devel] [PATCH v4 2/2] enable multi-function hot-add

2015-10-23 Thread Cao jin
On 10/23/2015 02:50 PM, Michael S. Tsirkin wrote: On Fri, Oct 23, 2015 at 12:13:53PM +0800, Cao jin wrote: Hi Michael On 10/22/2015 10:37 PM, Michael S. Tsirkin wrote: On Thu, Oct 22, 2015 at 07:57:52PM +0800, Cao jin wrote: Enable pcie device multifunction hot, just ensure the function 0 a

Re: [Qemu-devel] [PATCH v4 2/2] enable multi-function hot-add

2015-10-22 Thread Michael S. Tsirkin
On Fri, Oct 23, 2015 at 12:13:53PM +0800, Cao jin wrote: > Hi Michael > > On 10/22/2015 10:37 PM, Michael S. Tsirkin wrote: > >On Thu, Oct 22, 2015 at 07:57:52PM +0800, Cao jin wrote: > >>Enable pcie device multifunction hot, just ensure the function 0 > >>added last, then driver will got the noti

Re: [Qemu-devel] [PATCH v4 2/2] enable multi-function hot-add

2015-10-22 Thread Cao jin
Hi Michael On 10/22/2015 10:37 PM, Michael S. Tsirkin wrote: On Thu, Oct 22, 2015 at 07:57:52PM +0800, Cao jin wrote: Enable pcie device multifunction hot, just ensure the function 0 added last, then driver will got the notification to scan all the function in the slot. Signed-off-by: Cao jin

Re: [Qemu-devel] [PATCH v4 2/2] enable multi-function hot-add

2015-10-22 Thread Michael S. Tsirkin
On Thu, Oct 22, 2015 at 07:57:52PM +0800, Cao jin wrote: > Enable pcie device multifunction hot, just ensure the function 0 > added last, then driver will got the notification to scan all the > function in the slot. > > Signed-off-by: Cao jin > --- > hw/pci/pci.c | 29 +++

[Qemu-devel] [PATCH v4 2/2] enable multi-function hot-add

2015-10-22 Thread Cao jin
Enable pcie device multifunction hot, just ensure the function 0 added last, then driver will got the notification to scan all the function in the slot. Signed-off-by: Cao jin --- hw/pci/pci.c | 29 + hw/pci/pci_host.c| 11 +-- hw/pci/pcie.c