Re: [Qemu-devel] [PATCH V2] pci: fixes to allow booting from extra root pci buses.

2015-06-15 Thread Marcel Apfelbaum
On 06/15/2015 09:50 AM, Gerd Hoffmann wrote: Hi, I'm wondering whenever things become easier if we add config registers to the pxb, where the firmware can program the bus number range and we can use the config register base as a way to specify which pxb we are referring to ? ... and,

Re: [Qemu-devel] [PATCH v4] Use Aff1 with mpidr

2015-06-15 Thread Igor Mammedov
On Mon, 15 Jun 2015 11:13:52 +0300 Pavel Fedin p.fe...@samsung.com wrote: Hello! For machine models to specify topology we would need a property or properties on the QOM object for the machine model to set, On which object? There's no single object inside a machine model. Of course

Re: [Qemu-devel] RFC Multi-threaded TCG design document

2015-06-15 Thread Frederic Konrad
On 12/06/2015 18:37, Alex Bennée wrote: Hi, Hi Alex, I've completed some of the points below. We will also work on a design decisions document to add to this one. We probably want to merge that with what we did on the wiki? http://wiki.qemu.org/Features/tcg-multithread One thing that

Re: [Qemu-devel] [PULL 00/10] Block patches

2015-06-15 Thread Peter Maydell
On 12 June 2015 at 15:57, Stefan Hajnoczi stefa...@redhat.com wrote: The following changes since commit d8e3b729cf452d2689c8669f1ec18158db29fd5a: Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2015-06-11 15:33:38 +0100) are available in the git repository at:

[Qemu-devel] [PATCH] s390/bios: build with -fdelete-null-pointer-checks

2015-06-15 Thread Aurelien Jarno
Starting with version 4.9, GCC assumes it can't safely dereference null pointers, and uses this for some optimizations. On s390, the lowcore memory is located at address 0, so this assumption is wrong and breaks the s390-ccw firmware. Pass -fdelete-null-pointer-checks to avoid that. Cc: Cornelia

[Qemu-devel] [RFC] QDev explicit constructors destructors

2015-06-15 Thread Liviu Ionescu
The .instance_init construction method available in the current QOM provides an equivalent of the C++ default constructor, that works just fine as long as there is no need to pass additional data to the construction logic. One natural solution would be to add an explicit constructor, like in

Re: [Qemu-devel] [PATCH 03/13] target-mips: refactor {D}LSA, {D}ALIGN, {D}BITSWAP

2015-06-15 Thread Leon Alrae
On 12/06/2015 15:02, Yongbok Kim wrote: Refactor those instructions in order to reuse them for microMIPS32 Release 6. Signed-off-by: Yongbok Kim yongbok@imgtec.com --- target-mips/translate.c | 164 +- 1 files changed, 103 insertions(+), 61

[Qemu-devel] [PULL 1/7] watchdog: change option wording to allow for more watchdogs

2015-06-15 Thread Christian Borntraeger
From: Xu Wang gesa...@linux.vnet.ibm.com We will introduce a new watchdog for s390x. Lets adopt qemu-options.hx to allow more watchdog devices. Signed-off-by: Xu Wang gesa...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger

[Qemu-devel] [PULL 5/7] nmi: Implement inject_nmi() for non-monitor context use

2015-06-15 Thread Christian Borntraeger
From: Xu Wang gesa...@linux.vnet.ibm.com Let's introduce a general inject_nmi() function that doesn't rely on the cpu index of the monitor, but uses cpu index 0 as default (except for x86). This function can then later be used from a non-monitor context. Signed-off-by: Xu Wang

[Qemu-devel] [PULL 7/7] s390/bios: build with -fdelete-null-pointer-checks

2015-06-15 Thread Christian Borntraeger
From: Aurelien Jarno aurel...@aurel32.net Starting with version 4.9, GCC assumes it can't safely dereference null pointers, and uses this for some optimizations. On s390, the lowcore memory is located at address 0, so this assumption is wrong and breaks the s390-ccw firmware. Pass

[Qemu-devel] [PULL 4/7] s390x/watchdog: diag288 migration support

2015-06-15 Thread Christian Borntraeger
From: Xu Wang gesa...@linux.vnet.ibm.com Add vmstate structure to keep state and data during migration. Signed-off-by: Xu Wang gesa...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by: Christian Borntraeger borntrae...@de.ibm.com ---

Re: [Qemu-devel] RFC Multi-threaded TCG design document

2015-06-15 Thread Alex Bennée
Frederic Konrad fred.kon...@greensocs.com writes: On 12/06/2015 18:37, Alex Bennée wrote: Hi, Hi Alex, I've completed some of the points below. We will also work on a design decisions document to add to this one. We probably want to merge that with what we did on the wiki?

Re: [Qemu-devel] [PATCH 01/13] target-mips: fix {D, W}RGPR in microMIPS

