Re: [Qemu-devel] Using virtio for inter-VM communication

2014-06-17 Thread Jan Kiszka
On 2014-06-17 07:24, Paolo Bonzini wrote: Il 15/06/2014 08:20, Jan Kiszka ha scritto: I think implementing Xen hypercalls in jailhouse for grant table and event channels would actually make a lot of sense. The Xen implementation is 2.5kLOC and I think it should be possible to compact it

Re: [Qemu-devel] [PATCH v3 04/32] target-arm: add arm_is_secure() function

2014-06-17 Thread Edgar E. Iglesias
On Wed, Jun 11, 2014 at 01:54:46AM +0200, Fabian Aggeler wrote: arm_is_secure() function allows to determine CPU security state if the CPU implements Security Extensions/EL3. arm_is_secure_below_el3() returns true if CPU is in secure state below EL3. Signed-off-by: Sergey Fedorov

Re: [Qemu-devel] [PATCH v3 05/32] target-arm: reject switching to monitor mode

2014-06-17 Thread Edgar E. Iglesias
On Wed, Jun 11, 2014 at 01:54:47AM +0200, Fabian Aggeler wrote: From: Sergey Fedorov s.fedo...@samsung.com ...from non-secure state. Reviewed-by: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Sergey Fedorov s.fedo...@samsung.com Signed-off-by: Fabian Aggeler aggel...@ethz.ch

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

2014-06-17 Thread Benjamin Herrenschmidt
On Tue, 2014-06-17 at 07:36 +0200, 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

Re: [Qemu-devel] [PATCH] block/iscsi: use 16 byte CDBs only when necessary

2014-06-17 Thread Peter Lieven
On 05.06.2014 11:12, Michael Tokarev wrote: 04.06.2014 18:00, ronnie sahlberg wrote: That would mean you get to use the 10 version of the cdb even for very large devices (as long as the IO is for blocks at the beginning of the device) and thus provide partial avoidance of this issue for those

Re: [Qemu-devel] [PATCH v3 28/32] target-arm: make DFSR banked

2014-06-17 Thread Edgar E. Iglesias
On Fri, Jun 13, 2014 at 05:06:15PM -0500, Greg Bellows wrote: I just wanted to point out that the change from array-notation to hard-code numbers in the names undoes Edgar's EL2/EL3 changes. I prefer this way over the array notation. Hi, This was discussed briefly here

[Qemu-devel] [PATCH v2 3/7] virtio-blk: Make request completion function virtual

2014-06-17 Thread Fam Zheng
virtio_blk_req_complete will call VirtIOBlock.complete_request() to push data and notify guest. No functional change. Later, this will allow dataplane to provide it's own (vring_) version. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/virtio-blk.c | 9 -

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

2014-06-17 Thread Fam Zheng
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 VirtIOBlockReq Most of the request handlings

[Qemu-devel] [PATCH v2 1/7] block: make bdrv_query_stats() static

2014-06-17 Thread Fam Zheng
From: Stefan Hajnoczi stefa...@redhat.com This function is only called from block/qapi.c. There is no need to keep it public. Signed-off-by: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Fam Zheng f...@redhat.com --- block/qapi.c | 2 +- include/block/qapi.h | 1 - 2 files

[Qemu-devel] [PATCH v2 4/7] virtio-blk: Export request handling functions to dataplane

2014-06-17 Thread Fam Zheng
So that dataplane can use virtio_blk_handle_request and virtio_submit_multiwrite. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/virtio-blk.c | 10 ++ include/hw/virtio/virtio-blk.h | 9 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git

[Qemu-devel] [PATCH v2 6/7] virtio-blk: Unify {non-, }dataplane's request handlings

2014-06-17 Thread Fam Zheng
This drops request handling code from dataplane, and uses code from hw/block/virtio-blk.c. It starts to use multiwrite as non-dataplane does. Dataplane sets VirtIOBlock.complete_request to vring version, and calls into non-dataplane's process handling. In complete_request_early, qiov.size is

[Qemu-devel] [PATCH v2 7/7] virtio-blk: Rename complete_request_early to complete_request_vring

2014-06-17 Thread Fam Zheng
The old name is misleading in its new usage, so rename it. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/dataplane/virtio-blk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c index b6afa55..09bd2c7

[Qemu-devel] [PATCH v2 2/7] block: acquire AioContext in qmp_query_blockstats()

2014-06-17 Thread Fam Zheng
From: Stefan Hajnoczi stefa...@redhat.com Make query-blockstats safe for dataplane by acquiring the BlockDriverState's AioContext. This ensures that the dataplane IOThread and the main loop's monitor code do not race. Note the assumption that acquiring the drive's BDS AioContext also protects

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

