Re: [PATCH v2 00/12] KVM: arm/arm64: move VGIC MMIO to kvm_io_bus

2015-03-23 Thread Nikolay Nikolaev
dling quite a bit. Patch 12 > removes the now unneeded code. I split this up to ease reviewing, I > could merge patches as well if needed. Shall we add here also the last 2 patches from my series that actually enable the eventfd compilation and KVM_CAP_IOEVENTFD? Or should I send them sepa

Re: [PATCH v2 11/12] KVM: arm/arm64: rework MMIO abort handling to use KVM MMIO bus

2015-03-23 Thread Nikolay Nikolaev
cleaner and straightforward than what it was before. Nikolay Nikolaev > because that touches a lot of code lines without any good reason. > > This is based on an original patch by Nikolay. > > Signed-off-by: Andre Przywara > Cc: Nikolay Nikolaev > --- > arch/arm/incl

Re: [PATCH v3 3/5] KVM: ARM VGIC add kvm_io_bus_ frontend

2015-01-29 Thread Nikolay Nikolaev
On Tue, Jan 27, 2015 at 7:44 PM, Andre Przywara wrote: > Hi, > > On 27/01/15 17:26, Eric Auger wrote: >> On 01/27/2015 05:51 PM, Nikolay Nikolaev wrote: >>> Hi Andre, >>> >>> On Tue, Jan 27, 2015 at 3:31 PM, Andre Przywara >>> wrote: >>

Re: [PATCH v3 3/5] KVM: ARM VGIC add kvm_io_bus_ frontend

2015-01-27 Thread Nikolay Nikolaev
Hi Andre, On Tue, Jan 27, 2015 at 3:31 PM, Andre Przywara wrote: > > Hi Nikolay, > > On 24/01/15 11:59, Nikolay Nikolaev wrote: > > In io_mem_abort remove the call to vgic_handle_mmio. The target is to have > > a single MMIO handling path - that is through the kvm_io_bus_

[PATCH v3 3/5] KVM: ARM VGIC add kvm_io_bus_ frontend

2015-01-24 Thread Nikolay Nikolaev
is composed to pass it to vm_ops.handle_mmio. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/mmio.c|3 - include/kvm/arm_vgic.h |3 - virt/kvm/arm/vgic.c| 123 3 files changed, 114 insertions(+), 15 deletions(-) diff --git a

[PATCH v3 1/5] KVM: Redesign kvm_io_bus_ API to pass VCPU structure to the callbacks.

2015-01-24 Thread Nikolay Nikolaev
This is needed in e.g. ARM vGIC emulation, where the MMIO handling depends on the VCPU that does the access. Signed-off-by: Nikolay Nikolaev --- arch/powerpc/kvm/mpic.c| 10 ++ arch/powerpc/kvm/powerpc.c |4 ++-- arch/s390/kvm/diag.c |2 +- arch/x86/kvm/i8254.c

[PATCH v3 5/5] ARM: enable KVM_CAP_IOEVENTFD

2015-01-24 Thread Nikolay Nikolaev
KVM on arm will support the eventfd extension. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/arm.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 6fbfa5f..ec5ebef 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -197,6

[PATCH v3 4/5] ARM/ARM64: enable linking against eventfd

2015-01-24 Thread Nikolay Nikolaev
This enables compilation of the eventfd feature on ARM/ARM64. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/Kconfig|1 + arch/arm/kvm/Makefile |2 +- arch/arm64/kvm/Kconfig |1 + arch/arm64/kvm/Makefile |2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff

[PATCH v3 0/5] ARM: KVM: Enable the ioeventfd capability of KVM on ARM

2015-01-24 Thread Nikolay Nikolaev
resources - enable eventfd on ARM64 --- Nikolay Nikolaev (5): KVM: Redesign kvm_io_bus_ API to pass VCPU structure to the callbacks. KVM: ARM: on IO mem abort - route the call to KVM MMIO bus KVM: ARM VGIC add kvm_io_bus_ frontend ARM/ARM64: enable linking against eventfd

[PATCH v3 2/5] KVM: ARM: on IO mem abort - route the call to KVM MMIO bus

2015-01-24 Thread Nikolay Nikolaev
On IO memory abort, try to handle the MMIO access thorugh the KVM registered read/write callbacks. This is done by invoking the relevant kvm_io_bus_* API. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/mmio.c | 33 + 1 file changed, 33 insertions(+) diff

