Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-12-12 Thread liu ping fan
Hi Jan and Cam, It has been tested with uio driver. And other opinion for the code? Regards, Pingfan On Thu, Dec 6, 2012 at 2:37 PM, Liu Ping Fan wrote: > From: Liu Ping Fan > > Using irqfd, so we can avoid switch between kernel and user when > VMs interrupts each other. > > Signed-off-by: Liu

[Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-12-05 Thread Liu Ping Fan
From: Liu Ping Fan Using irqfd, so we can avoid switch between kernel and user when VMs interrupts each other. Signed-off-by: Liu Ping Fan Signed-off-by: Cam Macdonell --- hw/ivshmem.c | 54 +- 1 files changed, 53 insertions(+), 1 deletion

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-12-05 Thread liu ping fan
On Thu, Dec 6, 2012 at 1:10 PM, Cam Macdonell wrote: > On Wed, Dec 5, 2012 at 1:50 AM, Jan Kiszka wrote: >> On 2012-12-05 06:34, Cam Macdonell wrote: static void ivshmem_write_config(PCIDevice *pci_dev, uint32_t address, uint32_t val, int len) { >

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-12-05 Thread Cam Macdonell
On Wed, Dec 5, 2012 at 1:50 AM, Jan Kiszka wrote: > On 2012-12-05 06:34, Cam Macdonell wrote: >>> static void ivshmem_write_config(PCIDevice *pci_dev, uint32_t address, >>> uint32_t val, int len) >>> { >>> +bool is_enabled, was_enabled = msi_enabled(pci_dev);

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-12-05 Thread Andrew Jones
- Original Message - > On Tue, Dec 4, 2012 at 4:10 AM, Andrew Jones > wrote: > > > > > > - Original Message - > >> On Thu, Nov 29, 2012 at 1:34 AM, liu ping fan > >> wrote: > >> > On Thu, Nov 29, 2012 at 12:42 PM, Cam Macdonell > >> > wrote: > >> >> On Tue, Nov 27, 2012 at 7:53

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-12-05 Thread Jan Kiszka
On 2012-12-05 06:34, Cam Macdonell wrote: >> static void ivshmem_write_config(PCIDevice *pci_dev, uint32_t address, >> uint32_t val, int len) >> { >> +bool is_enabled, was_enabled = msi_enabled(pci_dev); >> + >> pci_default_write_config(pci_dev, address,

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-12-04 Thread Cam Macdonell
On Sat, Nov 24, 2012 at 8:51 PM, Liu Ping Fan wrote: > From: Liu Ping Fan > > Using irqfd, so we can avoid switch between kernel and user when > VMs interrupts each other. > Hi Liu Ping, With this patch applied I was still seeing transitions to user-level on the receipt of an msi interrupt. un

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-12-04 Thread Cam Macdonell
On Tue, Dec 4, 2012 at 4:10 AM, Andrew Jones wrote: > > > - Original Message - >> On Thu, Nov 29, 2012 at 1:34 AM, liu ping fan >> wrote: >> > On Thu, Nov 29, 2012 at 12:42 PM, Cam Macdonell >> > wrote: >> >> On Tue, Nov 27, 2012 at 7:53 PM, liu ping fan >> >> wrote: >> >>> On Wed, Nov

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-12-04 Thread Andrew Jones
- Original Message - > On Thu, Nov 29, 2012 at 1:34 AM, liu ping fan > wrote: > > On Thu, Nov 29, 2012 at 12:42 PM, Cam Macdonell > > wrote: > >> On Tue, Nov 27, 2012 at 7:53 PM, liu ping fan > >> wrote: > >>> On Wed, Nov 28, 2012 at 5:48 AM, Cam Macdonell > >>> wrote: > On Sat,

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-11-29 Thread Cam Macdonell
On Thu, Nov 29, 2012 at 1:34 AM, liu ping fan wrote: > On Thu, Nov 29, 2012 at 12:42 PM, Cam Macdonell wrote: >> On Tue, Nov 27, 2012 at 7:53 PM, liu ping fan wrote: >>> On Wed, Nov 28, 2012 at 5:48 AM, Cam Macdonell wrote: On Sat, Nov 24, 2012 at 8:51 PM, Liu Ping Fan wrote: > From:

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-11-29 Thread liu ping fan
On Thu, Nov 29, 2012 at 12:42 PM, Cam Macdonell wrote: > On Tue, Nov 27, 2012 at 7:53 PM, liu ping fan wrote: >> On Wed, Nov 28, 2012 at 5:48 AM, Cam Macdonell wrote: >>> On Sat, Nov 24, 2012 at 8:51 PM, Liu Ping Fan wrote: From: Liu Ping Fan Using irqfd, so we can avoid switch

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-11-28 Thread Cam Macdonell
On Tue, Nov 27, 2012 at 7:53 PM, liu ping fan wrote: > On Wed, Nov 28, 2012 at 5:48 AM, Cam Macdonell wrote: >> On Sat, Nov 24, 2012 at 8:51 PM, Liu Ping Fan wrote: >>> From: Liu Ping Fan >>> >>> Using irqfd, so we can avoid switch between kernel and user when >>> VMs interrupts each other. >>

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-11-27 Thread liu ping fan
On Wed, Nov 28, 2012 at 5:48 AM, Cam Macdonell wrote: > On Sat, Nov 24, 2012 at 8:51 PM, Liu Ping Fan wrote: >> From: Liu Ping Fan >> >> Using irqfd, so we can avoid switch between kernel and user when >> VMs interrupts each other. > > Nice work. Due to a hardware failure, there will be a small

Re: [Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-11-27 Thread Cam Macdonell
On Sat, Nov 24, 2012 at 8:51 PM, Liu Ping Fan wrote: > From: Liu Ping Fan > > Using irqfd, so we can avoid switch between kernel and user when > VMs interrupts each other. Nice work. Due to a hardware failure, there will be a small delay in me being able to test this. I'll follow up as soon as

[Qemu-devel] [PATCH v2 2/2] ivshmem: use irqfd to interrupt among VMs

2012-11-24 Thread Liu Ping Fan
From: Liu Ping Fan Using irqfd, so we can avoid switch between kernel and user when VMs interrupts each other. Signed-off-by: Liu Ping Fan --- hw/ivshmem.c | 54 +- 1 files changed, 53 insertions(+), 1 deletions(-) diff --git a/hw/ivshmem.