Re: [Qemu-devel] KVM call agenda for 2013-12-24

2013-12-21 Thread Markus Armbruster
Juan Quintela writes: > Hi > > First of all, poll told to move the call earlier. > > 9:00 EST (15:00 CET or 6:00 Pacific) ACK > Are we having a call on the 24th? Do we have any topics? Are enough > people not on vacation? I'm not not on vacation, and I hope y'all aren't not on vacation, eith

Re: [PATCH v2] arm: KVM: Don't return PSCI_INVAL if waitqueue is inactive

2013-12-21 Thread Marc Zyngier
On 2013-12-18 06:26, Christoffer Dall wrote: The current KVM implementation of PSCI returns INVALID_PARAMETERS if the waitqueue for the corresponding CPU is not active. This does not seem correct, since KVM should not care what the specific thread is doing, for example, user space may not have

Re: [PATCH v5 08/10] KVM: arm-vgic: Support unqueueing of LRs to the dist

2013-12-21 Thread Marc Zyngier
On 2013-12-17 05:29, Christoffer Dall wrote: To properly access the VGIC state from user space it is very unpractical to have to loop through all the LRs in all register access functions. Instead, support moving all pending state from LRs to the distributor, but leave active state LRs alone.

Re: [PATCH v5 00/10] Support VGIC save/restore using device control API

2013-12-21 Thread Marc Zyngier
On 2013-12-17 05:29, Christoffer Dall wrote: Implement save/restore of the VGIC state using the newer KVM Device Control API. This requries some number of changes to existing code in addition to actually supporting save/restore of the necessary state. The first patches (01-03) support creatin

Re: [PATCH v2 08/10] hw/mips: In KVM mode, inject IRQ2 (I/O) interupts via ioctls

2013-12-21 Thread Aurelien Jarno
On Mon, Dec 16, 2013 at 02:12:43PM +, James Hogan wrote: > From: Sanjay Lal > > COP0 emulation is in-kernel for KVM, so inject IRQ2 (I/O) interrupts via > ioctls. > > Signed-off-by: Sanjay Lal > Signed-off-by: James Hogan > Cc: Aurelien Jarno > --- > Changes in v2: > - Expand commit mess

Re: [PATCH v2 10/10] target-mips: Enable KVM support in build system

2013-12-21 Thread Aurelien Jarno
On Mon, Dec 16, 2013 at 02:12:45PM +, James Hogan wrote: > From: Sanjay Lal > > Enable KVM support for MIPS in the build system. > > Signed-off-by: Sanjay Lal > Signed-off-by: James Hogan > Cc: Aurelien Jarno > --- > Changes in v2: > - Expand commit message > - Remove GIC code > - Crea

Re: [PATCH v2 01/10] hw/mips/cputimer: Don't start periodic timer in KVM mode

2013-12-21 Thread Aurelien Jarno
On Mon, Dec 16, 2013 at 02:12:36PM +, James Hogan wrote: > From: Sanjay Lal > > Compare/Count timer interrupts are handled in-kernel for KVM, so don't > bother starting it in QEMU. > > Signed-off-by: Sanjay Lal > Signed-off-by: James Hogan > Cc: Aurelien Jarno > --- > Changes in v2: > -

Re: [PATCH v2 09/10] hw/mips: malta: Add KVM support

2013-12-21 Thread Aurelien Jarno
On Mon, Dec 16, 2013 at 02:12:44PM +, James Hogan wrote: > In KVM mode the bootrom is loaded and executed from the last 1MB of > DRAM. > > Based on "[PATCH 12/12] KVM/MIPS: General KVM support and support for > SMP Guests" by Sanjay Lal . > > Signed-off-by: James Hogan > Cc: Aurelien Jarno

Re: [PATCH v2 04/10] target-mips: get_physical_address: Add KVM awareness

2013-12-21 Thread Aurelien Jarno
On Mon, Dec 16, 2013 at 02:12:39PM +, James Hogan wrote: > MIPS KVM trap & emulate mode (which is currently the only supported > mode) has to add an extra kseg0/kseg1 at 0x4000 and an extra > kseg2/kseg3 at 0x6000. Take this into account in > get_physical_address() so that debug memory

Re: [PATCH v2 02/10] hw/mips: Add API to convert KVM guest KSEG0 <-> GPA

2013-12-21 Thread Aurelien Jarno
On Mon, Dec 16, 2013 at 02:12:37PM +, James Hogan wrote: > From: Sanjay Lal > > Add APIs for converting between KVM guest KSEG0 addresses and guest > physical addresses. These will be used for translating addresses when > loading a kernel ELF in KVM mode. > > In KVM trap and emulate mode bot

Re: [PATCH v2 06/10] target-mips: Set target page size to 16K in KVM mode

2013-12-21 Thread Aurelien Jarno
On Mon, Dec 16, 2013 at 02:12:41PM +, James Hogan wrote: > From: Sanjay Lal > > With larger set associative caches KVM can open the possibility of cache > aliasing between the memory that QEMU allocates with mmap and the > mapping into the guest address space. Therefore increase the target pa