Re: [PATCH v2 2/5] KVM: ARM: on IO mem abort - route the call to KVM MMIO bus

2015-01-23 Thread Nikolay Nikolaev
On Mon, Jan 12, 2015 at 7:09 PM, Eric Auger wrote: > Hi Nikolay, > On 12/07/2014 10:37 AM, Nikolay Nikolaev wrote: >> On IO memory abort, try to handle the MMIO access thorugh the KVM >> registered read/write callbacks. This is done by invoking the relevant >> kvm_io_bus

Re: [PATCH v2 3/5] KVM: ARM VGIC add kvm_io_bus_ frontend

2015-01-23 Thread Nikolay Nikolaev
On Mon, Jan 12, 2015 at 11:41 PM, Eric Auger wrote: > On 12/07/2014 10:37 AM, Nikolay Nikolaev wrote: >> In io_mem_abort remove the call to vgic_handle_mmio. The target is to have >> a single MMIO handling path - that is through the kvm_io_bus_ API. >> >> Register a kvm

Re: [RFC PATCH 2/5] ARM: on IO mem abort - route the call to KVM MMIO bus

2015-01-23 Thread Nikolay Nikolaev
On Mon, Jan 12, 2015 at 6:21 PM, Eric Auger wrote: > > On 12/05/2014 01:06 PM, Nikolay Nikolaev wrote: > > On Sat, Nov 29, 2014 at 1:28 PM, Christoffer Dall > > wrote: > >> On Mon, Nov 24, 2014 at 11:26:51PM +0200, Nikolay Nikolaev wrote: > >>> On IO memo

[PATCH v2 1/5] KVM: Redesign kvm_io_bus_ API to pass VCPU structure to the callbacks.

2014-12-07 Thread Nikolay Nikolaev
This is needed in e.g. ARM vGIC emulation, where the MMIO handling depends on the VCPU that does the access. Signed-off-by: Nikolay Nikolaev --- arch/ia64/kvm/kvm-ia64.c |4 ++-- arch/powerpc/kvm/mpic.c| 10 ++ arch/powerpc/kvm/powerpc.c |4 ++-- arch/s390/kvm/diag.c

[PATCH v2 5/5] ARM: enable KVM_CAP_IOEVENTFD

2014-12-07 Thread Nikolay Nikolaev
KVM on arm will support the eventfd extension. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/arm.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index c3d0fbd..266b618 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -197,6

[PATCH v2 3/5] KVM: ARM VGIC add kvm_io_bus_ frontend

2014-12-07 Thread Nikolay Nikolaev
is composed to pass it to vm_ops.handle_mmio. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/mmio.c|3 - include/kvm/arm_vgic.h |3 - virt/kvm/arm/vgic.c| 127 3 files changed, 118 insertions(+), 15 deletions(-) diff --git a

[PATCH v2 0/5] ARM: KVM: Enable the ioeventfd capability of KVM on ARM

2014-12-07 Thread Nikolay Nikolaev
ction - added vgic_unregister_kvm_io_dev to free the iodev resources - enable eventfd on ARM64 --- Nikolay Nikolaev (5): KVM: Redesign kvm_io_bus_ API to pass VCPU structure to the callbacks. KVM: ARM: on IO mem abort - route the call to KVM MMIO bus KVM: ARM VGIC add kvm_io

[PATCH v2 4/5] ARM/ARM64: enable linking against eventfd

2014-12-07 Thread Nikolay Nikolaev
This enables compilation of the eventfd feature on ARM/ARM64. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/Kconfig|1 + arch/arm/kvm/Makefile |2 +- arch/arm64/kvm/Kconfig |1 + arch/arm64/kvm/Makefile |2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff

[PATCH v2 2/5] KVM: ARM: on IO mem abort - route the call to KVM MMIO bus

2014-12-07 Thread Nikolay Nikolaev
On IO memory abort, try to handle the MMIO access thorugh the KVM registered read/write callbacks. This is done by invoking the relevant kvm_io_bus_* API. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/mmio.c | 33 + 1 file changed, 33 insertions(+) diff

Re: [RFC PATCH 4/5] ARM: enable linking against eventfd and irqchip

