[Qemu-devel] [PATCH v2 5/7] virtio-blk: Schedule BH in the right context

2014-06-17 Thread Fam Zheng
The BH must be called in the AioContext of bs. Currently it is only the main loop, but with coming changes, it could also be a dataplane IOThread. Signed-off-by: Fam Zheng --- hw/block/virtio-blk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/block/virtio-blk.c b/hw/b

Re: [Qemu-devel] [PATCH 4/7] spapr: Split memory nodes to power-of-two blocks

2014-06-17 Thread Alexey Kardashevskiy
On 06/16/2014 05:53 PM, Alexey Kardashevskiy wrote: > Linux kernel expects nodes to have power-of-two size and > does WARN_ON if this is not the case: > [0.041052] devtmpfs: initialized > [0.041292] [ cut here ] > [0.041456] WARNING: at drivers/base/memory.c:115

Re: [Qemu-devel] [PATCH 2/4] s390-virtio-bus: move common virtio properties to virtio s390 device class

2014-06-17 Thread Cornelia Huck
On Tue, 17 Jun 2014 10:44:11 +0800 Ming Lei wrote: > On Tue, Jun 17, 2014 at 12:04 AM, Cornelia Huck > wrote: > > On Mon, 16 Jun 2014 23:40:50 +0800 > > Ming Lei wrote: > > > >> The two common virtio features can be defined per bus, so move all > >> into virtio-s390 class device to make code mo

Re: [Qemu-devel] [PATCH v3 06/32] target-arm: make arm_current_pl() return PL3

2014-06-17 Thread Aggeler Fabian
On 17 Jun 2014, at 07:40, Edgar E. Iglesias wrote: > On Wed, Jun 11, 2014 at 01:54:48AM +0200, Fabian Aggeler wrote: >> Make arm_current_pl() return PL3 for secure PL1 and monitor mode. >> Increase MMU modes since mmu_index is directly infered from arm_ >> current_pl(). Changes assertion in arm_

Re: [Qemu-devel] [PATCH v3 30/32] target-arm: make PAR banked

2014-06-17 Thread Aggeler Fabian
On 14 Jun 2014, at 00:49, Greg Bellows mailto:greg.bell...@linaro.org>> wrote: On 10 June 2014 18:55, Fabian Aggeler mailto:aggel...@ethz.ch>> wrote: When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) PAR has a secure and a non-secure instance. Signed-off-by: Fabian Aggeler

Re: [Qemu-devel] [PATCH v3 06/32] target-arm: make arm_current_pl() return PL3

2014-06-17 Thread Edgar E. Iglesias
On Tue, Jun 17, 2014 at 07:12:19AM +, Aggeler Fabian wrote: > > On 17 Jun 2014, at 07:40, Edgar E. Iglesias wrote: > > > On Wed, Jun 11, 2014 at 01:54:48AM +0200, Fabian Aggeler wrote: > >> Make arm_current_pl() return PL3 for secure PL1 and monitor mode. > >> Increase MMU modes since mmu_i

Re: [Qemu-devel] [RFC v1 1/2] arm: Add the cortex-a9 CPU to the a9mpcore device

2014-06-17 Thread Stefan Hajnoczi
On Mon, Jun 16, 2014 at 05:46:24PM +1000, Peter Crosthwaite wrote: > On Mon, Jun 16, 2014 at 5:40 PM, Peter Maydell > wrote: > > On 10 June 2014 02:32, Alistair Francis wrote: > >> This patch adds the Cortex-A9 ARM CPU to the A9MPCore. > > > > I think this is in general the right way to go. > >

Re: [Qemu-devel] [PATCH v3 31/32] target-arm: make VBAR banked

2014-06-17 Thread Aggeler Fabian
On 14 Jun 2014, at 00:43, Greg Bellows mailto:greg.bell...@linaro.org>> wrote: On 10 June 2014 18:55, Fabian Aggeler mailto:aggel...@ethz.ch>> wrote: When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) VBAR has a secure and a non-secure instance, which are mapped to VBAR_EL1 a

Re: [Qemu-devel] [PATCH v3 02/32] target-arm: move Aarch32 SCR into security reglist

2014-06-17 Thread Aggeler Fabian
On 12 Jun 2014, at 23:55, Greg Bellows mailto:greg.bell...@linaro.org>> wrote: Conflict with Edgar's changes around the name of the security register group v8_el3_cp_reginfo vs. security_cp_reginfo. Given that there is a difference between the v7 regs and their v8 equivalents such as encoding

Re: [Qemu-devel] [PATCH 1/1 V2] target-ppc: Adding Functionality to rtas_ibm_get_system_parameter.

2014-06-17 Thread Greg Kurz
On Thu, 17 Apr 2014 10:33:44 -0500 Tomohiro B Berry wrote: > Hi, > > I was just wondering if anything else needed to be done to get this pushed > upstream? > > Thanks, > > Tomo > Hi Tomo, A good start would be to also Cc: qemu-...@nongnu.org : this is mandatory for all PPC specific patch

Re: [Qemu-devel] [PATCH v3 11/32] target-arm: add async excp target_el&mode function

2014-06-17 Thread Aggeler Fabian
On 12 Jun 2014, at 23:56, Greg Bellows mailto:greg.bell...@linaro.org>> wrote: On 10 June 2014 18:54, Fabian Aggeler mailto:aggel...@ethz.ch>> wrote: Adds a dedicated function for IRQ and FIQ exceptions to determine target_el and mode (Aarch32) according to tables in ARM ARMv8 and ARM ARM v7

Re: [Qemu-devel] [PATCH v3 14/32] target-arm: Respect SCR.FW, SCR.AW and SCTLR.NMFI

