Re: [PATCH v8 15/17] vfio-user: handle device interrupts

2022-05-05 Thread Alex Williamson
On Thu, 28 Apr 2022 10:54:04 +0100 Stefan Hajnoczi wrote: > On Mon, Apr 25, 2022 at 05:40:01PM +, Jag Raman wrote: > > > On Apr 25, 2022, at 6:27 AM, Stefan Hajnoczi wrote: > > > > > > On Tue, Apr 19, 2022 at 04:44:20PM -0400, Jagannathan Raman wrote: > > >> +static MSIMessage

Re: [PATCH v8 15/17] vfio-user: handle device interrupts

2022-04-28 Thread Stefan Hajnoczi
On Mon, Apr 25, 2022 at 05:40:01PM +, Jag Raman wrote: > > On Apr 25, 2022, at 6:27 AM, Stefan Hajnoczi wrote: > > > > On Tue, Apr 19, 2022 at 04:44:20PM -0400, Jagannathan Raman wrote: > >> +static MSIMessage vfu_object_msi_prepare_msg(PCIDevice *pci_dev, > >> +

Re: [PATCH v8 15/17] vfio-user: handle device interrupts

2022-04-25 Thread Jag Raman
> On Apr 25, 2022, at 6:27 AM, Stefan Hajnoczi wrote: > > On Tue, Apr 19, 2022 at 04:44:20PM -0400, Jagannathan Raman wrote: >> +static MSIMessage vfu_object_msi_prepare_msg(PCIDevice *pci_dev, >> + unsigned int vector) >> +{ >> +MSIMessage msg;

Re: [PATCH v8 15/17] vfio-user: handle device interrupts

2022-04-25 Thread Stefan Hajnoczi
On Tue, Apr 19, 2022 at 04:44:20PM -0400, Jagannathan Raman wrote: > +static MSIMessage vfu_object_msi_prepare_msg(PCIDevice *pci_dev, > + unsigned int vector) > +{ > +MSIMessage msg; > + > +msg.address = 0; > +msg.data = vector; > + > +

[PATCH v8 15/17] vfio-user: handle device interrupts

2022-04-19 Thread Jagannathan Raman
Forward remote device's interrupts to the guest Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- include/hw/pci/pci.h | 13 include/hw/remote/vfio-user-obj.h | 6 ++ hw/pci/msi.c | 16 ++--