2014-06-17 Thread Alexander Graf
Am 17.06.2014 um 06:31 schrieb Paolo Bonzini pbonz...@redhat.com: Il 17/06/2014 00:35, Alexander Graf ha scritto: On 16.06.14 19:29, Gabriel L. Somlo wrote: This series contains a few fixes and improvements in the emulation of link auto-negotiation: - use auto-negotiation when the

[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 f...@redhat.com --- hw/block/virtio-blk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

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 ming@canonical.com wrote: On Tue, Jun 17, 2014 at 12:04 AM, Cornelia Huck cornelia.h...@de.ibm.com wrote: On Mon, 16 Jun 2014 23:40:50 +0800 Ming Lei ming@canonical.com wrote: The two common virtio features can be defined per bus, so

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 edgar.igles...@gmail.com 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

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 greg.bell...@linaro.orgmailto:greg.bell...@linaro.org wrote: On 10 June 2014 18:55, Fabian Aggeler aggel...@ethz.chmailto:aggel...@ethz.ch wrote: When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) PAR has a secure and a non-secure

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 edgar.igles...@gmail.com 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

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 peter.mayd...@linaro.org wrote: On 10 June 2014 02:32, Alistair Francis alistair.fran...@xilinx.com wrote: This patch adds the Cortex-A9 ARM CPU to the A9MPCore. I think

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 greg.bell...@linaro.orgmailto:greg.bell...@linaro.org wrote: On 10 June 2014 18:55, Fabian Aggeler aggel...@ethz.chmailto:aggel...@ethz.ch wrote: When EL3 is running in Aarch32 (or ARMv7 with Security Extensions) VBAR has a secure and a non-secure

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 greg.bell...@linaro.orgmailto: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

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 tbbe...@us.ibm.com 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

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

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

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 greg.bell...@linaro.orgmailto:greg.bell...@linaro.org wrote: On 10 June 2014 18:54, Fabian Aggeler aggel...@ethz.chmailto:aggel...@ethz.ch wrote: bits when modifying CPSR. Signed-off-by: Fabian Aggeler aggel...@ethz.chmailto:aggel...@ethz.ch ---

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 #1

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 greg.bell...@linaro.orgmailto:greg.bell...@linaro.org wrote: On 10 June 2014 18:54, Fabian Aggeler aggel...@ethz.chmailto:aggel...@ethz.ch wrote: Implements NSACR register with corresponding read/write functions for ARMv7 and ARMv8. Signed-off-by:

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 cornelia.h...@de.ibm.com wrote: On Tue, 17 Jun 2014 10:44:11 +0800 Ming Lei ming@canonical.com wrote: On Tue, Jun 17, 2014 at 12:04 AM, Cornelia Huck cornelia.h...@de.ibm.com wrote: On Mon, 16 Jun 2014 23:40:50 +0800 Ming Lei

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 cornelia.h...@de.ibm.com wrote: On Tue, 17 Jun 2014 10:44:11 +0800 Ming Lei ming@canonical.com wrote: On Tue, Jun 17, 2014 at 12:04 AM, Cornelia Huck cornelia.h...@de.ibm.com wrote: On Mon, 16 Jun 2014 23:40:50 +0800 Ming Lei

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 arei.gong...@huawei.com add ohci controller hotplug/unplug qtest Signed-off-by: Gonglei arei.gong...@huawei.com --- MAINTAINERS | 2 +- tests/Makefile| 3 +++ tests/usb-hcd-ohci-test.c | 41 + 3 files changed, 45

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

2014-06-17 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com 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 arei.gong...@huawei.com --- tests/usb-hcd-ehci-test.c | 38 +- 1 file

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 other

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

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

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

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

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

2014-06-17 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- 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 ---

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 ag...@suse.de 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 arei.gong...@huawei.com 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:

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, June 15, 2014

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 bharat.bhus...@freescale.com --- v1-v2: - factored

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 m...@ellerman.id.au Could you please add support for PR KVM tracepoints along the way? There we do know the

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 edgar.igles...@xilinx.com 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

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

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 ming@canonical.com wrote: On Tue, Jun 17, 2014 at 3:07 PM, Cornelia Huck cornelia.h...@de.ibm.com wrote: On Tue, 17 Jun 2014 10:44:11 +0800 Ming Lei ming@canonical.com wrote: On Tue, Jun 17, 2014 at 12:04 AM, Cornelia Huck