2014-06-17 Thread Aggeler Fabian
On 13 Jun 2014, at 00:43, Greg Bellows mailto:greg.bell...@linaro.org>> wrote: On 10 June 2014 18:54, Fabian Aggeler mailto:aggel...@ethz.ch>> wrote: bits when modifying CPSR. Signed-off-by: Fabian Aggeler mailto:aggel...@ethz.ch>> --- target-arm/helper.c | 42 +

Re: [Qemu-devel] [PATCH v8 00/20] virtio endian-ambivalent target

2014-06-17 Thread Stefan Hajnoczi
On Fri, Jun 13, 2014 at 01:18:00PM +0200, Greg Kurz wrote: > This version merges the changes requested during the v7 review, remarks from > ppc64 dump support review (yes, we talked about virtio there) and the work on > virtio subsections migration. Also two new patches have been added: > - patch #

Re: [Qemu-devel] [PATCH v8 00/20] virtio endian-ambivalent target

2014-06-17 Thread Alexander Graf
On 17.06.14 09:36, Stefan Hajnoczi wrote: On Fri, Jun 13, 2014 at 01:18:00PM +0200, Greg Kurz wrote: This version merges the changes requested during the v7 review, remarks from ppc64 dump support review (yes, we talked about virtio there) and the work on virtio subsections migration. Also two

Re: [Qemu-devel] [PATCH v3 15/32] target-arm: add NSACR register

2014-06-17 Thread Aggeler Fabian
On 13 Jun 2014, at 20:27, Greg Bellows mailto:greg.bell...@linaro.org>> wrote: On 10 June 2014 18:54, Fabian Aggeler mailto:aggel...@ethz.ch>> wrote: Implements NSACR register with corresponding read/write functions for ARMv7 and ARMv8. Signed-off-by: Sergey Fedorov mailto:s.fedo...@samsun

Re: [Qemu-devel] [PATCH 2/4] s390-virtio-bus: move common virtio properties to virtio s390 device class

2014-06-17 Thread Cornelia Huck
On Tue, 17 Jun 2014 09:07:41 +0200 Cornelia Huck wrote: > On Tue, 17 Jun 2014 10:44:11 +0800 > Ming Lei wrote: > > > On Tue, Jun 17, 2014 at 12:04 AM, Cornelia Huck > > wrote: > > > On Mon, 16 Jun 2014 23:40:50 +0800 > > > Ming Lei wrote: > > > > > >> The two common virtio features can be def

Re: [Qemu-devel] [PATCH 2/4] s390-virtio-bus: move common virtio properties to virtio s390 device class

2014-06-17 Thread Ming Lei
On Tue, Jun 17, 2014 at 3:07 PM, Cornelia Huck wrote: > On Tue, 17 Jun 2014 10:44:11 +0800 > Ming Lei wrote: > >> On Tue, Jun 17, 2014 at 12:04 AM, Cornelia Huck >> wrote: >> > On Mon, 16 Jun 2014 23:40:50 +0800 >> > Ming Lei wrote: >> > >> >> The two common virtio features can be defined per b

Re: [Qemu-devel] [PATCH v3 09/32] target-arm: extend Aarch32 async excp masking

2014-06-17 Thread Edgar E. Iglesias
On Wed, Jun 11, 2014 at 01:54:51AM +0200, Fabian Aggeler wrote: > This patch extends arm_excp_unmasked() according to ARM ARMv7 and > ARM ARMv8 (all EL running in Aarch32) and adds comments. Hi Fabian, I think this and the following patch generally look good. I haven't checked all the details yet

[Qemu-devel] [PATCH 1/5] tests: add OHCI qtest

2014-06-17 Thread arei.gonglei
From: Gonglei add ohci controller hotplug/unplug qtest Signed-off-by: Gonglei --- MAINTAINERS | 2 +- tests/Makefile| 3 +++ tests/usb-hcd-ohci-test.c | 41 + 3 files changed, 45 insertions(+), 1 deletion(-) create mode 10064

[Qemu-devel] [PATCH 4/5] usb-hcd-ehci-test: change ehci qtest more expansively

2014-06-17 Thread arei.gonglei
From: Gonglei For simply add a new subtest in usb-hcd-ehci-test.c, remove qtest_start and qtest_end to an absolute method from main function. Signed-off-by: Gonglei --- tests/usb-hcd-ehci-test.c | 38 +- 1 file changed, 25 insertions(+), 13 deletions(-) dif

Re: [Qemu-devel] [RFC v1 1/2] arm: Add the cortex-a9 CPU to the a9mpcore device

2014-06-17 Thread Paolo Bonzini
Il 17/06/2014 09:16, Stefan Hajnoczi ha scritto: > The bigger issue though is how do you do an N:1 mapping. The container > should only have 1 "midr" prop, but it should mirror to all contained > CPUs. Should we add multiplicity to the aliasing feature? If we'll need 1:N alias properties in othe

[Qemu-devel] [PATCH 2/5] tests: add UHCI qtest

2014-06-17 Thread arei.gonglei
From: Gonglei add uhci controller hotplug/unplug qtest Signed-off-by: Gonglei --- tests/Makefile| 3 +++ tests/usb-hcd-uhci-test.c | 42 ++ 2 files changed, 45 insertions(+) create mode 100644 tests/usb-hcd-uhci-test.c diff --git a/tests/M

[Qemu-devel] [PATCH 3/5] tests: add xHCI qtest

2014-06-17 Thread arei.gonglei
From: Gonglei add xhci controller hotplug/unplug qtest Signed-off-by: Gonglei --- tests/Makefile| 3 +++ tests/usb-hcd-xhci-test.c | 42 ++ 2 files changed, 45 insertions(+) create mode 100644 tests/usb-hcd-xhci-test.c diff --git a/tests/M