2014-12-05 Thread Nikolay Nikolaev
On Sat, Nov 29, 2014 at 1:29 PM, Christoffer Dall wrote: > Inidicate KVM in the subject please. > > On Mon, Nov 24, 2014 at 11:27:06PM +0200, Nikolay Nikolaev wrote: >> This enables compilation of the eventfd feature on ARM. > > does this enable anything else than the io

Re: [RFC PATCH 3/5] KVM: ARM VGIC add kvm_io_bus_ frontend

2014-12-05 Thread Nikolay Nikolaev
On Sat, Nov 29, 2014 at 3:54 PM, Nikolay Nikolaev wrote: > On Sat, Nov 29, 2014 at 1:29 PM, Christoffer Dall > wrote: >> On Mon, Nov 24, 2014 at 11:26:58PM +0200, Nikolay Nikolaev wrote: >>> In io_mem_abort remove the call to vgic_handle_mmio. The target is to have >&

Re: [RFC PATCH 2/5] ARM: on IO mem abort - route the call to KVM MMIO bus

2014-12-05 Thread Nikolay Nikolaev
On Sat, Nov 29, 2014 at 1:28 PM, Christoffer Dall wrote: > On Mon, Nov 24, 2014 at 11:26:51PM +0200, Nikolay Nikolaev wrote: >> On IO memory abort, try to handle the MMIO access thorugh the KVM >> registered read/write callbacks. This is done by invoking the relevant >

Re: [RFC PATCH 3/5] KVM: ARM VGIC add kvm_io_bus_ frontend

2014-11-29 Thread Nikolay Nikolaev
On Sat, Nov 29, 2014 at 9:14 AM, Shannon Zhao wrote: > On 2014/11/25 5:26, Nikolay Nikolaev wrote: >> In io_mem_abort remove the call to vgic_handle_mmio. The target is to have >> a single MMIO handling path - that is through the kvm_io_bus_ API. >> >> Register a kvm_io

Re: [RFC PATCH 3/5] KVM: ARM VGIC add kvm_io_bus_ frontend

2014-11-29 Thread Nikolay Nikolaev
On Sat, Nov 29, 2014 at 1:29 PM, Christoffer Dall wrote: > On Mon, Nov 24, 2014 at 11:26:58PM +0200, Nikolay Nikolaev wrote: >> In io_mem_abort remove the call to vgic_handle_mmio. The target is to have >> a single MMIO handling path - that is through the kvm_io_bus_ API. &

Re: [RFC PATCH 4/5] ARM: enable linking against eventfd and irqchip

2014-11-29 Thread Nikolay Nikolaev
On Sat, Nov 29, 2014 at 9:18 AM, Shannon Zhao wrote: > > On 2014/11/25 5:27, Nikolay Nikolaev wrote: > > This enables compilation of the eventfd feature on ARM. > > > > Only enable on ARM? I think we should enable it on ARM64 as well because the > eventfd featrue is

[RFC PATCH 2/5] ARM: on IO mem abort - route the call to KVM MMIO bus

2014-11-24 Thread Nikolay Nikolaev
On IO memory abort, try to handle the MMIO access thorugh the KVM registered read/write callbacks. This is done by invoking the relevant kvm_io_bus_* API. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/mmio.c | 33 + 1 file changed, 33 insertions(+) diff

[RFC PATCH 1/5] KVM: redesing kvm_io_bus_ API to pass VCPU structure to the callbacks.

2014-11-24 Thread Nikolay Nikolaev
This is needed in e.g. ARM vGIC emulation, where the MMIO handling depends on the VCPU that does the access. Signed-off-by: Nikolay Nikolaev --- arch/ia64/kvm/kvm-ia64.c |4 ++-- arch/powerpc/kvm/powerpc.c |4 ++-- arch/s390/kvm/diag.c |2 +- arch/x86/kvm/vmx.c

[RFC PATCH 4/5] ARM: enable linking against eventfd and irqchip

2014-11-24 Thread Nikolay Nikolaev
This enables compilation of the eventfd feature on ARM. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/Kconfig |1 + arch/arm/kvm/Makefile |2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/kvm/Kconfig b/arch/arm/kvm/Kconfig index 466bd29..a4b0312 100644

[RFC PATCH 5/5] ARM: enable KVM_CAP_IOEVENTFD

2014-11-24 Thread Nikolay Nikolaev
KVM on arm will support the eventfd extension. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/arm.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index c3d0fbd..266b618 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -197,6