2015-06-15 Thread Aurelien Jarno
On 2015-06-12 15:02, Yongbok Kim wrote: rt, rs were swapped Signed-off-by: Yongbok Kim yongbok@imgtec.com --- target-mips/translate.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index f6ae0d3..d4a530d

[Qemu-devel] [RFC v2 5/7] tcg-op: create new TCG qemu_ldlink and qemu_stcond instructions

2015-06-15 Thread Alvise Rigo
Create a new pair of instructions that implement a LoadLink/StoreConditional mechanism. It has not been possible to completely include the two new opcodes in the plain variants, since the StoreConditional will always require one more argument to store the success of the operation. Suggested-by:

[Qemu-devel] [RFC v2 6/7] target-arm: translate: implement qemu_ldlink and qemu_stcond ops

2015-06-15 Thread Alvise Rigo
Implement strex and ldrex instruction relying on TCG's qemu_ldlink and qemu_stcond. For the time being only the 32bit instructions are supported. Suggested-by: Jani Kokkonen jani.kokko...@huawei.com Suggested-by: Claudio Fontana claudio.font...@huawei.com Signed-off-by: Alvise Rigo

[Qemu-devel] [RFC v2 7/7] target-i386: translate: implement qemu_ldlink and qemu_stcond ops

2015-06-15 Thread Alvise Rigo
Implement strex and ldrex instruction relying on TCG's qemu_ldlink and qemu_stcond. For the time being only 32bit configurations are supported. Suggested-by: Jani Kokkonen jani.kokko...@huawei.com Suggested-by: Claudio Fontana claudio.font...@huawei.com Signed-off-by: Alvise Rigo

Re: [Qemu-devel] [PATCH 1/1] balloon: add a feature bit to let Guest OS deflate balloon on oom

2015-06-15 Thread Michael S. Tsirkin
On Mon, Jun 15, 2015 at 09:01:53AM +0200, Christian Borntraeger wrote: Am 13.06.2015 um 22:10 schrieb Michael S. Tsirkin: On Fri, Jun 12, 2015 at 01:56:37PM +0200, Christian Borntraeger wrote: Am 10.06.2015 um 15:13 schrieb Michael S. Tsirkin: On Wed, Jun 10, 2015 at 03:02:21PM +0300, Denis

Re: [Qemu-devel] [PATCH V2] pci: fixes to allow booting from extra root pci buses.

2015-06-15 Thread Gerd Hoffmann
Hi, I'm wondering whenever things become easier if we add config registers to the pxb, where the firmware can program the bus number range and we can use the config register base as a way to specify which pxb we are referring to ? But then we'll need a bunch of fw cfg entries to let

[Qemu-devel] [PATCH v7 0/1] balloon: add a feature bit to let Guest OS deflate

2015-06-15 Thread Denis V. Lunev
Excessive virtio_balloon inflation can cause invocation of OOM-killer, when Linux is under severe memory pressure. Various mechanisms are responsible for correct virtio_balloon memory management. Nevertheless it is often the case that these control tools does not have enough time to react on fast

[Qemu-devel] [PATCH 1/1] balloon: add a feature bit to let Guest OS deflate balloon on oom

2015-06-15 Thread Denis V. Lunev
Excessive virtio_balloon inflation can cause invocation of OOM-killer, when Linux is under severe memory pressure. Various mechanisms are responsible for correct virtio_balloon memory management. Nevertheless it is often the case that these control tools does not have enough time to react on fast

[Qemu-devel] [RFC v2 4/7] softmmu: Add helpers for a new slow-path