[Qemu-devel] [PATCH 5/5] usb-hcd-ehci-test: add ehci hotplug/unplug qtest

2014-06-17 Thread arei.gonglei
From: Gonglei Signed-off-by: Gonglei --- tests/usb-hcd-ehci-test.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tests/usb-hcd-ehci-test.c b/tests/usb-hcd-ehci-test.c index e1427f5..831e868 100644 --- a/tests/usb-hcd-ehci-test.c +++ b/tests/usb-hcd-ehci-test.c @@ -175,6 +

Re: [Qemu-devel] [PATCH v1 0/3] e1000: link auto-negotiation fixes

2014-06-17 Thread Paolo Bonzini
Il 17/06/2014 08:33, Alexander Graf ha scritto: >> Looks very reasonable and straight forward to me. >> >> Reviewed-by: Alexander Graf > > Would you pick it up and send a pull request for it? Is e1000 / networking unmaintained? Doh, it's obviously Stefan's area. Paolo

[Qemu-devel] [PATCH 0/5] tests: add usb host adapter qtest cases

2014-06-17 Thread arei.gonglei
From: Gonglei This patch series base on my request usb host adapter hotplug/unplug series: [PATCH v3 00/10] usb: usb host adapter hotplug http://lists.gnu.org/archive/html/qemu-devel/2014-06/msg00746.html and use qmp_exec_hmp_cmd funcion introduced by Amos Kong's series: [PATCH v4 2/4] qtest:

Re: [Qemu-devel] [Qemu-ppc] [PATCH] qemu/target-ppc: software breakpoint support

2014-06-17 Thread Madhavan Srinivasan
On Monday 16 June 2014 03:22 PM, bharat.bhus...@freescale.com wrote: > > >> -Original Message- >> From: qemu-ppc-bounces+bharat.bhushan=freescale@nongnu.org >> [mailto:qemu-ppc- >> bounces+bharat.bhushan=freescale@nongnu.org] On Behalf Of Madhavan >> Srinivasan >> Sent: Sunday, J

Re: [Qemu-devel] [PATCH 3/3 v2] ppc debug: Add debug stub support

2014-06-17 Thread Alexander Graf
On 17.06.14 09:08, Bharat Bhushan wrote: This patch adds software breakpoint, hardware breakpoint and hardware watchpoint support for ppc. If the debug interrupt is not handled then this is injected to guest. Signed-off-by: Bharat Bhushan --- v1->v2: - factored out e500 specific code based o

Re: [Qemu-devel] [PATCH 6/6] kvm_stat: Add powerpc support

2014-06-17 Thread Alexander Graf
On 17.06.14 09:54, Michael Ellerman wrote: Add support for powerpc platforms. We use uname -m, which allows us to detect ppc, ppc64 and ppc64le/el. Signed-off-by: Michael Ellerman Could you please add support for PR KVM tracepoints along the way? There we do know the exit reason for every s

Re: [Qemu-devel] Help needed testing on ppc

2014-06-17 Thread Alexander Graf
On 17.06.14 01:42, BALATON Zoltan wrote: On Thu, 12 Jun 2014, BALATON Zoltan wrote: On Wed, 7 May 2014, Alexander Graf wrote: On 05/07/2014 05:31 PM, Tom Musta wrote: On 5/6/2014 6:17 PM, BALATON Zoltan wrote: On Tue, 6 May 2014, Tom Musta wrote: (2) Your patch makes some store instructions

[Qemu-devel] [PATCH v3 00/16] target-arm: Parts of the AArch64 EL2/3 exception model

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Hi, This is a second round of AArch64 EL2/3 patches working on the exception model. Among other things adding HVC/SMC, interrupt routing to EL2/3 and Virtual IRQs/FIQs. The VIRQ/VFIQ support only adds the external signal delivery method. Patch 3 is a bug fix. Patch 14

Re: [Qemu-devel] [PATCH v2] mac99: Change memory layout to better match PowerMac3, 1