[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 edgar.igles...@xilinx.com Break out code to save/restore AArch64 SP into functions. Reviewed-by: Alex Bennée alex.ben...@linaro.org Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/internals.h | 29 -

[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 edgar.igles...@gmail.com Reviewed-by: Alex Bennée alex.ben...@linaro.org Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/helper-a64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git 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 edgar.igles...@xilinx.com Reviewed-by: Alex Bennée alex.ben...@linaro.org Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/op_helper.c

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 based on

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

2014-06-17 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com No functional change. Prepares for future additions of the EL2 and 3 versions of this reg. Reviewed-by: Greg Bellows greg.bell...@linaro.org Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.c| 2 +-

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

2014-06-17 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Greg Bellows greg.bell...@linaro.org Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 2 +- target-arm/helper.c | 8 2 files changed, 9 insertions(+), 1 deletion(-) diff --git

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

2014-06-17 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 36 target-arm/helper.c | 26 ++ 2 files changed, 62 insertions(+) diff --git a/target-arm/cpu.h

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

2014-06-17 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Reviewed-by: Greg Bellows greg.bell...@linaro.org Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 2 +- target-arm/helper.c | 6 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git

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

2014-06-17 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 16 +++- target-arm/helper.c | 31 ++- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/target-arm/cpu.h

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

[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 edgar.igles...@xilinx.com Reviewed-by: Greg Bellows greg.bell...@linaro.org Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- cpu-exec.c | 5 ++--- target-arm/cpu.h | 16 2 files changed, 18 insertions(+), 3 deletions(-) diff --git

[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 edgar.igles...@xilinx.com 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 edgar.igles...@xilinx.com --- target-arm/cpu.h| 7

[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 edgar.igles...@xilinx.com Reviewed-by: Alex Bennée alex.ben...@linaro.org Reviewed-by: Greg Bellows greg.bell...@linaro.org Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h | 7 +++ 1 file changed, 7 insertions(+) diff --git

[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 edgar.igles...@xilinx.com Not all exception types update both FAR and ESR. Reviewed-by: Alex Bennée alex.ben...@linaro.org Reviewed-by: Greg Bellows greg.bell...@linaro.org Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/helper-a64.c | 6 ++

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

2014-06-17 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h | 1 + target-arm/helper-a64.c| 1 + target-arm/helper.c| 28 +++- target-arm/helper.h| 1 +

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

2014-06-17 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- 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 ++

[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 edgar.igles...@xilinx.com Acked-by: Greg Bellows greg.bell...@linaro.org Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- cpu-exec.c | 12 target-arm/cpu.c| 20 ++-- target-arm/cpu.h| 24

[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 edgar.igles...@xilinx.com Reviewed-by: Greg Bellows greg.bell...@linaro.org Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 12 target-arm/helper.c | 13 + 2 files changed, 25 insertions(+) diff --git

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

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

[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í marc.mari.barc...@gmail.com --- tests/libqos/virtio.h | 148 + 1 file changed, 148 insertions(+)

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 edgar.igles...@xilinx.com Signed-off-by: Fabian Aggeler aggel...@ethz.ch --- target-arm/cpu.h | 4 ++--

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 nik...@linux.vnet.ibm.com --- v2: indentation

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. What do you

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 s.fedo...@samsung.com This patch is based on idea found in patch at git://github.com/jowinter/qemu-trustzone.git f3d955c6c0ed8c46bc0eb10b634201032a651dd2 by Johannes Winter johannes.win...@iaik.tugraz.at.

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

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 ag...@suse.de 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 p...@kamp.de 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

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:

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

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

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

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

[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 pbonz...@redhat.com 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

[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.

[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 m...@ellerman.id.au --- scripts/kvm/kvm_stat | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/scripts/kvm/kvm_stat

[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

[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 m...@ellerman.id.au --- scripts/kvm/kvm_stat | 12 +--- 1 file

[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

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

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 ag...@suse.de 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

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

2014-06-17 Thread Nikunj A Dadhania
Alexander Graf ag...@suse.de writes: On 17.06.14 11:30, Nikunj A Dadhania wrote: Alexander Graf ag...@suse.de 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

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 a...@ozlabs.ru 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

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 ag...@suse.de writes: On 17.06.14 11:30, Nikunj A Dadhania wrote: Alexander Graf ag...@suse.de 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

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 hu...@cn.fujitsu.com 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

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

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 avik...@linux.vnet.ibm.com This is required to enable boot menu display during booting Signed-off-by: Avik Sil avik...@linux.vnet.ibm.com Signed-off-by: Nikunj A Dadhania nik...@linux.vnet.ibm.com Thanks, applied to ppc-next. Alex

  1   2   3   4   5   >