Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-11 Thread Leon Romanovsky
On Tue, Jan 12, 2021 at 06:59:35AM +, Tian, Kevin wrote: > > From: Leon Romanovsky > > Sent: Tuesday, January 12, 2021 1:53 PM > > > > On Tue, Jan 12, 2021 at 01:17:11PM +0800, Lu Baolu wrote: > > > Hi, > > > > > > On 1/7/21 3:16 PM, Leon Romanovsky wrote: > > > > On Thu, Jan 07, 2021 at

RE: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-11 Thread Tian, Kevin
> From: Leon Romanovsky > Sent: Tuesday, January 12, 2021 1:53 PM > > On Tue, Jan 12, 2021 at 01:17:11PM +0800, Lu Baolu wrote: > > Hi, > > > > On 1/7/21 3:16 PM, Leon Romanovsky wrote: > > > On Thu, Jan 07, 2021 at 06:55:16AM +, Tian, Kevin wrote: > > > > > From: Leon Romanovsky > > > > >

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-11 Thread Leon Romanovsky
On Tue, Jan 12, 2021 at 01:17:11PM +0800, Lu Baolu wrote: > Hi, > > On 1/7/21 3:16 PM, Leon Romanovsky wrote: > > On Thu, Jan 07, 2021 at 06:55:16AM +, Tian, Kevin wrote: > > > > From: Leon Romanovsky > > > > Sent: Thursday, January 7, 2021 2:09 PM > > > > > > > > On Thu, Jan 07, 2021 at

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-11 Thread Lu Baolu
Hi, On 1/7/21 3:16 PM, Leon Romanovsky wrote: On Thu, Jan 07, 2021 at 06:55:16AM +, Tian, Kevin wrote: From: Leon Romanovsky Sent: Thursday, January 7, 2021 2:09 PM On Thu, Jan 07, 2021 at 02:04:29AM +, Tian, Kevin wrote: From: Leon Romanovsky Sent: Thursday, January 7, 2021 12:02

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-06 Thread Leon Romanovsky
On Thu, Jan 07, 2021 at 06:55:16AM +, Tian, Kevin wrote: > > From: Leon Romanovsky > > Sent: Thursday, January 7, 2021 2:09 PM > > > > On Thu, Jan 07, 2021 at 02:04:29AM +, Tian, Kevin wrote: > > > > From: Leon Romanovsky > > > > Sent: Thursday, January 7, 2021 12:02 AM > > > > > > > >

RE: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-06 Thread Tian, Kevin
> From: Leon Romanovsky > Sent: Thursday, January 7, 2021 2:09 PM > > On Thu, Jan 07, 2021 at 02:04:29AM +, Tian, Kevin wrote: > > > From: Leon Romanovsky > > > Sent: Thursday, January 7, 2021 12:02 AM > > > > > > On Wed, Jan 06, 2021 at 11:23:39AM -0400, Jason Gunthorpe wrote: > > > > On

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-06 Thread Leon Romanovsky
On Thu, Jan 07, 2021 at 02:04:29AM +, Tian, Kevin wrote: > > From: Leon Romanovsky > > Sent: Thursday, January 7, 2021 12:02 AM > > > > On Wed, Jan 06, 2021 at 11:23:39AM -0400, Jason Gunthorpe wrote: > > > On Wed, Jan 06, 2021 at 12:40:17PM +0200, Leon Romanovsky wrote: > > > > > > > I asked

RE: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-06 Thread Tian, Kevin
> From: Leon Romanovsky > Sent: Thursday, January 7, 2021 12:02 AM > > On Wed, Jan 06, 2021 at 11:23:39AM -0400, Jason Gunthorpe wrote: > > On Wed, Jan 06, 2021 at 12:40:17PM +0200, Leon Romanovsky wrote: > > > > > I asked what will you do when QEMU will gain needed functionality? > > > Will you

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-06 Thread Lu Baolu
On 1/7/21 12:01 AM, Leon Romanovsky wrote: On Wed, Jan 06, 2021 at 11:23:39AM -0400, Jason Gunthorpe wrote: On Wed, Jan 06, 2021 at 12:40:17PM +0200, Leon Romanovsky wrote: I asked what will you do when QEMU will gain needed functionality? Will you remove QEMU from this list? If yes, how such

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-06 Thread Leon Romanovsky
On Wed, Jan 06, 2021 at 11:23:39AM -0400, Jason Gunthorpe wrote: > On Wed, Jan 06, 2021 at 12:40:17PM +0200, Leon Romanovsky wrote: > > > I asked what will you do when QEMU will gain needed functionality? > > Will you remove QEMU from this list? If yes, how such "new" kernel will > > work on old

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-06 Thread Jason Gunthorpe
On Wed, Jan 06, 2021 at 12:40:17PM +0200, Leon Romanovsky wrote: > I asked what will you do when QEMU will gain needed functionality? > Will you remove QEMU from this list? If yes, how such "new" kernel will > work on old QEMU versions? The needed functionality is some VMM hypercall, so

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-06 Thread Leon Romanovsky
On Wed, Jan 06, 2021 at 06:10:09PM +0800, Lu Baolu wrote: > Hi Leon, > > On 2021/1/6 14:06, Leon Romanovsky wrote: > > On Wed, Jan 06, 2021 at 10:27:49AM +0800, Lu Baolu wrote: > > > The pci_subdevice_msi_create_irq_domain() should fail if the underlying > > > platform is not able to support IMS

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-06 Thread Lu Baolu
Hi Leon, On 2021/1/6 14:06, Leon Romanovsky wrote: On Wed, Jan 06, 2021 at 10:27:49AM +0800, Lu Baolu wrote: The pci_subdevice_msi_create_irq_domain() should fail if the underlying platform is not able to support IMS (Interrupt Message Storage). Otherwise, the isolation of interrupt is not

Re: [RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-05 Thread Leon Romanovsky
On Wed, Jan 06, 2021 at 10:27:49AM +0800, Lu Baolu wrote: > The pci_subdevice_msi_create_irq_domain() should fail if the underlying > platform is not able to support IMS (Interrupt Message Storage). Otherwise, > the isolation of interrupt is not guaranteed. > > For x86, IMS is only supported on

[RFC PATCH v2 1/1] platform-msi: Add platform check for subdevice irq domain

2021-01-05 Thread Lu Baolu
The pci_subdevice_msi_create_irq_domain() should fail if the underlying platform is not able to support IMS (Interrupt Message Storage). Otherwise, the isolation of interrupt is not guaranteed. For x86, IMS is only supported on bare metal for now. We could enable it in the virtualization