Re: [Qemu-devel] [PATCH v1 4/6] qom: Move cpu.o to obj-y.

2014-09-01 Thread Paolo Bonzini
Il 02/09/2014 00:56, Peter Crosthwaite ha scritto: > On Tue, Sep 2, 2014 at 3:43 AM, Peter Maydell > wrote: >> On 26 August 2014 01:58, Peter Crosthwaite >> wrote: >>> It's not really a common object >> >> In what sense isn't it a common object? It's only >> compiled once, rather than per-targe

[Qemu-devel] [PATCH] gtk.c: Fix memory leak in gd_set_keycode_type()

2014-09-01 Thread Chen Fan
this memory leak is introduced by the original commit 3158a3482b0093e41f2b2596fba50774ea31ae08 valgrind out showing: ==14553== 21,459 (72 direct, 21,387 indirect) bytes in 1 blocks are definitely lost in loss record 8,055 of 8,082 ==14553==at 0x4A06BC3: calloc (vg_replace_malloc.c:618)

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Amit Shah
On (Mon) 01 Sep 2014 [20:52:46], Zhang Haoyu wrote: > >>> Hi, all > >>> > >>> I start a VM with virtio-serial (default ports number: 31), and found > >>> that virtio-blk performance degradation happened, about 25%, this problem > >>> can be reproduced 100%. > >>> without virtio-serial: > >>> 4k-

Re: [Qemu-devel] [PATCH 1/5] target-ppc: Extend rtas-blob

2014-09-01 Thread Alexey Kardashevskiy
On 09/02/2014 03:56 PM, Aravinda Prasad wrote: > > > On Tuesday 02 September 2014 11:19 AM, Alexey Kardashevskiy wrote: >> On 09/02/2014 03:25 PM, Aravinda Prasad wrote: >>> >>> >>> On Tuesday 02 September 2014 09:39 AM, Alexey Kardashevskiy wrote: On 09/01/2014 09:23 PM, Aravinda Prasad wro

[Qemu-devel] [Bug 925405] Re: VNC server does not work with Mac Screen Sharing

2014-09-01 Thread Hendrik
affects me as well. versions: qemu-system-common 2.0.0+dfsg-2ubuntu1.2 (current as of 14.04) Mac OS X: 10.9.4, xnu-2422.110.17, Screen Sharing 1.4 (481.1) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.

Re: [Qemu-devel] [PATCH 1/5] target-ppc: Extend rtas-blob

2014-09-01 Thread Aravinda Prasad
On Tuesday 02 September 2014 11:19 AM, Alexey Kardashevskiy wrote: > On 09/02/2014 03:25 PM, Aravinda Prasad wrote: >> >> >> On Tuesday 02 September 2014 09:39 AM, Alexey Kardashevskiy wrote: >>> On 09/01/2014 09:23 PM, Aravinda Prasad wrote: On Monday 01 September 2014 01:16 PM, A

Re: [Qemu-devel] [PATCH 1/5] target-ppc: Extend rtas-blob

2014-09-01 Thread Alexey Kardashevskiy
On 09/02/2014 03:25 PM, Aravinda Prasad wrote: > > > On Tuesday 02 September 2014 09:39 AM, Alexey Kardashevskiy wrote: >> On 09/01/2014 09:23 PM, Aravinda Prasad wrote: >>> >>> >>> On Monday 01 September 2014 01:16 PM, Alexey Kardashevskiy wrote: On 08/25/2014 11:45 PM, Aravinda Prasad wrot

Re: [Qemu-devel] [PATCH 1/5] target-ppc: Extend rtas-blob

2014-09-01 Thread Aravinda Prasad
On Tuesday 02 September 2014 09:39 AM, Alexey Kardashevskiy wrote: > On 09/01/2014 09:23 PM, Aravinda Prasad wrote: >> >> >> On Monday 01 September 2014 01:16 PM, Alexey Kardashevskiy wrote: >>> On 08/25/2014 11:45 PM, Aravinda Prasad wrote: Extend rtas-blob to accommodate error log. Error l

Re: [Qemu-devel] [PATCH 1/5] target-ppc: Extend rtas-blob

2014-09-01 Thread Alexey Kardashevskiy
On 09/01/2014 09:23 PM, Aravinda Prasad wrote: > > > On Monday 01 September 2014 01:16 PM, Alexey Kardashevskiy wrote: >> On 08/25/2014 11:45 PM, Aravinda Prasad wrote: >>> Extend rtas-blob to accommodate error log. Error log >>> structure is saved in rtas space upon a machine check >>> exception

[Qemu-devel] [PATCH v2 2/2] block: Always compile virtio-blk dataplane

2014-09-01 Thread Fam Zheng
Dataplane doesn't depend on linux-aio any more, so we don't need the compiling condition now. Configure options are kept but just print a message. Signed-off-by: Fam Zheng --- configure | 21 ++--- hw/block/Makefile.objs | 2 +- hw/block/virtio-blk.

[Qemu-devel] [PATCH v2 1/2] virtio: Import virtio_vring.h

2014-09-01 Thread Fam Zheng
This header has no further dependencies. It only has some stable data types and primitive functions, so we can copy it to include/hw/virtio in order to allow vring code (and its user virtio-blk dataplane) to be built unconditionally, even for cross compiling. Suggested-by: Paolo Bonzini Signed-of

[Qemu-devel] [PATCH v2 0/2] block: Always compile virtio-blk dataplane

2014-09-01 Thread Fam Zheng
v2: Import virtio_vring.h. Fam Zheng (2): virtio: Import virtio_vring.h block: Always compile virtio-blk dataplane configure | 21 + hw/block/Makefile.objs | 2 +- hw/block/virtio-blk.c | 20 + hw/net/vhost_net.c

