[PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-04-15 Thread Andre Przywara
We register a kvm_io_bus device for the distributor and dispatch the calls to the actual register handler at runtime. Ideally we would register each register group directly with the kvm_io_bus framework, but currently we run into the limit of 1000 devices pretty quickly (with GICv3), so we use this

Re: [RFC PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-04-12 Thread Christoffer Dall
On Tue, Apr 12, 2016 at 04:56:08PM +0100, Marc Zyngier wrote: > On 12/04/16 13:50, Christoffer Dall wrote: > > On Mon, Apr 11, 2016 at 11:53:21AM +0100, Andre Przywara wrote: > >> Hi Christoffer, > >> > >> On 31/03/16 10:08, Christoffer Dall wrote: > >>> Hi Andre, > >>> > >>> [cc'ing Paolo here for

Re: [RFC PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-04-12 Thread Marc Zyngier
On 12/04/16 13:50, Christoffer Dall wrote: > On Mon, Apr 11, 2016 at 11:53:21AM +0100, Andre Przywara wrote: >> Hi Christoffer, >> >> On 31/03/16 10:08, Christoffer Dall wrote: >>> Hi Andre, >>> >>> [cc'ing Paolo here for his thoughts on the KVM IO bus framework] >>> >>> On Fri, Mar 25, 2016 at 02:

Re: [RFC PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-04-12 Thread Christoffer Dall
On Mon, Apr 11, 2016 at 11:53:21AM +0100, Andre Przywara wrote: > Hi Christoffer, > > On 31/03/16 10:08, Christoffer Dall wrote: > > Hi Andre, > > > > [cc'ing Paolo here for his thoughts on the KVM IO bus framework] > > > > On Fri, Mar 25, 2016 at 02:04:35AM +, Andre Przywara wrote: > >> We

Re: [RFC PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-04-11 Thread Andre Przywara
Hi Christoffer, On 31/03/16 10:08, Christoffer Dall wrote: > Hi Andre, > > [cc'ing Paolo here for his thoughts on the KVM IO bus framework] > > On Fri, Mar 25, 2016 at 02:04:35AM +, Andre Przywara wrote: >> We register each register group of the distributor and redistributors >> as separate

Re: [RFC PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-04-01 Thread Christoffer Dall
On Fri, Apr 01, 2016 at 01:11:06PM +0100, André Przywara wrote: > On 31/03/16 10:08, Christoffer Dall wrote: > > Hi Andre, > > > > [cc'ing Paolo here for his thoughts on the KVM IO bus framework] > > > > On Fri, Mar 25, 2016 at 02:04:35AM +, Andre Przywara wrote: > >> We register each registe

Re: [RFC PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-04-01 Thread André Przywara
On 31/03/16 10:08, Christoffer Dall wrote: > Hi Andre, > > [cc'ing Paolo here for his thoughts on the KVM IO bus framework] > > On Fri, Mar 25, 2016 at 02:04:35AM +, Andre Przywara wrote: >> We register each register group of the distributor and redistributors >> as separate regions of the kv

Re: [RFC PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-03-31 Thread Christoffer Dall
On Thu, Mar 31, 2016 at 02:25:02PM +0200, Paolo Bonzini wrote: > > > On 31/03/2016 11:09, Christoffer Dall wrote: > >> My comments to Vladimir's bug report notwithstanding, there's still a > >> choice here to: > >> > >> 1) Expand/modify the KVM IO bus framework to take an arbitrary number of > >

Re: [RFC PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-03-31 Thread Paolo Bonzini
On 31/03/2016 11:09, Christoffer Dall wrote: >> My comments to Vladimir's bug report notwithstanding, there's still a >> choice here to: >> >> 1) Expand/modify the KVM IO bus framework to take an arbitrary number of >> devices >> >> 2) Build a KVM architectureal generic framework on top of the I

Re: [RFC PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-03-31 Thread Christoffer Dall
[really cc'ing Paolo this time] On Thu, Mar 31, 2016 at 11:08 AM, Christoffer Dall wrote: > Hi Andre, > > [cc'ing Paolo here for his thoughts on the KVM IO bus framework] > > On Fri, Mar 25, 2016 at 02:04:35AM +, Andre Przywara wrote: >> We register each register group of the distributor and

Re: [RFC PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-03-31 Thread Christoffer Dall
Hi Andre, [cc'ing Paolo here for his thoughts on the KVM IO bus framework] On Fri, Mar 25, 2016 at 02:04:35AM +, Andre Przywara wrote: > We register each register group of the distributor and redistributors > as separate regions of the kvm-io-bus framework. This way calls get > directly hande

[RFC PATCH 12/45] KVM: arm/arm64: vgic-new: Add MMIO handling framework

2016-03-24 Thread Andre Przywara
We register each register group of the distributor and redistributors as separate regions of the kvm-io-bus framework. This way calls get directly handed over to the actual handler. This puts a lot more regions into kvm-io-bus than what we use at the moment on other architectures, so we will probab