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,
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:
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
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
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
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
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
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
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