2014-06-17 Thread Alexander Graf
On 12.04.14 11:20, BALATON Zoltan wrote: Bring the memory map closer to a PowerMac3,1 model by removing unused areas and adding the VGA and network cards after the macio to let the latter be mapped from 0x8000 like on real hardware. (On real hardware the graphics and network cards are on sep

Re: [Qemu-devel] [PATCH 2/4] s390-virtio-bus: move common virtio properties to virtio s390 device class

2014-06-17 Thread Cornelia Huck
On Tue, 17 Jun 2014 15:44:28 +0800 Ming Lei wrote: > On Tue, Jun 17, 2014 at 3:07 PM, Cornelia Huck > wrote: > > On Tue, 17 Jun 2014 10:44:11 +0800 > > Ming Lei wrote: > > > >> On Tue, Jun 17, 2014 at 12:04 AM, Cornelia Huck > >> wrote: > >> > On Mon, 16 Jun 2014 23:40:50 +0800 > >> > Ming Le

[Qemu-devel] [PATCH v3 01/16] target-arm: A64: Break out aarch64_save/restore_sp

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Break out code to save/restore AArch64 SP into functions. Reviewed-by: Alex Bennée Signed-off-by: Edgar E. Iglesias --- target-arm/internals.h | 29 - target-arm/kvm64.c | 13 +++-- target-arm/op_helper.c | 6 +- 3 files c

[Qemu-devel] [PATCH v3 03/16] target-arm: A64: Respect SPSEL when taking exceptions

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Alex Bennée Signed-off-by: Edgar E. Iglesias --- target-arm/helper-a64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target-arm/helper-a64.c b/target-arm/helper-a64.c index 2b4ce6a..027434a 100644 --- a/target-arm/helper-a64.c

[Qemu-devel] [PATCH v3 02/16] target-arm: A64: Respect SPSEL in ERET SP restore

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Alex Bennée Signed-off-by: Edgar E. Iglesias --- target-arm/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c index 90a946a..25ad902 100644 --- a/target-arm/op_helper.c +++ b/ta

Re: [Qemu-devel] [PATCH v2 0/4] fixes for pci tree, v2

2014-06-17 Thread Hu Tao
On Mon, Jun 16, 2014 at 02:09:33PM +0300, Michael S. Tsirkin wrote: > On Mon, Jun 16, 2014 at 06:05:40PM +0800, Hu Tao wrote: > > Michael, > > > > This is fixes for your pci tree v2. please review. thanks! > > Patches 1,4 applied. Thanks! What about patches 2,3? If you need I can resend patch 2

[Qemu-devel] [PATCH v3 04/16] target-arm: Make far_el1 an array

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" No functional change. Prepares for future additions of the EL2 and 3 versions of this reg. Reviewed-by: Greg Bellows Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.c| 2 +- target-arm/cpu.h| 2 +- target-arm/helper-a64.c | 4 ++-- target-arm/h

[Qemu-devel] [PATCH v3 05/16] target-arm: Add ESR_EL2 and 3

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Greg Bellows Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 2 +- target-arm/helper.c | 8 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 6417507..d1d8c85 100644 --- a/target-ar

[Qemu-devel] [PATCH v3 07/16] target-arm: Add HCR_EL2

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 36 target-arm/helper.c | 26 ++ 2 files changed, 62 insertions(+) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 1dbed92..fd57fb5 100644 --

[Qemu-devel] [PATCH v3 06/16] target-arm: Add FAR_EL2 and 3

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Greg Bellows Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 2 +- target-arm/helper.c | 6 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index d1d8c85..1dbed92 100644 --- a/target-arm/

[Qemu-devel] [PATCH v3 08/16] target-arm: Add SCR_EL3

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 16 +++- target-arm/helper.c | 31 ++- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index fd57fb5..fa8dee0 100644 -

Re: [Qemu-devel] [PATCH v2 0/7] virtio-blk: Unify request handling of dataplane

2014-06-17 Thread Paolo Bonzini
Il 17/06/2014 08:32, Fam Zheng ha scritto: v2: Address Paolo's comments: * Schedule restart BH in the right AioContext. * Restore ->complete_request when stopping dataplane. This is based on top of my request converging series: [PATCH v4 0/9] virtio-blk: Converge VirtIOBlockRequest into Vi

[Qemu-devel] [PATCH v3 10/16] target-arm: Break out exception masking to a separate func

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Greg Bellows Signed-off-by: Edgar E. Iglesias --- cpu-exec.c | 5 ++--- target-arm/cpu.h | 16 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index 38e5f02..a579ffc 100644 --- a/cpu-exec.c +

[Qemu-devel] [PATCH v3 09/16] target-arm: A64: Refactor aarch64_cpu_do_interrupt

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Introduce new_el and new_mode in preparation for future patches that add support for taking exceptions to and from EL2 and 3. No functional change. Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 7 +++ target-arm/helper-a64.c | 24 +---

[Qemu-devel] [PATCH v3 11/16] target-arm: Don't take interrupts targeting lower ELs

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Alex Bennée Reviewed-by: Greg Bellows Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 9d21361..4f273ac 100644 --- a/target-arm/cpu.h +++ b/target-a

[Qemu-devel] [PATCH v3 12/16] target-arm: A64: Correct updates to FAR and ESR on exceptions

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Not all exception types update both FAR and ESR. Reviewed-by: Alex Bennée Reviewed-by: Greg Bellows Signed-off-by: Edgar E. Iglesias --- target-arm/helper-a64.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target-arm/helper-a64.c b/targe

[Qemu-devel] [PATCH v3 13/16] target-arm: A64: Emulate the HVC insn

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h | 1 + target-arm/helper-a64.c| 1 + target-arm/helper.c| 28 +++- target-arm/helper.h| 1 + target-arm/internals.h | 6 ++ target-arm/op_helper.c

[Qemu-devel] [PATCH v3 14/16] target-arm: A64: Emulate the SMC insn

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h | 1 + target-arm/helper-a64.c| 1 + target-arm/helper.c| 6 ++ target-arm/helper.h| 1 + target-arm/internals.h | 6 ++ target-arm/op_helper.c | 27 +++

[Qemu-devel] [PATCH v3 16/16] target-arm: Add support for VIRQ and VFIQ

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Acked-by: Greg Bellows Signed-off-by: Edgar E. Iglesias --- cpu-exec.c | 12 target-arm/cpu.c| 20 ++-- target-arm/cpu.h| 24 ++-- target-arm/helper-a64.c | 2 ++ target-arm/helper.c |

[Qemu-devel] [PATCH v3 15/16] target-arm: Add IRQ and FIQ routing to EL2 and 3

2014-06-17 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Reviewed-by: Greg Bellows Signed-off-by: Edgar E. Iglesias --- target-arm/cpu.h| 12 target-arm/helper.c | 13 + 2 files changed, 25 insertions(+) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 42e0ed3..bb123bd 100644 --- a/target

Re: [Qemu-devel] [PATCH] add input-send-event command

2014-06-17 Thread Gerd Hoffmann
On Mo, 2014-06-16 at 20:15 -0300, Marcelo Tosatti wrote: > Which allows specification of absolute/relative, > up/down and console parameters. Looks good overall, only minor nits. Will wait for acks from qmp guys before picking into input branch. > Suggested by Gerd Hoffman. Huh? Signed-off mi

Re: [Qemu-devel] Why I advise against using ivshmem

2014-06-17 Thread David Marchand
Hello all, On 06/17/2014 04:54 AM, Stefan Hajnoczi wrote: ivshmem has a performance disadvantage for guest-to-host communication. Since the shared memory is exposed as PCI BARs, the guest has to memcpy into the shared memory. vhost-user can access guest memory directly and avoid the copy insid

[Qemu-devel] [RFC] Libqos virtio API

2014-06-17 Thread Marc Marí
This is the draft for the libqos virtio API to create test cases for virtio devices. I'm looking forward to your comments. Signed-off-by: Marc Marí --- tests/libqos/virtio.h | 148 + 1 file changed, 148 insertions(+) create mode 100644 tests/libq

Re: [Qemu-devel] [PATCH v3 03/32] target-arm: increase arrays of registers R13 & R14

2014-06-17 Thread Edgar E. Iglesias
On Wed, Jun 11, 2014 at 01:54:45AM +0200, Fabian Aggeler wrote: > Increasing banked_r13 and banked_r14 to store LR_mon and SP_mon (bank > index 7). Reviewed-by: Edgar E. Iglesias > > Signed-off-by: Fabian Aggeler > --- > target-arm/cpu.h | 4 ++-- > target-arm/machine.c | 4 ++-- > 2 file

Re: [Qemu-devel] [PATCH v2] ppc: spapr-rtas - implement os-term rtas call

2014-06-17 Thread Alexander Graf
On 12.06.14 14:09, Nikunj A Dadhania wrote: PAPR compliant guest calls this in absence of kdump. After receiving this call qemu could trigger a guest dump. This guest dump can be used to analyse using crash tool. Signed-off-by: Nikunj A Dadhania --- v2: indentation fixes hw/ppc/spapr_rtas.

Re: [Qemu-devel] [PATCH 3/3 v2] ppc debug: Add debug stub support

2014-06-17 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Tuesday, June 17, 2014 1:46 PM > To: Bhushan Bharat-R65777; qemu-...@nongnu.org; qemu-devel@nongnu.org > Subject: Re: [PATCH 3/3 v2] ppc debug: Add debug stub support > > > On 17.06.14 09:08, Bharat Bhushan wrote

Re: [Qemu-devel] [PATCH V6 11/29] qapi event: convert STOP

2014-06-17 Thread Paolo Bonzini
Il 13/06/2014 22:29, Eric Blake ha scritto: > +# > +# Emitted when the virtual machine is stopped > +# > +# Since: 2.1 0.14.0 0.12.0, actually: $ git describe --contains b1a15e7eaafba8f26e2263b1a9b6e6d40e585e72 v0.12.0-rc0~187 Paolo

Re: [Qemu-devel] [RFC] qemu VGA endian swap low level drawing changes

2014-06-17 Thread Alexey Kardashevskiy
On 06/17/2014 03:36 PM, Paolo Bonzini wrote: > Il 17/06/2014 06:59, Benjamin Herrenschmidt ha scritto: >> Thanks. I've tried the other approach of adding new functions which >> means no overhead (hopefully) for the non-swap case and less invasive >> changes to vga_template.c. >> >> Patch below. Wha

Re: [Qemu-devel] [PATCH V6 16/29] qapi event: convert RTC_CHANGE

2014-06-17 Thread Paolo Bonzini
Il 13/06/2014 23:27, Eric Blake ha scritto: > +# @RTC_CHANGE > +# > +# Emitted when the guest changes the RTC time. > +# > +# @offset: offset between base RTC clock (as specified by -rtc base), and > +# new RTC clock value > +# > +# Since: 2.1 0.14.0 0.13.0 :)

Re: [Qemu-devel] [PATCH v3 07/32] target-arm: add non-secure Translation Block flag

2014-06-17 Thread Edgar E. Iglesias
On Wed, Jun 11, 2014 at 01:54:49AM +0200, Fabian Aggeler wrote: > From: Sergey Fedorov > > This patch is based on idea found in patch at > git://github.com/jowinter/qemu-trustzone.git > f3d955c6c0ed8c46bc0eb10b634201032a651dd2 by > Johannes Winter . > > This flag prevents QEMU from executing TCG

Re: [Qemu-devel] [PATCH V6 17/29] qapi event: convert WATCHDOG

2014-06-17 Thread Paolo Bonzini
Il 13/06/2014 23:47, Eric Blake ha scritto: +## > +# @WatchdogExpirationAction I think you will be better off to ensure that error.json is self-sufficient, perhaps by sticking any data type it references directly into common.json rather than qapi-schema.json, and having error.json include common

Re: [Qemu-devel] [RFC] qemu VGA endian swap low level drawing changes

2014-06-17 Thread Alexander Graf
On 17.06.14 11:18, Alexey Kardashevskiy wrote: On 06/17/2014 03:36 PM, Paolo Bonzini wrote: Il 17/06/2014 06:59, Benjamin Herrenschmidt ha scritto: Thanks. I've tried the other approach of adding new functions which means no overhead (hopefully) for the non-swap case and less invasive changes

Re: [Qemu-devel] [PATCH v2] ppc: spapr-rtas - implement os-term rtas call

2014-06-17 Thread Nikunj A Dadhania
Alexander Graf writes: > On 12.06.14 14:09, Nikunj A Dadhania wrote: >> PAPR compliant guest calls this in absence of kdump. After >> receiving this call qemu could trigger a guest dump. This guest dump >> can be used to analyse using crash tool. >> >> Signed-off-by: Nikunj A Dadhania >> --- >>

Re: [Qemu-devel] [PATCH 6/6] migration: catch unknown flags in ram_load

2014-06-17 Thread Peter Lieven
On 16.06.2014 19:31, Eric Blake wrote: On 06/15/2014 09:15 PM, Juan Quintela wrote: From: Peter Lieven if a saved vm has unknown flags in the memory data qemu currently simply ignores this flag and continues which yields in an unpredictable result. This patch catches all unknown flags and abo

Re: [Qemu-devel] [Qemu-ppc] Help needed testing on ppc

2014-06-17 Thread BALATON Zoltan
On Tue, 17 Jun 2014, Alexander Graf wrote: On 17.06.14 01:42, BALATON Zoltan wrote: On Thu, 12 Jun 2014, BALATON Zoltan wrote: On Wed, 7 May 2014, Alexander Graf wrote: On 05/07/2014 05:31 PM, Tom Musta wrote: On 5/6/2014 6:17 PM, BALATON Zoltan wrote: On Tue, 6 May 2014, Tom Musta wrote: (2

Re: [Qemu-devel] [PATCH v2] mac99: Change memory layout to better match PowerMac3, 1

2014-06-17 Thread BALATON Zoltan
On Tue, 17 Jun 2014, Alexander Graf wrote: On 12.04.14 11:20, BALATON Zoltan wrote: Bring the memory map closer to a PowerMac3,1 model by removing unused areas and adding the VGA and network cards after the macio to let the latter be mapped from 0x8000 like on real hardware. (On real hardwar

Re: [Qemu-devel] [Qemu-ppc] Help needed testing on ppc

2014-06-17 Thread Alexander Graf
On 17.06.14 11:34, BALATON Zoltan wrote: On Tue, 17 Jun 2014, Alexander Graf wrote: On 17.06.14 01:42, BALATON Zoltan wrote: On Thu, 12 Jun 2014, BALATON Zoltan wrote: On Wed, 7 May 2014, Alexander Graf wrote: On 05/07/2014 05:31 PM, Tom Musta wrote: On 5/6/2014 6:17 PM, BALATON Zoltan wrot

Re: [Qemu-devel] [PATCH v2] mac99: Change memory layout to better match PowerMac3, 1

2014-06-17 Thread Alexander Graf
On 17.06.14 11:36, BALATON Zoltan wrote: On Tue, 17 Jun 2014, Alexander Graf wrote: On 12.04.14 11:20, BALATON Zoltan wrote: Bring the memory map closer to a PowerMac3,1 model by removing unused areas and adding the VGA and network cards after the macio to let the latter be mapped from 0x8

Re: [Qemu-devel] Why I advise against using ivshmem

2014-06-17 Thread Paolo Bonzini
Il 17/06/2014 11:03, David Marchand ha scritto: Unless someone steps up and maintains ivshmem, I think it should be deprecated and dropped from QEMU. Then I can maintain ivshmem for QEMU. If this is ok, I will send a patch for MAINTAINERS file. Typically, adding yourself to maintainers is don

[Qemu-devel] [PATCH 2/6] kvm_stat: Fix the non-x86 exit reasons

2014-06-17 Thread Michael Ellerman
In kvm_stat we have a dictionary of exit reasons for s390. Firstly these are not s390 specific, they are the generic exit reasons. So rename the dictionary to reflect that. Secondly, the values are defined using hex, but in the kernel header they are decimal. That means values above 9 in kvm_stat

Re: [Qemu-devel] Hang on reboot in FreeBSD guest on Linux KVM host

2014-06-17 Thread Paolo Bonzini
Il 16/06/2014 18:47, John Nielsen ha scritto: On Jun 16, 2014, at 10:39 AM, Paolo Bonzini wrote: Il 16/06/2014 18:09, John Nielsen ha scritto: The only substantial difference on the hardware side is the CPU. The hosts where the problem occurs use "Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz", w

[Qemu-devel] [PATCH 3/6] kvm_stat: Rework platform detection

2014-06-17 Thread Michael Ellerman
The current platform detection is a little bit messy. We look for lines in /proc/cpuinfo starting with 'flags' OR 'vendor-id', and scan both for values we know will only occur in one or the other. We also keep scanning once we've found a value, which could be a feature, but isn't in this case. We'

[Qemu-devel] [PATCH 6/6] kvm_stat: Add powerpc support

2014-06-17 Thread Michael Ellerman
Add support for powerpc platforms. We use uname -m, which allows us to detect ppc, ppc64 and ppc64le/el. Signed-off-by: Michael Ellerman --- scripts/kvm/kvm_stat | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/scripts/kvm/kvm_stat b/scripts/kvm/kvm_stat in

[Qemu-devel] [PATCH 1/6] kvm_stat: Only consider online cpus

2014-06-17 Thread Michael Ellerman
In kvm_stat we grovel through /sys to find out how many cpus are in the system. However if a cpu is offline it will still be present in /sys, and the perf_event_open() will fail. Modify the logic to only return online cpus. We need to be careful on systems which don't support cpu hotplug, the onli

[Qemu-devel] [PATCH 5/6] kvm_stat: Abstract ioctl numbers

2014-06-17 Thread Michael Ellerman
Unfortunately ioctl numbers are platform specific, so abstract them out of the code so they can be overridden. As it happens x86 and s390 share the same values, so nothing needs to change yet. Signed-off-by: Michael Ellerman --- scripts/kvm/kvm_stat | 12 +--- 1 file changed, 9 insertion

[Qemu-devel] [PATCH 4/6] kvm_stat: Fix tracepoint filter definition for s390

2014-06-17 Thread Michael Ellerman
Although we have the exit_reasons defined for s390, as far as I can tell they never take effect. That is because there is no 'kvm_exit' tracepoint defined for s390. What is defined, for all platforms, is 'kvm_userspace_exit'. That tracepoint uses the generic_exit_reason, but the filter parameter i

Re: [Qemu-devel] [PATCH 3/3 v2] ppc debug: Add debug stub support

2014-06-17 Thread Alexander Graf
On 17.06.14 11:14, bharat.bhus...@freescale.com wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, June 17, 2014 1:46 PM To: Bhushan Bharat-R65777; qemu-...@nongnu.org; qemu-devel@nongnu.org Subject: Re: [PATCH 3/3 v2] ppc debug: Add debug stub support

Re: [Qemu-devel] [PATCH v2] ppc: spapr-rtas - implement os-term rtas call

2014-06-17 Thread Alexander Graf
On 17.06.14 11:30, Nikunj A Dadhania wrote: Alexander Graf writes: On 12.06.14 14:09, Nikunj A Dadhania wrote: PAPR compliant guest calls this in absence of kdump. After receiving this call qemu could trigger a guest dump. This guest dump can be used to analyse using crash tool. Signed-off-

Re: [Qemu-devel] [PATCH v2] ppc: spapr-rtas - implement os-term rtas call

2014-06-17 Thread Nikunj A Dadhania
Alexander Graf writes: > On 17.06.14 11:30, Nikunj A Dadhania wrote: >> Alexander Graf writes: >> >>> On 12.06.14 14:09, Nikunj A Dadhania wrote: PAPR compliant guest calls this in absence of kdump. After receiving this call qemu could trigger a guest dump. This guest dump can be

Re: [Qemu-devel] [RFC] qemu VGA endian swap low level drawing changes

2014-06-17 Thread Greg Kurz
On Tue, 17 Jun 2014 19:18:11 +1000 Alexey Kardashevskiy wrote: > On 06/17/2014 03:36 PM, Paolo Bonzini wrote: > > Il 17/06/2014 06:59, Benjamin Herrenschmidt ha scritto: > >> Thanks. I've tried the other approach of adding new functions which > >> means no overhead (hopefully) for the non-swap ca

Re: [Qemu-devel] [PATCH v2] ppc: spapr-rtas - implement os-term rtas call

2014-06-17 Thread Alexander Graf
On 17.06.14 11:59, Nikunj A Dadhania wrote: Alexander Graf writes: On 17.06.14 11:30, Nikunj A Dadhania wrote: Alexander Graf writes: On 12.06.14 14:09, Nikunj A Dadhania wrote: PAPR compliant guest calls this in absence of kdump. After receiving this call qemu could trigger a guest dump

Re: [Qemu-devel] [PATCH v2 3/4] memory-backend-file: improve error handling

2014-06-17 Thread Igor Mammedov
On Mon, 16 Jun 2014 18:05:43 +0800 Hu Tao wrote: > This patch fixes two problems of memory-backend-file: > > 1. If user adds a memory-backend-file object using object_add command, >specifying a non-existing directory for property mem-path, qemu >will core dump with message: > > /no

Re: [Qemu-devel] [PATCH v3 07/32] target-arm: add non-secure Translation Block flag

2014-06-17 Thread Sergey Fedorov
On 17.06.2014 13:15, Edgar E. Iglesias wrote: > Hi, I think the patch looks OK but I'm unsure if it brings any benefits > unless we add separate TLBs for S and NS. > > I noticed that TTBR0 gets banked in the series, but are changes to > SCR.NS flushing the TLBs? I might have missed that from the pa

Re: [Qemu-devel] [RFC] qemu VGA endian swap low level drawing changes

2014-06-17 Thread Benjamin Herrenschmidt
On Tue, 2014-06-17 at 12:00 +0200, Greg Kurz wrote: > There has been a discussion already about virtio endianness: relying on > a guest system wide setting such as LPCR_ILE has been strongly rejected > at the time... The consensus for virtio is "device endianness is the > endianness of the CPU that

Re: [Qemu-devel] [PATCH 2/3] spapr: Add "qemu, boot-menu" property to /chosen

2014-06-17 Thread Alexander Graf
On 10.06.14 09:56, Nikunj A Dadhania wrote: From: Avik Sil This is required to enable boot menu display during booting Signed-off-by: Avik Sil Signed-off-by: Nikunj A Dadhania Thanks, applied to ppc-next. Alex

Re: [Qemu-devel] [PATCH v2 3/4] memory-backend-file: improve error handling

2014-06-17 Thread Hu Tao
On Tue, Jun 17, 2014 at 12:03:13PM +0200, Igor Mammedov wrote: > On Mon, 16 Jun 2014 18:05:43 +0800 > Hu Tao wrote: > > > This patch fixes two problems of memory-backend-file: > > > > 1. If user adds a memory-backend-file object using object_add command, > >specifying a non-existing director

Re: [Qemu-devel] [RFC v1 1/2] arm: Add the cortex-a9 CPU to the a9mpcore device

2014-06-17 Thread Peter Crosthwaite
On Tue, Jun 17, 2014 at 6:05 PM, Paolo Bonzini wrote: > Il 17/06/2014 09:16, Stefan Hajnoczi ha scritto: > >> > The bigger issue though is how do you do an N:1 mapping. The container >> > should only have 1 "midr" prop, but it should mirror to all contained >> > CPUs. Should we add multiplicity to

Re: [Qemu-devel] [PATCH 2/4] s390-virtio-bus: move common virtio properties to virtio s390 device class

2014-06-17 Thread Ming Lei
On Tue, Jun 17, 2014 at 4:46 PM, Cornelia Huck wrote: >> >> Looks like s390 virtio-blk never enables the two common features, is >> there any reason the two features can't be supported by s390? > > Indirect descriptors are fine. event_idx will not work IIUC because we > always need to do a sync be

[Qemu-devel] [PATCH for 2.1] numa: handle mmaped memory allocation failure correctly

2014-06-17 Thread Igor Mammedov
when memory_region_init_ram_from_file() fails memory_region_size() will still return size that was provided at region init time. Instead use errp to properly detect error condition. Signed-off-by: Igor Mammedov --- patch depends on current PCI tree that stages last NUMA series numa.c |2 +-

Re: [Qemu-devel] [RFC] qemu VGA endian swap low level drawing changes

2014-06-17 Thread Peter Maydell
On 17 June 2014 11:09, Benjamin Herrenschmidt wrote: > On Tue, 2014-06-17 at 12:00 +0200, Greg Kurz wrote: >> There has been a discussion already about virtio endianness: relying on >> a guest system wide setting such as LPCR_ILE has been strongly rejected >> at the time... The consensus for virti

Re: [Qemu-devel] [PATCH v2] ppc: spapr-rtas - implement os-term rtas call

2014-06-17 Thread Nikunj A Dadhania
Alexander Graf writes: > On 17.06.14 11:59, Nikunj A Dadhania wrote: >> Alexander Graf writes: >>> On 17.06.14 11:30, Nikunj A Dadhania wrote: Alexander Graf writes: >> +spapr_rtas_register("ibm,os-term", rtas_ibm_os_term); >> +spapr_rtas_register("ibm,extended-os-term", r

Re: [Qemu-devel] [PATCH v2] mac99: Change memory layout to better match PowerMac3, 1

2014-06-17 Thread BALATON Zoltan
On Tue, 17 Jun 2014, Alexander Graf wrote: On 17.06.14 11:36, BALATON Zoltan wrote: On Tue, 17 Jun 2014, Alexander Graf wrote: On 12.04.14 11:20, BALATON Zoltan wrote: Bring the memory map closer to a PowerMac3,1 model by removing unused areas and adding the VGA and network cards after the mac

Re: [Qemu-devel] [PATCH 2/4] s390-virtio-bus: move common virtio properties to virtio s390 device class

2014-06-17 Thread Cornelia Huck
On Tue, 17 Jun 2014 18:15:39 +0800 Ming Lei wrote: > On Tue, Jun 17, 2014 at 4:46 PM, Cornelia Huck > wrote: > >> > >> Looks like s390 virtio-blk never enables the two common features, is > >> there any reason the two features can't be supported by s390? > > > > Indirect descriptors are fine. e

Re: [Qemu-devel] Divide error in kvm_unlock_kick()

2014-06-17 Thread Chris Webb
I see kernel 3.15 is now out, so I retested with 3.15 guest and host. I'm still getting exactly the same guest kernel panic: a divide error in kvm_unlock_kick with -cpu host, but not with -cpu qemu64: divide error: [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 781 Comm: mkdir Not tainted 3

Re: [Qemu-devel] [PATCH 2/4] s390-virtio-bus: move common virtio properties to virtio s390 device class

2014-06-17 Thread Ming Lei
On Tue, Jun 17, 2014 at 6:25 PM, Cornelia Huck wrote: > On Tue, 17 Jun 2014 18:15:39 +0800 > Ming Lei wrote: > >> On Tue, Jun 17, 2014 at 4:46 PM, Cornelia Huck >> wrote: >> >> >> >> Looks like s390 virtio-blk never enables the two common features, is >> >> there any reason the two features can

Re: [Qemu-devel] [PATCH 3/3 v2] ppc debug: Add debug stub support

2014-06-17 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Alexander Graf [mailto:ag...@suse.de] > Sent: Tuesday, June 17, 2014 3:20 PM > To: Bhushan Bharat-R65777; qemu-...@nongnu.org; qemu-devel@nongnu.org > Subject: Re: [PATCH 3/3 v2] ppc debug: Add debug stub support > > > On 17.06.14 11:14, bharat.bhus...@frees

Re: [Qemu-devel] [PATCH 3/3 v2] ppc debug: Add debug stub support

2014-06-17 Thread Alexander Graf
On 17.06.14 12:40, bharat.bhus...@freescale.com wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Tuesday, June 17, 2014 3:20 PM To: Bhushan Bharat-R65777; qemu-...@nongnu.org; qemu-devel@nongnu.org Subject: Re: [PATCH 3/3 v2] ppc debug: Add debug stub support

Re: [Qemu-devel] [RFC] qemu VGA endian swap low level drawing changes

2014-06-17 Thread Gerd Hoffmann
Hi, > The core issue stems from the fact that graphic stacks including X and a > number of other components along the way are terminally broken if the > framebuffer endianness doesn't match the guest endianness. We can > discuss the historical reasons for that fact if you wish and we can > discu

Re: [Qemu-devel] [PATCH 2/4] s390-virtio-bus: move common virtio properties to virtio s390 device class

2014-06-17 Thread Ming Lei
On Tue, Jun 17, 2014 at 6:40 PM, Ming Lei wrote: > On Tue, Jun 17, 2014 at 6:25 PM, Cornelia Huck > wrote: >> On Tue, 17 Jun 2014 18:15:39 +0800 >> Ming Lei wrote: >> >>> On Tue, Jun 17, 2014 at 4:46 PM, Cornelia Huck >>> wrote: >>> >> >>> >> Looks like s390 virtio-blk never enables the two c

  1   2   3   4   5   6   >