Re: [PATCH v2 05/10] kvm: Set sigmask length to 16 for MIPS targets

2013-12-21 Thread Aurelien Jarno
On Mon, Dec 16, 2013 at 02:12:40PM +, James Hogan wrote: > From: Sanjay Lal > > MIPS/Linux is unusual in having 128 signals rather than just 64 like > most other architectures. This means its sigmask is 16 bytes instead of > 8, so correct kvm_set_signal_mask to pass the correct sigmask->len t

Re: [PATCH v2 03/10] target-mips: get_physical_address: Add defines for segment bases

2013-12-21 Thread Aurelien Jarno
On Mon, Dec 16, 2013 at 02:12:38PM +, James Hogan wrote: > Add preprocessor definitions for 32bit segment bases for use in > get_physical_address(). These will also be taken advantage of in the > next patch which adds KVM awareness. > > Signed-off-by: James Hogan > Cc: Aurelien Jarno > --- >

Re: [PATCH v2 07/10] target-mips: kvm: Add main KVM support for MIPS

2013-12-21 Thread Aurelien Jarno
On Mon, Dec 16, 2013 at 02:12:42PM +, James Hogan wrote: > From: Sanjay Lal > > Implement the main KVM arch API for MIPS. > > Signed-off-by: Sanjay Lal > Signed-off-by: James Hogan > Cc: Aurelien Jarno > Cc: Gleb Natapov > Cc: Paolo Bonzini > --- > Changes in v2: > - Expand commit mess

[PATCH] [trivial] doc: kvm: Fix typo in doc/virtual/kvm

2013-12-21 Thread Masanari Iida
Correct spelling typo in Documentations/virtual/kvm Signed-off-by: Masanari Iida --- Documentation/virtual/kvm/api.txt | 4 ++-- Documentation/virtual/kvm/hypercalls.txt | 2 +- Documentation/virtual/kvm/locking.txt | 4 ++-- Documentation/virtual/kvm/ppc-pv.txt | 2 +- Documen

Re: [PATCH v5 00/10] Support VGIC save/restore using device control API

2013-12-21 Thread Christoffer Dall
On Sat, Dec 21, 2013 at 11:15:30AM +, Marc Zyngier wrote: > On 2013-12-17 05:29, Christoffer Dall wrote: > >Implement save/restore of the VGIC state using the newer KVM Device > >Control API. This requries some number of changes to existing > >code in > >addition to actually supporting save/re

Re: [PATCH] [trivial] doc: kvm: Fix typo in doc/virtual/kvm

2013-12-21 Thread Randy Dunlap
On 12/21/13 08:21, Masanari Iida wrote: > Correct spelling typo in Documentations/virtual/kvm > > Signed-off-by: Masanari Iida Acked-by: Randy Dunlap Thanks. > --- > Documentation/virtual/kvm/api.txt | 4 ++-- > Documentation/virtual/kvm/hypercalls.txt | 2 +- > Documentation/virtua

Re: [Qemu-devel] [PATCH v2 10/10] target-mips: Enable KVM support in build system

2013-12-21 Thread Peter Maydell
On 16 December 2013 14:12, James Hogan wrote: > From: Sanjay Lal > > Enable KVM support for MIPS in the build system. > > Signed-off-by: Sanjay Lal > Signed-off-by: James Hogan > Cc: Aurelien Jarno > --- > Changes in v2: > - Expand commit message > - Remove GIC code > - Create asm-mips syml

Re: [Qemu-devel] [PATCH v2 05/10] kvm: Set sigmask length to 16 for MIPS targets

2013-12-21 Thread Peter Maydell
On 16 December 2013 14:12, James Hogan wrote: > From: Sanjay Lal > > MIPS/Linux is unusual in having 128 signals rather than just 64 like > most other architectures. This means its sigmask is 16 bytes instead of > 8, so correct kvm_set_signal_mask to pass the correct sigmask->len to > KVM_SET_SIG

Re: [Qemu-devel] [PATCH v2 08/10] hw/mips: In KVM mode, inject IRQ2 (I/O) interupts via ioctls

2013-12-21 Thread Peter Maydell
On 16 December 2013 14:12, James Hogan wrote: > From: Sanjay Lal > > COP0 emulation is in-kernel for KVM, so inject IRQ2 (I/O) interrupts via > ioctls. > > Signed-off-by: Sanjay Lal > Signed-off-by: James Hogan > Cc: Aurelien Jarno > --- > Changes in v2: > - Expand commit message > - Remove

Re: [Qemu-devel] [PATCH v2 09/10] hw/mips: malta: Add KVM support

2013-12-21 Thread Peter Maydell
On 16 December 2013 14:12, James Hogan wrote: > In KVM mode the bootrom is loaded and executed from the last 1MB of > DRAM. > > Based on "[PATCH 12/12] KVM/MIPS: General KVM support and support for > SMP Guests" by Sanjay Lal . > > Signed-off-by: James Hogan > Cc: Aurelien Jarno > --- > Changes