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

2014-11-13 Thread Eric Auger
On 11/13/2014 04:31 PM, Andre Przywara wrote: > > > On 13/11/14 15:02, Nikolay Nikolaev wrote: >> 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,

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

2014-11-13 Thread Andre Przywara
On 13/11/14 15:02, Nikolay Nikolaev wrote: > 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

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

2014-11-13 Thread Christoffer Dall
Hi Nikolay, On Thu, Nov 13, 2014 at 4:02 PM, Nikolay Nikolaev wrote: [...] >> >> >> We're reconsidering ioeventfds patchseries and we tried to evaluate >> what you suggested here. >> >>> >>> this special-casing of the vgic is now really terrible. Is there >>>

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 +0200, Nikolay Nikolaev wrote: > Hello,

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

2014-11-13 Thread Andre Przywara
Hi Nikolay, On 13/11/14 12:29, Nikolay Nikolaev wrote: > 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 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 12:45:42PM +0200, Nikolay Nikolaev wrote: >>> >>> [...] >>> >> >>

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

2014-11-13 Thread Andre Przywara
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 12:45:42PM +0200, Nikolay Nikolaev wrote: >> >> [...] >> > > Going through the vgic_handle_mmio we see that it will require large

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

2014-11-13 Thread Christoffer Dall
[resending to Andre's actual e-mail address] On Thu, Nov 13, 2014 at 12:20 PM, Christoffer Dall wrote: > On Thu, Nov 13, 2014 at 12:45:42PM +0200, Nikolay Nikolaev wrote: > > [...] > >> >> >> >> Going through the vgic_handle_mmio we see that it will require large >> >> refactoring: >> >> -

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

2014-11-13 Thread Christoffer Dall
On Thu, Nov 13, 2014 at 12:45:42PM +0200, Nikolay Nikolaev wrote: [...] > >> > >> Going through the vgic_handle_mmio we see that it will require large > >> refactoring: > >> - there are 15 MMIO ranges for the vgic now - each should be > >> registered as a separate device > >> - the handler of

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:26PM +0100, Antonios Motakis wrote: >> > > On an

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 christoffer.d...@linaro.org 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 christoffer.d...@linaro.org wrote: On Thu, Mar 13, 2014 at 04:57:26PM +0100,

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

2014-11-13 Thread Christoffer Dall
On Thu, Nov 13, 2014 at 12:45:42PM +0200, Nikolay Nikolaev wrote: [...] Going through the vgic_handle_mmio we see that it will require large refactoring: - there are 15 MMIO ranges for the vgic now - each should be registered as a separate device - the handler of each range should

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

2014-11-13 Thread Christoffer Dall
[resending to Andre's actual e-mail address] On Thu, Nov 13, 2014 at 12:20 PM, Christoffer Dall christoffer.d...@linaro.org wrote: On Thu, Nov 13, 2014 at 12:45:42PM +0200, Nikolay Nikolaev wrote: [...] Going through the vgic_handle_mmio we see that it will require large refactoring:

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

2014-11-13 Thread Andre Przywara
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 12:45:42PM +0200, Nikolay Nikolaev wrote: [...] Going through the vgic_handle_mmio we see that it will require large refactoring: -

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 andre.przyw...@arm.com 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 12:45:42PM +0200, Nikolay Nikolaev wrote: [...] Going

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

2014-11-13 Thread Andre Przywara
Hi Nikolay, On 13/11/14 12:29, Nikolay Nikolaev wrote: On Thu, Nov 13, 2014 at 1:52 PM, Andre Przywara andre.przyw...@arm.com 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 Thu, Nov 13, 2014 at 4:23 PM, Eric Auger eric.au...@linaro.org 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 christoffer.d...@linaro.org wrote: On Mon, Nov 10, 2014 at 05:09:07PM +0200,

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

2014-11-13 Thread Christoffer Dall
Hi Nikolay, On Thu, Nov 13, 2014 at 4:02 PM, Nikolay Nikolaev n.nikol...@virtualopensystems.com wrote: [...] We're reconsidering ioeventfds patchseries and we tried to evaluate what you suggested here. this special-casing of the vgic is now really terrible. Is there anything holding you

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

2014-11-13 Thread Andre Przywara
On 13/11/14 15:02, Nikolay Nikolaev wrote: On Thu, Nov 13, 2014 at 4:23 PM, Eric Auger eric.au...@linaro.org 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 christoffer.d...@linaro.org wrote:

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

2014-11-13 Thread Eric Auger
On 11/13/2014 04:31 PM, Andre Przywara wrote: On 13/11/14 15:02, Nikolay Nikolaev wrote: On Thu, Nov 13, 2014 at 4:23 PM, Eric Auger eric.au...@linaro.org 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,

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

2014-11-10 Thread Christoffer Dall
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:26PM +0100, Antonios Motakis wrote: > > > On an unhandled IO memory abort, use the kvm_io_bus_* API in order to > > >

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
Hello, On Fri, Mar 28, 2014 at 9:09 PM, Christoffer Dall wrote: > > On Thu, Mar 13, 2014 at 04:57:26PM +0100, Antonios Motakis wrote: > > On an unhandled IO memory abort, use the kvm_io_bus_* API in order to > > handle the MMIO access through any registered read/write callbacks. This > > is a

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
Hello, On Fri, Mar 28, 2014 at 9:09 PM, Christoffer Dall christoffer.d...@linaro.org wrote: On Thu, Mar 13, 2014 at 04:57:26PM +0100, Antonios Motakis wrote: On an unhandled IO memory abort, use the kvm_io_bus_* API in order to handle the MMIO access through any registered read/write

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

2014-11-10 Thread Christoffer Dall
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 christoffer.d...@linaro.org wrote: On Thu, Mar 13, 2014 at 04:57:26PM +0100, Antonios Motakis wrote: On an unhandled IO memory abort, use the kvm_io_bus_* API in

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

2014-03-28 Thread Christoffer Dall
On Thu, Mar 13, 2014 at 04:57:26PM +0100, Antonios Motakis wrote: > On an unhandled IO memory abort, use the kvm_io_bus_* API in order to > handle the MMIO access through any registered read/write callbacks. This > is a dependency for eventfd support (ioeventfd and irqfd). > > However, accesses

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

2014-03-28 Thread Christoffer Dall
On Thu, Mar 13, 2014 at 04:57:26PM +0100, Antonios Motakis wrote: On an unhandled IO memory abort, use the kvm_io_bus_* API in order to handle the MMIO access through any registered read/write callbacks. This is a dependency for eventfd support (ioeventfd and irqfd). However, accesses to the

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

2014-03-13 Thread Antonios Motakis
On an unhandled IO memory abort, use the kvm_io_bus_* API in order to handle the MMIO access through any registered read/write callbacks. 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_*

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

2014-03-13 Thread Antonios Motakis
On an unhandled IO memory abort, use the kvm_io_bus_* API in order to handle the MMIO access through any registered read/write callbacks. 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_*