[RFC PATCH 3/5] KVM: ARM VGIC add kvm_io_bus_ frontend

2014-11-24 Thread Nikolay Nikolaev
is composed to pass it to vm_ops.handle_mmio. Signed-off-by: Nikolay Nikolaev --- arch/arm/kvm/mmio.c|3 -- include/kvm/arm_vgic.h |3 +- virt/kvm/arm/vgic.c| 88 3 files changed, 74 insertions(+), 20 deletions(-) diff --git a

[RFC PATCH 0/5] ARM: KVM: Enable the ioeventfd capability of KVM on ARM

2014-11-24 Thread Nikolay Nikolaev
region. The patches are implemented on top of the latest Andre's vGICv3 work from here: http://www.linux-arm.org/git?p=linux-ap.git;a=shortlog;h=refs/heads/kvm-gicv3/v4 The code was tested on Dual Cortex-A15 Exynos5250 (ARM Chromebook). --- Nikolay Nikolaev (5): KVM: redesing kvm_io_bus

Re: [RFC PATCH 1/4] ARM: KVM: on unhandled IO mem abort, route the call to the KVM MMIO bus

2014-11-13 Thread Nikolay Nikolaev
On Thu, Nov 13, 2014 at 4:23 PM, Eric Auger wrote: > On 11/13/2014 03:16 PM, Eric Auger wrote: >> On 11/13/2014 11:45 AM, Nikolay Nikolaev wrote: >>> On Mon, Nov 10, 2014 at 6:27 PM, Christoffer Dall >>> wrote: >>>> On Mon, Nov 10, 2014 at 05:09:07PM +02

Re: [RFC PATCH 1/4] ARM: KVM: on unhandled IO mem abort, route the call to the KVM MMIO bus

2014-11-13 Thread Nikolay Nikolaev
On Thu, Nov 13, 2014 at 1:52 PM, Andre Przywara wrote: > Hi Nikolay, > > On 13/11/14 11:37, Marc Zyngier wrote: >> [fixing Andre's email address] >> >> On 13/11/14 11:20, Christoffer Dall wrote: >>> On Thu, Nov 13, 2014 at

Re: [RFC PATCH 1/4] ARM: KVM: on unhandled IO mem abort, route the call to the KVM MMIO bus

2014-11-13 Thread Nikolay Nikolaev
On Mon, Nov 10, 2014 at 6:27 PM, Christoffer Dall wrote: > On Mon, Nov 10, 2014 at 05:09:07PM +0200, Nikolay Nikolaev wrote: >> Hello, >> >> On Fri, Mar 28, 2014 at 9:09 PM, Christoffer Dall >> wrote: >> > >> > On Thu, Mar 13, 2014 at 04:57:26P

Re: [RFC PATCH 1/4] ARM: KVM: on unhandled IO mem abort, route the call to the KVM MMIO bus

2014-11-10 Thread Nikolay Nikolaev
cks. This > > is a dependency for eventfd support (ioeventfd and irqfd). > > > > However, accesses to the VGIC are still left implemented independently, > > since the kvm_io_bus_* API doesn't pass the VCPU pointer doing the access. > > > > Signed-of

Re: The status about vhost-net on kvm-arm?

2014-08-13 Thread Nikolay Nikolaev
On Wed, Aug 13, 2014 at 12:10 PM, Nikolay Nikolaev wrote: > On Tue, Aug 12, 2014 at 6:47 PM, Nikolay Nikolaev > wrote: >> >> Hello, >> >> >> On Tue, Aug 12, 2014 at 5:41 AM, Li Liu wrote: >> > >> > Hi all, >> > >>

Re: The status about vhost-net on kvm-arm?

2014-08-13 Thread Nikolay Nikolaev
On Tue, Aug 12, 2014 at 6:47 PM, Nikolay Nikolaev wrote: > > Hello, > > > On Tue, Aug 12, 2014 at 5:41 AM, Li Liu wrote: > > > > Hi all, > > > > Is anyone there can tell the current status of vhost-net on kvm-arm? > > > > Half a year has passed

Re: The status about vhost-net on kvm-arm?

2014-08-12 Thread Nikolay Nikolaev
to think that it all can be put together and rebased + the recent irqfd work. One can achiev even better performance (because of the irqfd). > > > > > > ___ > kvmarm mailing list > kvm...@lists.cs.columbia.edu > https://lists.cs.