2015-06-15 Thread Alvise Rigo
The new helpers rely on the legacy ones to perform the actual read/write. The StoreConditional helper (helper_le_stcond_name) returns 1 if the store has to fail due to a concurrent access to the same page by another vCPU. A 'concurrent access' can be a store made by *any* vCPU (although, some

[Qemu-devel] [RFC v2 0/7] Slow-path for atomic instruction translation

2015-06-15 Thread Alvise Rigo
This is the second iteration of the patch series. The relevant changes from the v1 are at the bottom of this cover letter. This patch series provides an infrastructure for atomic instruction implementation in QEMU, paving the way for TCG multi-threading. The adopted design does not rely on host

[Qemu-devel] [RFC v2 2/7] exec: Add new exclusive bitmap to ram_list

2015-06-15 Thread Alvise Rigo
The purpose of this new bitmap is to flag the memory pages that are in the middle of LL/SC operations (after a LL, before a SC). For all these pages, the corresponding TLB entries will be generated in such a way to force the slow-path. When the system starts, the whole memory is dirty (all the

[Qemu-devel] [PATCH v7 0/1] balloon: add a feature bit to let Guest OS deflate

2015-06-15 Thread Denis V. Lunev
Excessive virtio_balloon inflation can cause invocation of OOM-killer, when Linux is under severe memory pressure. Various mechanisms are responsible for correct virtio_balloon memory management. Nevertheless it is often the case that these control tools does not have enough time to react on fast

Re: [Qemu-devel] RFC Multi-threaded TCG design document

2015-06-15 Thread Mark Burton
I think we SHOUDL use the wiki - and keep it current. A lot of what you have is in the wiki too, but I’d like to see the wiki updated. We will add our stuff there too… Cheers Mark. On 15 Jun 2015, at 12:06, Alex Bennée alex.ben...@linaro.org wrote: Frederic Konrad

Re: [Qemu-devel] [PATCH v4 1/6] target-arm: Add CNTVOFF_EL2

2015-06-15 Thread Peter Maydell
On 15 June 2015 at 01:52, Edgar E. Iglesias edgar.igles...@xilinx.com wrote: On Fri, Jun 12, 2015 at 05:44:24PM +0100, Peter Maydell wrote: On 5 June 2015 at 11:33, Edgar E. Iglesias edgar.igles...@gmail.com wrote: +int istatus = (int64_t) (count - offset - gt-cval) = 0; This is

[Qemu-devel] [PULL 3/7] s390x/kvm: diag288 instruction interception and handling

2015-06-15 Thread Christian Borntraeger
From: Xu Wang gesa...@linux.vnet.ibm.com Intercept the diag288 requests from kvm guests, and hand the requested command to the diag288 watchdog device for further handling. Signed-off-by: Xu Wang gesa...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com Signed-off-by:

[Qemu-devel] [PULL 6/7] watchdog: Add new Virtual Watchdog action INJECT-NMI

2015-06-15 Thread Christian Borntraeger
From: Mao Chuan Li maoch...@linux.vnet.ibm.com This patch allows QEMU to inject a NMI into a guest when the watchdog expires. Signed-off-by: Mao Chuan Li maoch...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com CC: Eric Blake ebl...@redhat.com CC: Markus Armbruster

Re: [Qemu-devel] [PATCH V2] pci: fixes to allow booting from extra root pci buses.

2015-06-15 Thread Michael S. Tsirkin
On Mon, Jun 15, 2015 at 12:18:16PM +0200, Gerd Hoffmann wrote: Hi, I'm wondering whenever things become easier if we add config registers to the pxb, where the firmware can program the bus number range and we can use the config register base as a way to specify which pxb we are

Re: [Qemu-devel] Runtime-modified DIMMs and live migration issue

2015-06-15 Thread Andrey Korolyov
Please find the full cli args and two guest logs for DIMM initalization attached. As you can see, the freshly populated DIMMs are probably misplaced in SRAT ('already populated' messages), despite the fact that the initialized ranges are looking correct at a glance. When VM is migrated to

Re: [Qemu-devel] [PATCH 1/1] balloon: add a feature bit to let Guest OS deflate balloon on oom

2015-06-15 Thread Christian Borntraeger
Am 15.06.2015 um 11:06 schrieb Michael S. Tsirkin: AFAIK management tools depend on balloon not deflating below host-specified threshold to avoid OOM on the host. So I don't think we can make this a default, management needs to enable this explicitly. If the ballooning is required to keep

Re: [Qemu-devel] [PATCH] s390/bios: build with -fdelete-null-pointer-checks

2015-06-15 Thread Christian Borntraeger
Am 15.06.2015 um 12:24 schrieb Aurelien Jarno: Starting with version 4.9, GCC assumes it can't safely dereference null pointers, and uses this for some optimizations. On s390, the lowcore memory is located at address 0, so this assumption is wrong and breaks the s390-ccw firmware. Pass

Re: [Qemu-devel] [PATCH 1/1] balloon: add a feature bit to let Guest OS deflate balloon on oom

2015-06-15 Thread Christian Borntraeger
Am 15.06.2015 um 12:10 schrieb Michael S. Tsirkin: On Mon, Jun 15, 2015 at 11:59:05AM +0200, Christian Borntraeger wrote: Am 15.06.2015 um 11:06 schrieb Michael S. Tsirkin: AFAIK management tools depend on balloon not deflating below host-specified threshold to avoid OOM on the host. So I

Re: [Qemu-devel] CPU hot unplug support for x86_64

2015-06-15 Thread Igor Mammedov
On Thu, 11 Jun 2015 10:39:05 +0300 Fahri Cihan Demirci cih...@skyatlas.com wrote: On Tue, Jun 09, 2015 at 05:44:15PM +0200, Eduardo Otubo wrote: Hello all, I'm a little confused by all the email traffic I've seen on this list lately so I guess asking doesn't hurt: How's the current

Re: [Qemu-devel] [PATCH V2] Target-arm: Add the THUMB_DSP feature

2015-06-15 Thread Peter Maydell
On 14 June 2015 at 20:49, Aurelio C. Remonda aurelioremo...@gmail.com wrote: Created an ARM_FEATURE_THUMB_DSP to be added to any non-M thumb2-compatible CPU that uses DSP instructions. There are 85 DSP instructions (all of them thumb2). On disas_thumb2_insn the DSP feature is tested before the

[Qemu-devel] [RFC v2 1/7] bitmap: Add bitmap_one_extend operation

2015-06-15 Thread Alvise Rigo
Suggested-by: Jani Kokkonen jani.kokko...@huawei.com Suggested-by: Claudio Fontana claudio.font...@huawei.com Signed-off-by: Alvise Rigo a.r...@virtualopensystems.com --- include/qemu/bitmap.h | 9 + 1 file changed, 9 insertions(+) diff --git a/include/qemu/bitmap.h

[Qemu-devel] [RFC v2 3/7] Add new TLB_EXCL flag

2015-06-15 Thread Alvise Rigo
Add a new flag for the TLB entries to force all the accesses made to a page to follow the slow-path. In the case we remove a TLB entry marked as EXCL, we unset the corresponding exclusive bit in the bitmap. Mark the accessed page as dirty to invalidate any pending operation of LL/SC only if a

Re: [Qemu-devel] [PATCH 02/13] target-mips: add microMIPS TLBINV, TLBINVF

2015-06-15 Thread Aurelien Jarno
On 2015-06-12 15:02, Yongbok Kim wrote: add microMIPS TLBINV, TLBINVF Signed-off-by: Yongbok Kim yongbok@imgtec.com --- target-mips/translate.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index

[Qemu-devel] [PULL 0/7] s390x/kvm/bios/watchdog

2015-06-15 Thread Christian Borntraeger
/s390x-20150615 for you to fetch changes up to 8369e339d24f365750da456588e742674c153437: s390/bios: build with -fdelete-null-pointer-checks (2015-06-15 13:31:33 +0200) s390x/kvm/watchdog 1. Implement a diag288 based watchdog 2. Fix

[Qemu-devel] [PULL 2/7] s390x/watchdog: introduce diag288 watchdog device

2015-06-15 Thread Christian Borntraeger
From: Xu Wang gesa...@linux.vnet.ibm.com This patch introduces a new diag288 watchdog device that will, just like other watchdogs, monitor a guest and take corresponding actions when it detects that the guest is not responding. diag288 is s390x specific. The wiring to s390x KVM will be done in

Re: [Qemu-devel] [PATCH 00/12] -audiodev option

2015-06-15 Thread Gerd Hoffmann
Hi, This series of patches adds a new -audiodev command line option to specify audio subsytem parameters instead of environment variables. This will later allow us to specify multiple audio backends. The syntax is something like this: -audiodev driver_name,property=value,... like:

Re: [Qemu-devel] [PATCH V2] pci: fixes to allow booting from extra root pci buses.

2015-06-15 Thread Michael S. Tsirkin
On Mon, Jun 15, 2015 at 08:01:08AM +0200, Gerd Hoffmann wrote: On Fr, 2015-06-12 at 09:23 -0400, Kevin O'Connor wrote: On Fri, Jun 12, 2015 at 03:17:27PM +0300, Marcel Apfelbaum wrote: On 06/12/2015 09:00 AM, Gerd Hoffmann wrote: On each boot, coreboot might decide to assign a different

Re: [Qemu-devel] [PATCH 1/1] balloon: add a feature bit to let Guest OS deflate balloon on oom

2015-06-15 Thread Michael S. Tsirkin
On Mon, Jun 15, 2015 at 11:59:05AM +0200, Christian Borntraeger wrote: Am 15.06.2015 um 11:06 schrieb Michael S. Tsirkin: AFAIK management tools depend on balloon not deflating below host-specified threshold to avoid OOM on the host. So I don't think we can make this a default,

Re: [Qemu-devel] [RFC] QDev explicit constructors destructors

2015-06-15 Thread Liviu Ionescu
On 15 Jun 2015, at 13:48, Liviu Ionescu i...@livius.net wrote: ... add an explicit constructor, like in C++. ... the DeviceClass structure ... qdev_construct() ... For more generality, the new construct/destruct pointers can be added directly to the QOM ObjectClass, and the functions

Re: [Qemu-devel] [RFC PATCH v1 2/4] numa, pc-dimm: Store pc-dimm memory information in numa_info

2015-06-15 Thread Igor Mammedov
On Fri, 12 Jun 2015 14:30:26 +0530 Bharata B Rao bhar...@linux.vnet.ibm.com wrote: Start storing the (start_addr, size, nodeid) of the pc-dimm memory in numa_info so that this information can be used to lookup node by address. Signed-off-by: Bharata B Rao bhar...@linux.vnet.ibm.com ---

Re: [Qemu-devel] [PATCH v3 2/2] vhost user: Add RARP injection for legacy guest

2015-06-15 Thread Thibaut Collet
After a resume operation the guest always kicks the backend for each virtual queues. A live migration does a suspend operation on the old host and a resume operation on the new host. So the backend has a kick after migration. I have checked this point with a legacy guest (redhat 6-5 with kernel

[Qemu-devel] [PULL 10/20] paaudio: fix possible resource leak

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com qpa_audio_init did not clean up resources properly if the initialization failed. This hopefully fixes it. Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- audio/paaudio.c | 6 +- 1 file

[Qemu-devel] [PULL 13/20] sdlaudio: do not allow multiple instances

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com Since SDL uses a lot of global data, we can't create independent instances of sdl audio backend. Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- audio/sdlaudio.c | 7 +++ 1 file changed, 7

[Qemu-devel] [PULL 01/20] audio: remove esd backend

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com ESD is no longer developed and replaced by PulseAudio. Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- audio/Makefile.objs | 1 - audio/audio_int.h | 1 - audio/esdaudio.c| 557

[Qemu-devel] [PULL 16/20] audio: remove plive

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com It was useless even 3 years ago, so it can probably safely go away: https://lists.nongnu.org/archive/html/qemu-devel/2012-03/msg02427.html Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com ---

[Qemu-devel] [PULL 17/20] dsoundaudio: remove *_retries kludges

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com According to MSDN this may happen when the window is not in the foreground, but the default is 1 since a long time (which means no retries), so it should be ok. I've found no problems during testing it on Windows 7 and wine, so this was probably only

[Qemu-devel] [PATCH 1/2] qemu-options: Improve -global documentation

2015-06-15 Thread Markus Armbruster
Recent commit 3751d7c vl: allow full-blown QemuOpts syntax for -global overloaded its existing argument syntax DRIVER.PROP=VALUE with QemuOpts syntax. Unambigious as long as no DRIVER contains '='. Its documentation claims that the two syntaxes are equivalent. Improve it to spell out how exactly

[Qemu-devel] [PULL 11/20] dsoundaudio: do not use global variables

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- audio/dsound_template.h | 18 audio/dsoundaudio.c | 106 2 files changed, 74

[Qemu-devel] [PULL 07/20] alsaaudio: do not use global variables

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- audio/alsaaudio.c | 160 +- 1 file changed, 87 insertions(+), 73 deletions(-) diff --git

Re: [Qemu-devel] [PATCH target-arm v2 07/13] target-arm/helper.c: define MPUIR register

2015-06-15 Thread Peter Maydell
On 12 June 2015 at 20:10, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Define the MPUIR register for MPU supporting systems V6 onwards. (ARMv6 and onwards). Currently only support unified MPU. we only The size of the unified MPU is supported via the number of dregions. So just a

Re: [Qemu-devel] [PATCH v1 3/4] vhost-user: Enable 'nowait' and 'reconnect' option

2015-06-15 Thread Stefan Hajnoczi
On Fri, May 29, 2015 at 01:42:29PM +0900, Tetsuya Mukawa wrote: The patch enables 'nowait' option for server mode, and 'reconnect' option for client mode. Signed-off-by: Tetsuya Mukawa muk...@igel.co.jp --- net/vhost-user.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [Qemu-devel] [PATCH target-arm v2 09/13] target-arm: Add registers for PMSAv7

2015-06-15 Thread Peter Maydell
On 12 June 2015 at 20:10, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Define the arm CP registers for PMSAv7 and their accessor functions. RGNR serves as a shared index that indexes into arrays storing the DRBAR, DRSR and DRACR registers. DRBAR and friends have to be VMSDd separately

[Qemu-devel] [PULL 6/6] linux-user: fix the breakpoint inheritance in spawned threads

2015-06-15 Thread riku . voipio
From: Thierry Bultel thierry.bul...@basystemes.fr When a thread is spawned, cpu_copy re-initializes the bp wp lists of current thread, instead of the ones of the new thread. The effect is that breakpoints are no longer hit. Signed-off-by: Thierry Bultel thierry.bul...@basystemes.fr

Re: [Qemu-devel] CPU hot unplug support for x86_64

2015-06-15 Thread Fahri Cihan Demirci
On Mon, Jun 15, 2015 at 11:10:31AM +0200, Igor Mammedov wrote: On Thu, 11 Jun 2015 10:39:05 +0300 Fahri Cihan Demirci cih...@skyatlas.com wrote: On Tue, Jun 09, 2015 at 05:44:15PM +0200, Eduardo Otubo wrote: Hello all, I'm a little confused by all the email traffic I've seen on

Re: [Qemu-devel] RFC Multi-threaded TCG design document

2015-06-15 Thread Alex Bennée
Mark Burton mark.bur...@greensocs.com writes: I think we SHOUDL use the wiki - and keep it current. A lot of what you have is in the wiki too, but I’d like to see the wiki updated. We will add our stuff there too… I'll do a pass today and update it to point to lists, discussions and WIP

Re: [Qemu-devel] [PULL 06/10] throttle: Add throttle group support

2015-06-15 Thread Eric Blake
On 06/12/2015 08:57 AM, Stefan Hajnoczi wrote: From: Alberto Garcia be...@igalia.com The throttle group support use a cooperative round robin scheduling algorithm. The principles of the algorithm are simple: - Each BDS of the group is used as a token in a circular way. - The active BDS

Re: [Qemu-devel] [PATCH v1 1/4] vhost-user: Add ability to know vhost-user backend disconnection

2015-06-15 Thread Stefan Hajnoczi
On Fri, May 29, 2015 at 01:42:27PM +0900, Tetsuya Mukawa wrote: Current QEMU cannot detect vhost-user backend disconnection. The patch adds ability to know it. To know disconnection, add watcher to detect G_IO_HUP event. When G_IO_HUP event is detected, the disconnected socket will be read to

Re: [Qemu-devel] [PATCH 6/6] watchdog: Add new Virtual Watchdog action INJECT-NMI

2015-06-15 Thread Eric Blake
On 06/11/2015 09:53 AM, Christian Borntraeger wrote: From: Mao Chuan Li maoch...@linux.vnet.ibm.com This patch allows QEMU to inject a NMI into a guest when the watchdog expires. Signed-off-by: Mao Chuan Li maoch...@linux.vnet.ibm.com Reviewed-by: David Hildenbrand d...@linux.vnet.ibm.com

Re: [Qemu-devel] [PATCH v1 0/4] Add feature to start QEMU without vhost-user backend

2015-06-15 Thread Stefan Hajnoczi
On Fri, May 29, 2015 at 01:42:26PM +0900, Tetsuya Mukawa wrote: - Change user interface to be able to specify each feature by name. I disagree with this change, the uint64_t backend_features option was better because: The text options will just result in a very long command-line that is hard

[Qemu-devel] [PULL 5/6] linux-user: use __get_user and __put_user in cmsg conversions

2015-06-15 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org The target payloads in cmsg conversions may not have the alignment required by the host. Using the get_user and put_user functions is the easiest way to handle this and also do the byte-swapping we require. (Note that prior to this commit

[Qemu-devel] [PULL 2/6] linux-user: Use abi_ulong for TARGET_ELF_PAGESTART

2015-06-15 Thread riku . voipio
From: Yongbok Kim yongbok@imgtec.com TARGET_ELF_PAGESTART is required to use abi_ulong to correctly handle addresses for different target bits width. This patch fixes a problem when running a 64-bit user mode application on 32-bit host machines. Signed-off-by: Yongbok Kim

[Qemu-devel] [PULL 08/20] ossaudio: do not use global variables

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- audio/ossaudio.c | 110 ++- 1 file changed, 61 insertions(+), 49 deletions(-) diff --git

[Qemu-devel] [PULL 09/20] wavaudio: do not use global variables

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- audio/wavaudio.c | 37 + 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/audio/wavaudio.c

Re: [Qemu-devel] [SeaBIOS] qemu freeze, seabios release

2015-06-15 Thread Gerd Hoffmann
On Fr, 2015-06-12 at 16:10 -0400, Kevin O'Connor wrote: On Fri, Jun 12, 2015 at 09:00:19AM +0200, Gerd Hoffmann wrote: Hi, should be cherry-picked into stable please speak up now. So far my list is pretty short: Looked through the log. The leal instruction and ahci max-ports

Re: [Qemu-devel] [PATCH v1 0/4] Add feature to start QEMU without vhost-user backend

2015-06-15 Thread Stefan Hajnoczi
On Thu, Jun 11, 2015 at 10:56:06AM +0900, Tetsuya Mukawa wrote: On 2015/05/29 13:42, Tetsuya Mukawa wrote: Hi guys, Here are patches to add feature to start QEMU without vhost-user backend. Currently, if we want to use vhost-user backend, the backend must start before QEMU. Also, if

Re: [Qemu-devel] [PATCH target-arm v2 04/13] arm: Refactor get_phys_addr FSR return mechanism

2015-06-15 Thread Peter Maydell
On 12 June 2015 at 20:10, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Currently, the return code for get_phys_addr is overloaded for both success/fail and FSR value return. This doesn't handle the case where there is an error with a 0 FSR. This case exists in PMSAv7. So rework

[Qemu-devel] [PATCH 0/2] qemu-options: Minor doc improvements

2015-06-15 Thread Markus Armbruster
Markus Armbruster (2): qemu-options: Improve -global documentation qemu-options: Use @itemx where appropriate qemu-options.hx | 57 + 1 file changed, 29 insertions(+), 28 deletions(-) -- 1.9.3

Re: [Qemu-devel] [PATCH v3 2/2] vhost user: Add RARP injection for legacy guest

2015-06-15 Thread Thibaut Collet
If we use DRIVER_OK status bit to send the RARP by the backend I am afraid that some legacy guest are not supported. Moreover the vhost user backend is not aware of the change of the DRIVER_OK status bit. If this solution is chosen as event to send the RARP a message between QEMU and vhost user

Re: [Qemu-devel] [PATCH v4 1/4] hw/pci-bridge: create interrupt-less, hotplug-less bridge for PXB

2015-06-15 Thread Markus Armbruster
Laszlo Ersek ler...@redhat.com writes: OVMF downloads the ACPI linker/loader script from QEMU when the edk2 PCI Bus driver globally signals the firmware that PCI enumeration and resource allocation have completed. At this point QEMU regenerates the ACPI payload in an fw_cfg read callback, and

[Qemu-devel] [PULL 1/6] linux-user: Allocate thunk size dynamically

2015-06-15 Thread riku . voipio
From: Alexander Graf ag...@suse.de We store all struct types in an array of static size without ever checking whether we overrun it. Of course some day someone (like me in another, ancient ALSA enabling patch set) will run into the limit without realizing it. So let's make the allocation

[Qemu-devel] [PULL 3/6] linux-user: ioctl() command type is int

2015-06-15 Thread riku . voipio
From: Laurent Vivier laur...@vivier.eu When executing a 64bit target chroot on 64bit host, the ioctl() command can mismatch. It seems the previous commit doesn't solve the problem in my case: 9c6bf9c7 linux-user: Fix ioctl cmd type mismatch on 64-bit targets For example, a ppc64 chroot

[Qemu-devel] [PULL 18/20] dsoundaudio: remove primary buffer

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com Enabling this option just creates a playback buffer with the specified settings, and then ignores it. It's probably some outdated hack to set audio formats on windows. (The first created stream dictates all other streams settings, at least on some

[Qemu-devel] [PULL 19/20] alsaaudio: use trace events instead of verbose

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- audio/alsaaudio.c | 60 +-- trace-events | 12 +++ 2 files changed, 26

[Qemu-devel] [PULL 20/20] ossaudio: use trace events instead of debug config flag

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- audio/ossaudio.c | 25 - trace-events | 4 2 files changed, 8 insertions(+), 21 deletions(-) diff --git

[Qemu-devel] [PATCH 1/2] virtio-input: use fixed device config space size

2015-06-15 Thread Gerd Hoffmann
virtio-input doesn't support legacy, so config spice doesn't live in IO address space (on virtio-pci) and size is not something we have to worry about. There is a full page (in mmio bar) available anyway. Don't try to size it dynamically but simply use the full struct size (136 bytes)

Re: [Qemu-devel] [RFC PATCH v1 2/4] numa, pc-dimm: Store pc-dimm memory information in numa_info

2015-06-15 Thread Bharata B Rao
On Mon, Jun 15, 2015 at 11:17:59AM +0200, Igor Mammedov wrote: On Fri, 12 Jun 2015 14:30:26 +0530 Bharata B Rao bhar...@linux.vnet.ibm.com wrote: Start storing the (start_addr, size, nodeid) of the pc-dimm memory in numa_info so that this information can be used to lookup node by

Re: [Qemu-devel] [PULL 20/22] hw/arm/boot: arm_load_kernel implemented as a machine init done notifier

2015-06-15 Thread Eric Auger
Hi Peter, On 06/12/2015 08:04 PM, Peter Crosthwaite wrote: On Fri, Jun 12, 2015 at 3:04 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 12 June 2015 at 09:53, Eric Auger eric.au...@linaro.org wrote: On 06/12/2015 10:25 AM, Eric Auger wrote: I think it is because this is now delaying

Re: [Qemu-devel] [PATCH v1 2/4] vhost-user: Shutdown vhost-user connection when wrong messages are passed

2015-06-15 Thread Stefan Hajnoczi
On Fri, May 29, 2015 at 01:42:28PM +0900, Tetsuya Mukawa wrote: When wrong vhost-user message are passed, the connection should be shutdown. Signed-off-by: Tetsuya Mukawa muk...@igel.co.jp --- hw/virtio/vhost-user.c | 17 ++--- include/sysemu/char.h | 7 +++ qemu-char.c

Re: [Qemu-devel] [PATCH target-arm v2 00/13] ARM Cortex R5 Support

2015-06-15 Thread Peter Maydell
On 12 June 2015 at 20:10, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Hi Peter and all, This patch series adds ARM Cortex R5 processor support. The PMSAv7 MPU is implemented. Two R5s are added to the Xilinx ZynqMP SoC. Peter Crosthwaite (13): arm: Do not define TLBTR in PMSA

Re: [Qemu-devel] [PULL 00/25] Block layer core and image format patches

2015-06-15 Thread Peter Maydell
On 12 June 2015 at 17:23, Kevin Wolf kw...@redhat.com wrote: The following changes since commit 4cb618abc1818586c08011ff0a84a015787b1672: Merge remote-tracking branch 'remotes/lalrae/tags/mips-20150612' into staging (2015-06-12 12:49:40 +0100) are available in the git repository at:

[Qemu-devel] [PULL 14/20] MAINTAINERS: remove malc from audio

2015-06-15 Thread Gerd Hoffmann
email bounces, with a appearently permanent error: av1...@comtv.ru mail receiving disabled, rejecting Signed-off-by: Gerd Hoffmann kra...@redhat.com Reviewed-by: Gonglei arei.gong...@huawei.com --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index

[Qemu-devel] [PULL 15/20] audio: remove LOG_TO_MONITOR along with default_mon

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com Setting QEMU_AUDIO_LOG_TO_MONITOR=1 can crash qemu (if qemu tries to log to the monitor before it's being initialized), and also nothing else in qemu logs to the monitor. This log to monitor feature was the last thing that used the default_mon

[Qemu-devel] [PULL 12/20] coreaudio: do not use global variables where possible

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- audio/coreaudio.c | 43 --- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git

[Qemu-devel] [PULL 00/20] audio patch queue

2015-06-15 Thread Gerd Hoffmann
'remotes/stefanha/tags/net-pull-request' into staging (2015-06-12 15:39:05 +0100) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-audio-20150615-1 for you to fetch changes up to d95d7d802c33f6277c9fb967c14ae0cc99aeb072: ossaudio: use trace events instead of debug

[Qemu-devel] [PATCH 2/2] qemu-options: Use @itemx where appropriate

2015-06-15 Thread Markus Armbruster
Doesn't appear to make a difference, but let's use it consistently. Signed-off-by: Markus Armbruster arm...@redhat.com --- qemu-options.hx | 52 ++-- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx

Re: [Qemu-devel] [PATCH 03/11] vl: Use error_report() for --display errors

2015-06-15 Thread Eric Blake
On 06/13/2015 08:20 AM, Markus Armbruster wrote: Results in nicer error messages. Before this patch: Invalid GTK option string: gtk,lirum-larum After: qemu-system-x86_64: -display gtk,lirum-larum: Invalid GTK option string Of course, the thing ought to use QemuOpts instead of

Re: [Qemu-devel] Assigning an eth port to a guest VM

2015-06-15 Thread Eric Auger
Hi Yehuda, On 06/15/2015 01:01 PM, Yehuda Yitschak wrote: Cc: Eric Auger -Original Message- From: Yehuda Yitschak Sent: Monday, June 15, 2015 9:35 To: qemu-devel@nongnu.org Cc: Yuval Caduri; Shadi Ammouri Subject: Assigning an eth port to a guest VM Hello I would to ask your

Re: [Qemu-devel] [PATCH v1 4/4] vhost-user: Add new option to specify vhost-user backend features

2015-06-15 Thread Stefan Hajnoczi
On Fri, May 29, 2015 at 01:42:30PM +0900, Tetsuya Mukawa wrote: diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 3af6faf..7fbb306 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -366,6 +366,17 @@ static int peer_has_ufo(VirtIONet *n) return n-has_ufo; }

[Qemu-devel] [PULL 0/6] linux-user patches for 2.4 softfreeze

2015-06-15 Thread riku . voipio
/people/riku.voipio/qemu.git tags/pull-linux-user-20150615 for you to fetch changes up to d2897da1f1e97d684f80ff62d473c31b79bc643a: linux-user: fix the breakpoint inheritance in spawned threads (2015-06-15 11:36:59 +0300) linux

[Qemu-devel] [PULL 04/20] only enable dsound in case the header file is present

2015-06-15 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- configure | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configure b/configure index ccf8dc7..222694f 100755 --- a/configure +++ b/configure @@ -435,6 +435,14 @@ EOF compile_object } +check_include() {

[Qemu-devel] [PULL 4/6] linux-user: Fix length handling in host_to_target_cmsg

2015-06-15 Thread riku . voipio
From: Peter Maydell peter.mayd...@linaro.org The previous code for handling payload length when converting cmsg structures from host to target had a number of problems: * we required the msg-msg_controllen to declare the buffer to have enough space for final trailing padding (we were

[Qemu-devel] [PULL 02/20] audio: remove fmod backend

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Kővágó, Zoltán dirty.ice...@gmail.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- audio/Makefile.objs | 2 - audio/audio_int.h | 1 - audio/fmodaudio.c | 685 configure

Re: [Qemu-devel] RFC Multi-threaded TCG design document

2015-06-15 Thread alvise rigo
Hi Alex, Let me just add one comment. On Fri, Jun 12, 2015 at 6:37 PM, Alex Bennée alex.ben...@linaro.org wrote: Hi, One thing that Peter has been asking for is a design document for the way we are going to approach multi-threaded TCG emulation. I started with the information that was

[Qemu-devel] [PATCH] throttle: Fix typo in the documentation of block_set_io_throttle

2015-06-15 Thread Alberto Garcia
Signed-off-by: Alberto Garcia be...@igalia.com --- qapi/block-core.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/block-core.json b/qapi/block-core.json index afa9d3d..793a01e 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1083,7 +1083,7 @@ # #

Re: [Qemu-devel] [BUGFIX][PATCH v7 1/9] vmport: The io memory region needs to be at least a size of 4

2015-06-15 Thread Don Slutz
On 06/12/15 18:38, Eric Blake wrote: On 06/12/2015 08:05 AM, Don Slutz wrote: Before: commit c3c1bb99d1c11978d9ce94d1bdcf0705378c1459 Author: Peter Crosthwaite peter.crosthwa...@xilinx.com Date: Mon Mar 16 22:35:54 2015 -0700 exec: Respect as_tranlsate_internal length clamp it did

  1   2   3   4   >