Re: [Qemu-devel] [PATCH 2/2] qemu-img: fix rebase src_cache option documentation

2014-09-01 Thread Fam Zheng
On Mon, 09/01 16:11, Stefan Hajnoczi wrote: > The src_cache option (-T) specifies the cache mode for backing files. > It applies both the image's old backing file as well as the new backing > file: > > ret = bdrv_open(&bs_old_backing, backing_name, NULL, NULL, src_flags, > old_

Re: [Qemu-devel] [PATCH 1/2] qemu-img: clarify src_cache option documentation

2014-09-01 Thread Fam Zheng
On Mon, 09/01 16:11, Stefan Hajnoczi wrote: > The source cache option takes the same values as the cache option. The > documentation reads a little strange because it starts with "In contrast > the src_cache option ...". The fact that this is comparing with the > previous documented option (the '

Re: [Qemu-devel] [PATCH v1 2/5] Netduino_GPIO: Add the Netduino Plus 2 GPIO controller

2014-09-01 Thread Alistair Francis
On Tue, Sep 2, 2014 at 2:29 AM, Peter Maydell wrote: > On 24 August 2014 01:13, Alistair Francis wrote: >> This patch adds the Netduino Plus 2 GPIO controller to QEMU. >> This allows reading and writing to the Netduino GPIO pins. > > Are you sure this isn't actually the GPIO module in the STM32F4

Re: [Qemu-devel] [PATCH v3 2/3] qdev: add cleanup logic in device_set_realized() to avoid resource leak

2014-09-01 Thread Gonglei (Arei)
> From: peter.crosthwa...@petalogix.com > [mailto:peter.crosthwa...@petalogix.com] On Behalf Of Peter Crosthwaite > Sent: Tuesday, September 02, 2014 6:51 AM > >> On Mon, Sep 1, 2014 at 3:50 PM, wrote: > >> > From: Gonglei > >> > > >> > At present, this function doesn't have partial cleanup impl

Re: [Qemu-devel] [PATCH v1 1/5] Netduino_USART: Add the Netduino Plus 2 USART Controller

2014-09-01 Thread Alistair Francis
On Tue, Sep 2, 2014 at 2:30 AM, Peter Maydell wrote: > On 24 August 2014 03:09, Peter Crosthwaite > wrote: >> If you make your registers an array, you can index the with the offset >> and remove the repeated s->foo return logic. You can also use a single >> memset to do all the 0 resets. > > Hmm

Re: [Qemu-devel] [PATCH v1 5/5] Netduino: Add the Netduino Plus 2 Machine Model

2014-09-01 Thread Alistair Francis
On Mon, Sep 1, 2014 at 10:44 PM, Peter Maydell wrote: > On 1 September 2014 13:34, Alistair Francis wrote: >> On Sun, Aug 24, 2014 at 11:20 PM, Peter Crosthwaite >> wrote: >>> Most of this function is the same as armv7m_init(). This seems the be >>> the main difference - the SRAM and FLASH setup

Re: [Qemu-devel] [PATCH v1 0/5] Netduino Plus 2 Machine Model

2014-09-01 Thread Alistair Francis
On Tue, Sep 2, 2014 at 2:39 AM, Peter Maydell wrote: > On 24 August 2014 01:13, Alistair Francis wrote: >> The Netduino Plus 2 has a Cortex-M4 in it, while this model uses >> a Cortex-M3 as that is supported by QEMU. This means that the code >> that runs on the Netduino Plus 2 is recompiled for a

Re: [Qemu-devel] [PATCH v2] rules.mak: Fix DSO build by pulling in archive symbols

2014-09-01 Thread Fam Zheng
On Mon, 09/01 13:07, Peter Maydell wrote: > On 1 September 2014 13:04, Paolo Bonzini wrote: > > Il 01/09/2014 13:46, Peter Maydell ha scritto: > >> So we could fix this by not compiling empty files... > > > > Easy for int128, even easier for getauxval (it's not a fastpath, so we > > can move the "

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Maydell
On 2 September 2014 00:22, Peter Crosthwaite wrote: > On Tue, Sep 2, 2014 at 9:12 AM, Peter Maydell > wrote: >> Actually, I'm confused now where the reset ordering issue comes >> in, because (ignoring realize, which will call reset) as far as I >> could make out the only place that the ARM CPU r

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Crosthwaite
On Tue, Sep 2, 2014 at 9:12 AM, Peter Maydell wrote: > On 2 September 2014 00:06, Peter Crosthwaite > wrote: >> On Tue, Sep 2, 2014 at 8:56 AM, Peter Maydell >> wrote: >>> Surely there's already a reset order dependency, because >>> both the arm-boot reset hook and CPU reset proper want >>> to

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Maydell
On 2 September 2014 00:06, Peter Crosthwaite wrote: > On Tue, Sep 2, 2014 at 8:56 AM, Peter Maydell > wrote: >> Surely there's already a reset order dependency, because >> both the arm-boot reset hook and CPU reset proper want >> to initialise the PC ? > Yes. I had a PC specific solution to thi

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Crosthwaite
On Tue, Sep 2, 2014 at 8:56 AM, Peter Maydell wrote: > On 1 September 2014 23:41, Peter Crosthwaite > wrote: >> On Tue, Sep 2, 2014 at 3:15 AM, Peter Maydell >> wrote: >>> On 19 August 2014 01:54, Peter Crosthwaite >>> wrote: Linux should boot in EL2 or EL1. If in EL3, jump down before h

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Maydell
On 1 September 2014 23:41, Peter Crosthwaite wrote: > On Tue, Sep 2, 2014 at 3:15 AM, Peter Maydell > wrote: >> On 19 August 2014 01:54, Peter Crosthwaite >> wrote: >>> Linux should boot in EL2 or EL1. If in EL3, jump down before handing >>> off to Linux. >>> >>> Signed-off-by: Peter Crosthwai

Re: [Qemu-devel] [PATCH v1 4/6] qom: Move cpu.o to obj-y.

2014-09-01 Thread Peter Crosthwaite
On Tue, Sep 2, 2014 at 3:43 AM, Peter Maydell wrote: > On 26 August 2014 01:58, Peter Crosthwaite > wrote: >> It's not really a common object > > In what sense isn't it a common object? It's only > compiled once, rather than per-target. We should > avoid moving object files from compiled-once >

Re: [Qemu-devel] [PATCH v3 2/3] qdev: add cleanup logic in device_set_realized() to avoid resource leak

2014-09-01 Thread Peter Crosthwaite
On Mon, Sep 1, 2014 at 4:17 PM, Gonglei (Arei) wrote: > > > > > > > >> -Original Message- >> From: peter.crosthwa...@petalogix.com >> [mailto:peter.crosthwa...@petalogix.com] On Behalf Of Peter Crosthwaite >> Sent: Monday, September 01, 2014 2:08 PM >> To: Gonglei (Arei) >> Cc: qemu-devel@

Re: [Qemu-devel] [PATCH 0/5] s390x/gdb: various fixes

2014-09-01 Thread Alexander Graf
On 01.09.14 12:06, Christian Borntraeger wrote: > On 29/08/14 15:52, Jens Freimann wrote: >> Conny, Alex, Christian, >> >> here are some patches improving our gdb support. >> >> * Patch 1 fixes a bug where the cc was changed accidentally. >> * Patch 2 adds the gdb feature XML files for s390x >>

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Crosthwaite
On Tue, Sep 2, 2014 at 3:15 AM, Peter Maydell wrote: > On 19 August 2014 01:54, Peter Crosthwaite > wrote: >> Linux should boot in EL2 or EL1. If in EL3, jump down before handing >> off to Linux. >> >> Signed-off-by: Peter Crosthwaite > > The other way we could do this would be to have the > do

Re: [Qemu-devel] [PATCH 1/5] s390x/gdb: don't touch the cc if tcg is not enabled

2014-09-01 Thread Alexander Graf
On 29.08.14 15:52, Jens Freimann wrote: > From: David Hildenbrand > > When reading/writing the psw mask, the condition code may only be touched if > running on tcg. Why? Shouldn't we be able to set CC from gdb as well? Alex

Re: [Qemu-devel] [PATCH v1 4/6] qom: Move cpu.o to obj-y.

2014-09-01 Thread Peter Crosthwaite
On Tue, Sep 2, 2014 at 3:54 AM, Paolo Bonzini wrote: > Il 01/09/2014 19:43, Peter Maydell ha scritto: >> On 26 August 2014 01:58, Peter Crosthwaite >> wrote: >>> It's not really a common object >> >> In what sense isn't it a common object? It's only >> compiled once, rather than per-target. We s

Re: [Qemu-devel] [PATCH v8 5/7] libqos: Added test case for configuration changes in virtio-blk test

2014-09-01 Thread Marc Marí
El Mon, 1 Sep 2014 18:27:34 +0200 Marc Marí escribió: > El Mon, 1 Sep 2014 18:09:09 +0200 > Greg Kurz escribió: > > On Mon, 1 Sep 2014 12:07:58 +0200 > > Marc Marí wrote: > > > Reviewed-by: Stefan Hajnoczi > > > Signed-off-by: Marc Marí > > > --- > > > > Hi Marc, > > > > I gave it a try for

[Qemu-devel] ARM Cortex-M IRQs can not be globally disabled

2014-09-01 Thread David Hoover
Hi, It seems that interrupts are not disabled by CPSIE instruction. The current code apparently ignores (daif&PSTATE_I) for Cortex-M. The patch below is basically identical to the patch that was attached to the following message: https://lists.gnu.org/archive/html/qemu-devel/2011-06/msg0051

Re: [Qemu-devel] [PATCH V4] net: Forbid dealing with packets when VM is not running

2014-09-01 Thread Stefan Hajnoczi
On Tue, Aug 26, 2014 at 04:06:17PM +0800, zhanghailiang wrote: > For all NICs(except virtio-net) emulated by qemu, > Such as e1000, rtl8139, pcnet and ne2k_pci, > Qemu can still receive packets when VM is not running. > > If this happened in *migration's* last PAUSE VM stage, but > before the end

Re: [Qemu-devel] [PATCH 2/4] pcie: Add support for Single Root I/O Virtualization (SR/IOV)

2014-09-01 Thread Knut Omang
On Mon, 2014-09-01 at 12:39 +0300, Michael S. Tsirkin wrote: > On Fri, Aug 29, 2014 at 09:17:07AM +0200, Knut Omang wrote: > > This patch provides the building blocks for creating an SR/IOV > > PCIe Extended Capability header and creating and removing > > SR/IOV Virtual Functions. > > > > Signed-

Re: [Qemu-devel] [PATCH v2 3/5] target-arm: add hvc and smc exception emulation handling infrastructure

2014-09-01 Thread Peter Maydell
On 1 September 2014 19:01, Ard Biesheuvel wrote: > On 1 September 2014 13:55, Ard Biesheuvel wrote: >> @@ -3599,6 +3609,28 @@ void arm_cpu_do_interrupt(CPUState *cs) >> mask = CPSR_A | CPSR_I | CPSR_F; >> offset = 4; >> break; >> +case EXCP_HVC: >> +if (arm_

Re: [Qemu-devel] [PATCH] hw/arm/boot: load device tree to base of DRAM if no -kernel option was passed

2014-09-01 Thread Peter Maydell
On 1 September 2014 19:04, Ard Biesheuvel wrote: > On 1 September 2014 19:50, Peter Maydell wrote: >> Also true; I thought about mentioning those but decided they >> were orthogonal. We should probably pull together a list >> of all the UEFI related QEMU patches and required work. > By orthogona

Re: [Qemu-devel] [PATCH v5] implementing victim TLB for QEMU system emulated TLB

2014-09-01 Thread Xin Tong
Thank you. Peter. sorry for forgetting about the patch for so long. Xin On Mon, Sep 1, 2014 at 1:19 PM, Peter Maydell wrote: > On 14 August 2014 01:09, Xin Tong wrote: > > someone please reviews the patch when have time. > > Thanks; reviewed and applied to master. Apologies for > the length o

Re: [Qemu-devel] [PATCH v5] implementing victim TLB for QEMU system emulated TLB

2014-09-01 Thread Peter Maydell
On 14 August 2014 01:09, Xin Tong wrote: > someone please reviews the patch when have time. Thanks; reviewed and applied to master. Apologies for the length of time this one's taken to get in. -- PMM

Re: [Qemu-devel] [PATCH 3/4] qemu-char: Convert udp char backend to parse/kind

2014-09-01 Thread Peter Maydell
On 19 August 2014 14:16, Markus Armbruster wrote: > Peter Maydell writes: > >> Convert the udp char backend to the new style QAPI framework. >> >> Signed-off-by: Peter Maydell >> --- >> qemu-char.c | 69 >> +++-- >> 1 file changed, 54 ins

Re: [Qemu-devel] [PATCH] hw/arm/boot: load device tree to base of DRAM if no -kernel option was passed

2014-09-01 Thread Ard Biesheuvel
On 1 September 2014 19:50, Peter Maydell wrote: > On 1 September 2014 18:46, Ard Biesheuvel wrote: >> On 1 September 2014 19:36, Peter Maydell wrote: >>> On 26 August 2014 16:31, Ard Biesheuvel wrote: If we are running the 'virt' machine, we may have a device tree blob but no kernel t

Re: [Qemu-devel] [PATCH v2 3/5] target-arm: add hvc and smc exception emulation handling infrastructure

2014-09-01 Thread Ard Biesheuvel
On 1 September 2014 13:55, Ard Biesheuvel wrote: > From: Rob Herring > > Add the infrastructure to handle and emulate hvc and smc exceptions. > This will enable emulation of things such as PSCI calls. This commit > does not change the behavior and will exit with unknown exception. > > Signed-off-

Re: [Qemu-devel] [PATCH v1 4/6] qom: Move cpu.o to obj-y.

2014-09-01 Thread Paolo Bonzini
Il 01/09/2014 19:43, Peter Maydell ha scritto: > On 26 August 2014 01:58, Peter Crosthwaite > wrote: >> It's not really a common object > > In what sense isn't it a common object? It's only > compiled once, rather than per-target. We should > avoid moving object files from compiled-once > to com

Re: [Qemu-devel] [PATCH] hw/arm/boot: load device tree to base of DRAM if no -kernel option was passed

2014-09-01 Thread Peter Maydell
On 1 September 2014 18:46, Ard Biesheuvel wrote: > On 1 September 2014 19:36, Peter Maydell wrote: >> On 26 August 2014 16:31, Ard Biesheuvel wrote: >>> If we are running the 'virt' machine, we may have a device tree blob but no >>> kernel to supply it to if no -kernel option was passed. In that

Re: [Qemu-devel] [PATCH] hw/arm/boot: load device tree to base of DRAM if no -kernel option was passed

2014-09-01 Thread Ard Biesheuvel
On 1 September 2014 19:36, Peter Maydell wrote: > On 26 August 2014 16:31, Ard Biesheuvel wrote: >> If we are running the 'virt' machine, we may have a device tree blob but no >> kernel to supply it to if no -kernel option was passed. In that case, copy it >> to the base of DRAM where it can be p

Re: [Qemu-devel] [PATCH v1 4/6] qom: Move cpu.o to obj-y.

2014-09-01 Thread Peter Maydell
On 26 August 2014 01:58, Peter Crosthwaite wrote: > It's not really a common object In what sense isn't it a common object? It's only compiled once, rather than per-target. We should avoid moving object files from compiled-once to compiled-per-target if we can... thanks -- PMM

Re: [Qemu-devel] [PATCH v5 06/10] hw/vfio: create common module

2014-09-01 Thread Alexander Graf
> Am 01.09.2014 um 18:31 schrieb Eric Auger : > >> On 08/13/2014 09:59 PM, Alex Williamson wrote: >>> On Tue, 2014-08-12 at 08:09 +0200, Eric Auger wrote: On 08/11/2014 09:25 PM, Alex Williamson wrote: > On Sat, 2014-08-09 at 15:25 +0100, Eric Auger wrote: > diff --git a/include/hw/

Re: [Qemu-devel] [PATCH v1 0/6] PMA phase 2 - per CPU address spaces

2014-09-01 Thread Peter Maydell
On 26 August 2014 01:56, Peter Crosthwaite wrote: > > Hi All, > > This series sets up CPUs with configurable address spaces. This follows > on from Edgars original work and moves towards removal of > address_space_memory and support for arbitrary memory > heirachies/layouts. > > Fuller context in

Re: [Qemu-devel] [PATCH] hw/arm/boot: load device tree to base of DRAM if no -kernel option was passed

2014-09-01 Thread Peter Maydell
On 26 August 2014 16:31, Ard Biesheuvel wrote: > If we are running the 'virt' machine, we may have a device tree blob but no > kernel to supply it to if no -kernel option was passed. In that case, copy it > to the base of DRAM where it can be picked up by a bootloader executing from > NOR flash. >

Re: [Qemu-devel] [RFC v1 2/2] arm: boot: Add EL jump-down code for Linux

2014-09-01 Thread Peter Maydell
On 19 August 2014 01:54, Peter Crosthwaite wrote: > Linux should boot in EL2 or EL1. If in EL3, jump down before handing > off to Linux. > > Signed-off-by: Peter Crosthwaite The other way we could do this would be to have the do_cpu_reset() hook put the CPU into EL2 or EL1 before starting the bo

Re: [Qemu-devel] [PATCH v2 01/12] integratorcp: adding vmstate for save/restore

2014-09-01 Thread Peter Maydell
On 28 August 2014 12:18, Pavel Dovgalyuk wrote: > VMState added by this patch preserves correct > loading of the integratorcp device state. > > Signed-off-by: Pavel Dovgalyuk > --- > hw/arm/integratorcp.c | 38 +- > 1 files changed, 37 insertions(+), 1 delet

Re: [Qemu-devel] [PATCH v2 12/12] pl031: add missed field to vmstate

2014-09-01 Thread Peter Maydell
On 28 August 2014 12:19, Pavel Dovgalyuk wrote: > This patch adds timer which uses virtual clock to the VMState. > Such timers are required for saving because virtual clock is the part > of the virtual machine state. > > Signed-off-by: Pavel Dovgalyuk > --- > hw/timer/pl031.c |3 ++- > 1 fil

Re: [Qemu-devel] [PATCH v1 0/5] Netduino Plus 2 Machine Model

2014-09-01 Thread Peter Maydell
On 24 August 2014 01:13, Alistair Francis wrote: > The Netduino Plus 2 has a Cortex-M4 in it, while this model uses > a Cortex-M3 as that is supported by QEMU. This means that the code > that runs on the Netduino Plus 2 is recompiled for a Cortex-M3 with > out Floating Point or DSP optimisations.

Re: [Qemu-devel] [PATCH v1 5/5] Netduino: Add the Netduino Plus 2 Machine Model

2014-09-01 Thread Peter Maydell
On 1 September 2014 13:44, Peter Maydell wrote: > Yeah, but it's not really the right design IMHO. We should > have common armv7m init code for the parts which are > really "the CPU has all this" (including at least the bitbanding, > NVIC, memory mapped system registers, reset/ELF file > loading,

Re: [Qemu-devel] [PATCH v5 06/10] hw/vfio: create common module

2014-09-01 Thread Eric Auger
On 08/13/2014 09:59 PM, Alex Williamson wrote: > On Tue, 2014-08-12 at 08:09 +0200, Eric Auger wrote: >> On 08/11/2014 09:25 PM, Alex Williamson wrote: >>> On Sat, 2014-08-09 at 15:25 +0100, Eric Auger wrote: diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h new f

Re: [Qemu-devel] [PATCH v1 1/5] Netduino_USART: Add the Netduino Plus 2 USART Controller

2014-09-01 Thread Peter Maydell
On 24 August 2014 03:09, Peter Crosthwaite wrote: > If you make your registers an array, you can index the with the offset > and remove the repeated s->foo return logic. You can also use a single > memset to do all the 0 resets. Hmm. I dislike that style personally, especially for devices like th

Re: [Qemu-devel] [PATCH v1 2/5] Netduino_GPIO: Add the Netduino Plus 2 GPIO controller

2014-09-01 Thread Peter Maydell
On 24 August 2014 01:13, Alistair Francis wrote: > This patch adds the Netduino Plus 2 GPIO controller to QEMU. > This allows reading and writing to the Netduino GPIO pins. Are you sure this isn't actually the GPIO module in the STM32F4xx SoC ? The datasheets and schematic suggest this isn't a bo

Re: [Qemu-devel] [PATCH v8 5/7] libqos: Added test case for configuration changes in virtio-blk test

2014-09-01 Thread Marc Marí
El Mon, 1 Sep 2014 18:09:09 +0200 Greg Kurz escribió: > On Mon, 1 Sep 2014 12:07:58 +0200 > Marc Marí wrote: > > Reviewed-by: Stefan Hajnoczi > > Signed-off-by: Marc Marí > > --- > > Hi Marc, > > I gave it a try for various host/target combinations involving ppc64 > and x86_64. Here is what

Re: [Qemu-devel] [RFC PATCH v6 00/14] Reverse execution.

2014-09-01 Thread Paolo Bonzini
Il 03/07/2014 16:33, fred.kon...@greensocs.com ha scritto: > From: KONRAD Frederic > > Hi everybody, > > This is the sixth version of this RFC (see the changes below). > > Those are the two first patch-set we have been worked on for reverse > execution. > > The first part is fully reviewed ex

Re: [Qemu-devel] [PATCH v2 4/5] target-arm: add emulation of PSCI calls for system emulation

2014-09-01 Thread Ard Biesheuvel
On 1 September 2014 14:04, Peter Maydell wrote: > On 1 September 2014 12:55, Ard Biesheuvel wrote: >> From: Rob Herring >> >> Add support for handling PSCI calls in system emulation. Both version >> 0.1 and 0.2 of the PSCI spec are supported. Platforms can enable support >> by setting "psci-meth

Re: [Qemu-devel] [PATCH v8 5/7] libqos: Added test case for configuration changes in virtio-blk test

2014-09-01 Thread Greg Kurz
On Mon, 1 Sep 2014 12:07:58 +0200 Marc Marí wrote: > Reviewed-by: Stefan Hajnoczi > Signed-off-by: Marc Marí > --- Hi Marc, I gave it a try for various host/target combinations involving ppc64 and x86_64. Here is what I get: | x86_64 |ppc64| TARGET ++-

Re: [Qemu-devel] [PATCH v2] qcow2: add update refcount table realization for update_refcount

2014-09-01 Thread Jun Li
On Mon, 09/01 13:11, Benoît Canet wrote: > The Monday 01 Sep 2014 à 18:52:48 (+0800), Jun Li wrote : > > When every item of refcount block is NULL, free refcount block and reset the > > corresponding item of refcount table with NULL. > > > > Signed-off-by: Jun Li > > --- > > > > The v2 do follow

Re: [Qemu-devel] [PATCH v2 0/5] ARM: add PSCI 0.2 support in TCG mode

2014-09-01 Thread Ard Biesheuvel
On 1 September 2014 15:50, Peter Maydell wrote: > On 1 September 2014 12:55, Ard Biesheuvel wrote: >> Currently, booting multiple cores under TCG is unstable, so the restriction >> to 1 cpu in TCG mode is retained for now. However, PSCI reset and poweroff >> are >> supported. > > This is worryin

Re: [Qemu-devel] [PATCH] hw/arm/virt: add linux, stdout-path to /chosen DT node

2014-09-01 Thread Peter Maydell
On 29 August 2014 14:03, Ard Biesheuvel wrote: > Add a property "linux,stdout-path" to the /chosen DT node and make > it point to the emulated UART. This allows users such as the Linux > kernel to produce console output without the need to pass console= > or earlycon=pl011,0x... command line argum

Re: [Qemu-devel] [PATCH 0/2] pflash (UEFI varstore) migration shortcut for libvirt

2014-09-01 Thread Stefan Hajnoczi
On Sat, Aug 23, 2014 at 12:19:05PM +0200, Laszlo Ersek wrote: > Libvirt is growing support for x86_64 OVMF guests: > > http://www.redhat.com/archives/libvir-list/2014-August/msg01045.html > > An important feature of such guests is the persistent store for > non-volatile UEFI variables. This is im

Re: [Qemu-devel] [Bug 1362635] Re: bdrv_read co-routine re-entered recursively

2014-09-01 Thread Stefan Hajnoczi
On Mon, Sep 01, 2014 at 07:55:22AM -, senya wrote: > I'm trying to reanimate github.com/jagane/qemu-kvm-livebackup > there is a separate thread which connects with client through socket and > sends disk blocks to it. Regarding your original question about threads: it is possible to do block I

Re: [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator

2014-09-01 Thread Rob Landley
On 09/01/14 03:07, Paolo Bonzini wrote: > Il 01/09/2014 07:05, Rob Landley ha scritto: >> If you grab http://landley.net/aboriginal/bin/qemu-system-sh4.tar.bz2 >> extract it and ./run-emulator.sh (which is a fairly straightforward >> qemu-system-sh4 invocation on the included kernel image and squas

Re: [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator

2014-09-01 Thread Rob Landley
On 09/01/14 00:05, Rob Landley wrote: > If you grab http://landley.net/aboriginal/bin/qemu-system-sh4.tar.bz2 > extract it and ./run-emulator.sh (which is a fairly straightforward > qemu-system-sh4 invocation on the included kernel image and squashfs > root filesystem), older qemu versions would ru

Re: [Qemu-devel] [PATCH v7 2/7] tests: Add virtio device initialization

2014-09-01 Thread Stefan Hajnoczi
On Fri, Aug 29, 2014 at 05:59:37PM +0200, Paolo Bonzini wrote: > Il 29/08/2014 17:49, Stefan Hajnoczi ha scritto: > > for (i = 0; i < 8; ++i) { > > quad.bytes[i] = qpci_io_readb(dev->pdev, addr + i); > > } > > if (qtest_big_endian() != qtest_host_endian()) { > > quad.u64 = bswap64(quad.u64)

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

2014-09-01 Thread Peter Lieven
On 17.06.2014 13:46, Paolo Bonzini wrote: Il 17/06/2014 13:37, Peter Lieven ha scritto: On 17.06.2014 13:15, Paolo Bonzini wrote: Il 17/06/2014 08:14, Peter Lieven ha scritto: BTW, while debugging a case with a bigger storage supplier I found that open-iscsi seems to do exactly this undeter

Re: [Qemu-devel] [PULL 09/35] block/quorum: add simple read pattern support

2014-09-01 Thread Stefan Hajnoczi
On Fri, Aug 29, 2014 at 06:47:01PM +0200, Benoît Canet wrote: > The Friday 29 Aug 2014 à 17:29:37 (+0100), Stefan Hajnoczi wrote : > > Cc: Benoit Canet > > Cc: Eric Blake > > Cc: Kevin Wolf > > Cc: Stefan Hajnoczi > > Signed-off-by: Liu Yuan > > Signed-off-by: Stefan Hajnoczi > > Here again

Re: [Qemu-devel] [PATCH] block: kill tail whitespace in block.c

2014-09-01 Thread Stefan Hajnoczi
On Mon, Sep 01, 2014 at 01:35:21PM +0800, Liu Yuan wrote: > Cc: Kevin Wolf > Cc: Stefan Hajnoczi > Signed-off-by: Liu Yuan > --- > block.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan pgpRbGkd

[Qemu-devel] [PATCH 2/2] qemu-img: fix rebase src_cache option documentation

2014-09-01 Thread Stefan Hajnoczi
The src_cache option (-T) specifies the cache mode for backing files. It applies both the image's old backing file as well as the new backing file: ret = bdrv_open(&bs_old_backing, backing_name, NULL, NULL, src_flags, old_backing_drv, &local_err); if (ret) { ... } i

[Qemu-devel] [PATCH 1/2] qemu-img: clarify src_cache option documentation

2014-09-01 Thread Stefan Hajnoczi
The source cache option takes the same values as the cache option. The documentation reads a little strange because it starts with "In contrast the src_cache option ...". The fact that this is comparing with the previous documented option (the 'cache' option) is implicit. Readers may be confused

[Qemu-devel] [PATCH 0/2] qemu-img: src_mode option documentation improvements

2014-09-01 Thread Stefan Hajnoczi
These patches clarify and fix the documentation for the recent qemu-img src_mode (-T) option. Stefan Hajnoczi (2): qemu-img: clarify src_cache option documentation qemu-img: fix rebase src_cache option documentation qemu-img.c| 3 ++- qemu-img.texi | 7 --- 2 files changed, 6 inserti

Re: [Qemu-devel] [PATCH v7 00/15] TriCore architecture guest implementation

2014-09-01 Thread Peter Maydell
On 1 September 2014 12:59, Bastian Koppelmann wrote: > Hi, > > my aim is to add Infineon's TriCore architecture to QEMU. This series of > patches adds the target stubs, a basic testboard and a softmmu for system > mode emulation. Furthermore it adds all the 16 bit long instructions of the > arc

Re: [Qemu-devel] [RFC V2 0/8] Throttle group cooperative round robin scheduling

2014-09-01 Thread Benoît Canet
On Wed, Aug 20, 2014 at 02:27:06PM +, Benoît Canet wrote: > On Wed, Aug 13, 2014 at 04:23:51PM +0200, Benoît Canet wrote: > > Hi, > > > > Here is my current wip on the throttle group support. > > > > For the user interface I implemented Stefanha's idea proposed in Stuttgart. > > > > For the

Re: [Qemu-devel] qcow2, lazy_refcounts and killing qemu

2014-09-01 Thread Greg Kurz
On Mon, 1 Sep 2014 15:19:28 +0100 "Richard W.M. Jones" wrote: > A test case, attached. > > Note that you have to look at the output of the final qemu-img info > command. In the case where it goes wrong, the 'backing file:' and > 'backing file format:' lines disappear completely. In the case wh

Re: [Qemu-devel] qcow2, lazy_refcounts and killing qemu

2014-09-01 Thread Richard W.M. Jones
> # Write stuff to the overlay. > guestfish < add-drive overlay.qcow2 format:qcow2 cachemode:unsafe To head off any suggestions, removing cachemode:unsafe doesn't fix it. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualizat

Re: [Qemu-devel] qcow2, lazy_refcounts and killing qemu

2014-09-01 Thread Richard W.M. Jones
A test case, attached. Note that you have to look at the output of the final qemu-img info command. In the case where it goes wrong, the 'backing file:' and 'backing file format:' lines disappear completely. In the case where the bug is not reproduced, these lines are still present. It's 100% r

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Christian Borntraeger
On 01/09/14 16:03, Christian Borntraeger wrote: > On 01/09/14 15:29, Paolo Bonzini wrote: >> Il 01/09/2014 15:22, Christian Borntraeger ha scritto: > If virtio-blk and virtio-serial share an IRQ, the guest operating system > has to check each virtqueue for activity. Maybe there is some >>

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Christian Borntraeger
On 01/09/14 15:29, Paolo Bonzini wrote: > Il 01/09/2014 15:22, Christian Borntraeger ha scritto: If virtio-blk and virtio-serial share an IRQ, the guest operating system has to check each virtqueue for activity. Maybe there is some inefficiency doing that. AFAIK virtio-serial

Re: [Qemu-devel] [PATCH v2 0/5] ARM: add PSCI 0.2 support in TCG mode

2014-09-01 Thread Peter Maydell
On 1 September 2014 12:55, Ard Biesheuvel wrote: > Currently, booting multiple cores under TCG is unstable, so the restriction > to 1 cpu in TCG mode is retained for now. However, PSCI reset and poweroff are > supported. This is worrying, incidentally. What's the instability? Last time I tried Ro

[Qemu-devel] [Bug 1362635] Re: bdrv_read co-routine re-entered recursively

2014-09-01 Thread senya
It seems like I only need to put all my bdrv_read's into one co-routine and start it -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1362635 Title: bdrv_read co-routine re-entered recursively Status

Re: [Qemu-devel] [PULL 00/19] s390x/kvm: Several updates/fixes/features

2014-09-01 Thread Peter Maydell
:15 +0100) > > are available in the git repository at: > > > git://github.com/borntraeger/qemu.git tags/kvm-s390-20140901 > > for you to fetch changes up to 218829db2303e3d61f901f1d12fd4f7cd03644e1: > >

Re: [Qemu-devel] [libvirt] IO accounting overhaul

2014-09-01 Thread Benoît Canet
The Monday 01 Sep 2014 à 13:41:01 (+0200), Markus Armbruster wrote : > Benoît Canet writes: > > > The Monday 01 Sep 2014 à 11:52:00 (+0200), Markus Armbruster wrote : > >> Cc'ing libvirt following Stefan's lead. > >> > >> Benoît Canet writes: > >> > >> > Hi, > >> > > >> > I collected some item

[Qemu-devel] [PATCH v3 1/3] qdev: Introduce a function to get qbus's parent

2014-09-01 Thread arei.gonglei
From: Gonglei We may use it check type of qbus's parent. Signed-off-by: Gonglei --- hw/core/qdev.c | 9 + include/hw/qdev-core.h | 1 + 2 files changed, 10 insertions(+) diff --git a/hw/core/qdev.c b/hw/core/qdev.c index da1ba48..e42d313 100644 --- a/hw/core/qdev.c +++ b/hw/co

[Qemu-devel] [PATCH v3 2/3] pcie: add check for ari capability of pcie devices

2014-09-01 Thread arei.gonglei
From: Gonglei In QEMU, ARI Forwarding is enabled defualt at emulation of PCIe ports. ARI Forwarding enable setting at firmware/OS Control handoff. If the bit is Set when a non-ARI Device is present, the non-ARI Device can respond to Configuration Space accesses under what it interprets as being d

[Qemu-devel] [PATCH v3 0/3] add check for PCIe root ports and downstream ports

2014-09-01 Thread arei.gonglei
From: Gonglei Root ports and downstream ports of switches are the hot pluggable ports in a PCI Express hierarchy. PCI Express supports chip-to-chip interconnect, a PCIe link can only connect one pci device/Switch/EndPoint or PCI-bridge. 7.3. Configuration Transaction Rules (PCI Express specifica

[Qemu-devel] [PATCH v3 3/3] pcie: remove confused comments

2014-09-01 Thread arei.gonglei
From: Gonglei The below functions is not allocation funcitons, but find helper function. The only allocation function is pcie_add_capability(), but its argument names is not the same with the comments. So remove this comments which make people confused. Signed-off-by: Gonglei --- hw/pci/pcie.c

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Paolo Bonzini
Il 01/09/2014 15:22, Christian Borntraeger ha scritto: > > > If virtio-blk and virtio-serial share an IRQ, the guest operating system > > > has to check each virtqueue for activity. Maybe there is some > > > inefficiency doing that. > > > AFAIK virtio-serial registers 64 virtqueues (on 31 ports +

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Christian Borntraeger
On 01/09/14 15:12, Paolo Bonzini wrote: > Il 01/09/2014 15:09, Christian Borntraeger ha scritto: >> This is just wild guessing: >> If virtio-blk and virtio-serial share an IRQ, the guest operating system has >> to check each virtqueue for activity. Maybe there is some inefficiency doing >> that.

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Paolo Bonzini
Il 01/09/2014 15:09, Christian Borntraeger ha scritto: > This is just wild guessing: > If virtio-blk and virtio-serial share an IRQ, the guest operating system has > to check each virtqueue for activity. Maybe there is some inefficiency doing > that. > AFAIK virtio-serial registers 64 virtqueues

Re: [Qemu-devel] [question] virtio-blk performance degradationhappened with virito-serial

2014-09-01 Thread Christian Borntraeger
On 01/09/14 14:52, Zhang Haoyu wrote: Hi, all I start a VM with virtio-serial (default ports number: 31), and found that virtio-blk performance degradation happened, about 25%, this problem can be reproduced 100%. without virtio-serial: 4k-read-random 1186 IOPS

Re: [Qemu-devel] [PATCH v7 02/15] target-tricore: Add board for systemmode

2014-09-01 Thread Bastian Koppelmann
Hi Peter, On 09/01/2014 01:48 PM, Peter Maydell wrote: On 1 September 2014 12:59, Bastian Koppelmann wrote: Add basic board to allow systemmode emulation Signed-off-by: Bastian Koppelmann --- v6 -> v7: - TRICORECPU -> TriCoreCPU. - CPUTRICOREState -> CPUTriCoreState. - tricore

Re: [Qemu-devel] [question] virtio-blk performancedegradationhappened with virito-serial

2014-09-01 Thread Zhang Haoyu
>> >> Hi, all >> >> >> >> I start a VM with virtio-serial (default ports number: 31), and found >> >> that virtio-blk performance degradation happened, about 25%, this problem >> >> can be reproduced 100%. >> >> without virtio-serial: >> >> 4k-read-random 1186 IOPS >> >> with virtio-serial: >> >

Re: [Qemu-devel] qcow2, lazy_refcounts and killing qemu

2014-09-01 Thread Richard W.M. Jones
On Mon, Sep 01, 2014 at 02:41:02PM +0200, Greg Kurz wrote: > On Sat, 30 Aug 2014 15:53:13 +0100 > "Richard W.M. Jones" wrote: > > I can reproduce this easily, although of course the reproducer will > > involve libguestfs. > > > > Rich. > > > > Can you share this reproducer ? The immediate repr

[Qemu-devel] [PULL 19/19] s390x/gdb: coding style fixes

2014-09-01 Thread Christian Borntraeger
From: David Hildenbrand This patch cleanes up two coding style issues (missing whitespaces). Signed-off-by: David Hildenbrand Acked-by: Cornelia Huck Acked-by: Christian Borntraeger Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- target-s390x/gdbstub.c | 4 ++-- 1 fil

[Qemu-devel] [PULL 05/19] pc-bios/s390-ccw: support all virtio block size

2014-09-01 Thread Christian Borntraeger
From: "Eugene (jno) Dvurechenski" The block size value may be given "as is" OR as a base value and a shift count (exponent). So, we have to use calculation to get the proper number in the code. The main expression reads as (blk_cfg.blk_size << blk_cfg.physical_block_exp) E.g., various c

[Qemu-devel] [PULL 16/19] s390x/gdb: don't touch the cc if tcg is not enabled

2014-09-01 Thread Christian Borntraeger
From: David Hildenbrand When reading/writing the psw mask, the condition code may only be touched if running on tcg. Signed-off-by: David Hildenbrand Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- target-s390x/gdbstub.c | 14 ++ 1 file changed, 10 insertion

  1   2   3   >