Re: [PULL 0/7] ppc patch queue 2013-03-22

2013-04-12 Thread Marcelo Tosatti
On Thu, Apr 11, 2013 at 03:50:13PM +0200, Alexander Graf wrote: On 11.04.2013, at 15:45, Marcelo Tosatti wrote: On Tue, Mar 26, 2013 at 12:59:04PM +1100, Paul Mackerras wrote: On Tue, Mar 26, 2013 at 03:33:12AM +0200, Gleb Natapov wrote: On Tue, Mar 26, 2013 at 12:35:09AM +0100,

Re: [PULL 0/7] ppc patch queue 2013-03-22

2013-04-12 Thread Alexander Graf
On 12.04.2013, at 22:54, Marcelo Tosatti wrote: On Thu, Apr 11, 2013 at 03:50:13PM +0200, Alexander Graf wrote: On 11.04.2013, at 15:45, Marcelo Tosatti wrote: On Tue, Mar 26, 2013 at 12:59:04PM +1100, Paul Mackerras wrote: On Tue, Mar 26, 2013 at 03:33:12AM +0200, Gleb Natapov wrote:

[PATCH tip/core/rcu 2/2] powerpc,kvm: Fix unbalanced srcu_read_[un]lock()

2013-04-12 Thread Paul E. McKenney
From: Lai Jiangshan la...@cn.fujitsu.com At the up_out: label in kvmppc_hv_setup_htab_rma(), srcu_read_lock() is still held. This commit therefore have to releases it before return. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com Cc: Marcelo Tosatti mtosa...@redhat.com Cc: Gleb Natapov

[PATCH v4 1/6] kvm: add device control API

2013-04-12 Thread Scott Wood
Currently, devices that are emulated inside KVM are configured in a hardcoded manner based on an assumption that any given architecture only has one way to do it. If there's any need to access device state, it is done through inflexible one-purpose-only IOCTLs (e.g. KVM_GET/SET_LAPIC). Defining

[PATCH v4 0/6] device-control and in-kernel MPIC

2013-04-12 Thread Scott Wood
Scott Wood (6): kvm: add device control API kvm/ppc/mpic: import hw/openpic.c from QEMU kvm/ppc/mpic: remove some obviously unneeded code kvm/ppc/mpic: adapt to kernel style and environment kvm/ppc/mpic: in-kernel MPIC emulation kvm/ppc/mpic: add KVM_CAP_IRQ_MPIC

[PATCH v4 2/6] kvm/ppc/mpic: import hw/openpic.c from QEMU

2013-04-12 Thread Scott Wood
This is QEMU's hw/openpic.c from commit abd8d4a4d6dfea7ddea72f095f993e1de941614e (Update version for 1.4.0-rc0), run through Lindent with no other changes to ease merging future changes between Linux and QEMU. Remaining style issues (including those introduced by Lindent) will be fixed in a later

[PATCH v4 3/6] kvm/ppc/mpic: remove some obviously unneeded code

2013-04-12 Thread Scott Wood
Remove some parts of the code that are obviously QEMU or Raven specific before fixing style issues, to reduce the style issues that need to be fixed. Signed-off-by: Scott Wood scottw...@freescale.com --- arch/powerpc/kvm/mpic.c | 344 --- 1 file

[PATCH v4 5/6] kvm/ppc/mpic: in-kernel MPIC emulation

2013-04-12 Thread Scott Wood
Hook the MPIC code up to the KVM interfaces, add locking, etc. TODO: irqfd and KVM_IRQ_LINE support Signed-off-by: Scott Wood scottw...@freescale.com --- v4: - update for changes in device control api - use put/get_user where possible - add missing locks (one which was actually required, and

[PATCH v4 4/6] kvm/ppc/mpic: adapt to kernel style and environment

2013-04-12 Thread Scott Wood
Remove braces that Linux style doesn't permit, remove space after '*' that Lindent added, keep error/debug strings contiguous, etc. Substitute type names, debug prints, etc. Signed-off-by: Scott Wood scottw...@freescale.com --- arch/powerpc/kvm/mpic.c | 445