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

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán Signed-off-by: Kővágó, Zoltán Signed-off-by: Gerd Hoffmann --- audio/ossaudio.c | 110 ++- 1 file changed, 61 insertions(+), 49 deletions(-) diff --git a/audio/ossaudio.c b/audio/ossaudio.c index 27c6bc6..bdc4b76 100644

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

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán Signed-off-by: Kővágó, Zoltán Signed-off-by: Gerd Hoffmann --- audio/wavaudio.c | 37 + 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/audio/wavaudio.c b/audio/wavaudio.c index 09083da..c586020 100644 --- a/audio/wavaudi

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

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán Signed-off-by: Kővágó, Zoltán Signed-off-by: Gerd Hoffmann --- audio/Makefile.objs | 2 - audio/audio_int.h | 1 - audio/fmodaudio.c | 685 configure | 27 +-- 4 files changed, 2 insertions(+), 713 del

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

2015-06-15 Thread riku . voipio
From: Peter Maydell 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 checking against CMSG_SPACE),

[Qemu-devel] [PULL 06/20] paaudio: do not use global variables

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán Signed-off-by: Kővágó, Zoltán Signed-off-by: Gerd Hoffmann --- audio/paaudio.c | 98 ++--- 1 file changed, 52 insertions(+), 46 deletions(-) diff --git a/audio/paaudio.c b/audio/paaudio.c index bdf6cd5..35e8887 100644 --

[Qemu-devel] [PULL 03/20] audio: remove winwave audio driver

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán DirectSound should be a superior choice on Windows. Signed-off-by: Kővágó, Zoltán Signed-off-by: Gerd Hoffmann --- audio/Makefile.objs | 1 - audio/audio_int.h| 1 - audio/winwaveaudio.c | 717 --- configure

[Qemu-devel] [PULL 05/20] audio: expose drv_opaque to init_out and init_in

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán Currently the opaque pointer returned by audio_driver's init is only exposed to the driver's fini, but not to audio_pcm_ops. This way if someone wants to share a variable with the driver and the pcm, he must use global variables. This patch fixes it by adding a third paramete

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

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

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

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

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán 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 Signed-off-by: Gerd Hoffmann --- audio/audio.c | 12 audio/audio_template.h | 41

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

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán 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 the case with some old Wi

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

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

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán 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 Windows versions). Setting D

[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 Signed-off-by: Kővágó, Zoltán Signed-off-by: Gerd Hoffmann --- audio/ossaudio.c | 25 - trace-events | 4 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/audio/ossaudio.c b/audio/ossaudio.c index bdc4b76..11e76a1 100644 ---

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

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán Signed-off-by: Kővágó, Zoltán Signed-off-by: Gerd Hoffmann --- audio/alsaaudio.c | 60 +-- trace-events | 12 +++ 2 files changed, 26 insertions(+), 46 deletions(-) diff --git a/audio/alsaaudio.c b/audio/als

[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 --- qemu-options.hx | 52 ++-- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index b7afec5..d32

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

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán Signed-off-by: Kővágó, Zoltán Signed-off-by: Gerd Hoffmann --- audio/dsound_template.h | 18 audio/dsoundaudio.c | 106 2 files changed, 74 insertions(+), 50 deletions(-) diff --git a/audio/dsound_template.h b

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

2015-06-15 Thread Gerd Hoffmann
From: Kővágó, Zoltán Signed-off-by: Kővágó, Zoltán Signed-off-by: Gerd Hoffmann --- audio/alsaaudio.c | 160 +- 1 file changed, 87 insertions(+), 73 deletions(-) diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c index 5a5bb14..4bcf58f 10064

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

2015-06-15 Thread Alex Bennée
Mark Burton 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 trees. > > Cheers > Mark.

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 > > 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 computes i

[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 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 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 get_phys_addr and friends to

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

2015-06-15 Thread Michael S. Tsirkin
On Mon, Jun 15, 2015 at 02:12:40PM +0200, Thibaut Collet wrote: > 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. >

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 in

[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) uncondition

[Qemu-devel] [PATCH 2/2] virtio-input: evdev passthrough

2015-06-15 Thread Gerd Hoffmann
This allows to assign host input devices to the guest: qemu -device virtio-input-host-pci,evdev=/dev/input/event The guest gets exclusive access to the input device, so be careful with assigning the keyboard if you have only one connected to your machine. Signed-off-by: Gerd Hoffmann --- hw/in

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 ah

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 bac

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

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 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 captured on the wiki an

[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 --- 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 @@ # # I/O limits can be

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

2015-06-15 Thread Yehuda Yitschak
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 advice on how to assign a semi-virtualized Etherne

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

2015-06-15 Thread Yehuda Yitschak
Hello I would to ask your advice on how to assign a semi-virtualized Ethernet port to a guest VM The eth port's HW partially supports virtualization since the data path MMIO registers (which controls rx/tx operation) are duplicated per VM. So for the run-time operation the guest can directly a

Re: [Qemu-devel] [PATCH 1/2] kvm/x86: Hyper-V based guest crash data handling

2015-06-15 Thread Andrey Smetanin
Hi Peter, thank you for comments. See answers below. On Fri, 2015-06-12 at 16:03 -0700, Peter Hornyack wrote: > Hi Denis, Andrey, I have a few comments and questions. (re-sending in > plain-text mode, apologies for sending twice.) > > On Thu, Jun 11, 2015 at 6:18 AM, Denis V. Lunev wrote: > > Fro

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

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 > wrote: >> On 12 June 2015 at 09:53, Eric Auger wrote: >>> On 06/12/2015 10:25 AM, Eric Auger wrote: > I think it is because this is now delaying > arm_load_kernel_notify call un

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

2015-06-15 Thread Liviu Ionescu
> On 15 Jun 2015, at 13:48, Liviu Ionescu wrote: > > ... One natural solution would be to add an explicit constructor, like in > C++. if this solution is considered too complicated, it might also be possible to arrange for the constructor data to be passed to the existing .instance_init cal

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 > --- > hw/virtio/vhost-user.c | 17 ++--- > include/sysemu/char.h | 7 +++ > qemu-char.c

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 > --- > net/vhost-user.c | 6 ++ > 1 file changed, 6 insertions(+) Reviewed-by: Stefan Hajnoczi

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

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 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 single config as add

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 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 systems > arm: Don't add

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 >> Date: Mon Mar 16 22:35:54 2015 -0700 >> >> exec: Respect as_tranlsate_internal length clamp >> >> it did not matter

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 > > This patch allows QEMU to inject a NMI into a guest when the > watchdog expires. > > Signed-off-by: Mao Chuan Li > Reviewed-by: David Hildenbrand > CC: Eric Blake > CC: Markus Armbruster > Signed-off-by: Christian

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; >

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 > --- > net/vhost-user.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/net/vhost-user

Re: [Qemu-devel] [PATCH 04/11] qerror: Eliminate QERR_DEVICE_NOT_FOUND

2015-06-15 Thread Eric Blake
On 06/13/2015 08:20 AM, Markus Armbruster wrote: > Error classes other than ERROR_CLASS_GENERIC_ERROR should not be used > in new code. Hiding them in QERR_ macros makes new uses hard to spot. > Fortunately, there's just one such macro left. Eliminate it with this > coccinelle semantic patch: >

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 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 from the CP interface us

Re: [Qemu-devel] [PATCH 2/8] qcow2: add dirty-bitmaps feature

2015-06-15 Thread Vladimir Sementsov-Ogievskiy
On 12.06.2015 02:04, John Snow wrote: On 06/08/2015 11:21 AM, Vladimir Sementsov-Ogievskiy wrote: From: Vladimir Sementsov-Ogievskiy Adds dirty-bitmaps feature to qcow2 format as specified in docs/specs/qcow2.txt Signed-off-by: Vladimir Sementsov-Ogievskiy Signed-off-by: Vladimir Sementsov-

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

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 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 this is when

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 > > QEM

[Qemu-devel] [PATCH] vhost-user: part of virtio

2015-06-15 Thread Michael S. Tsirkin
vhost user is related to virtio, add it to the relevant entry. Signed-off-by: Michael S. Tsirkin --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0463696..7a13d68 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -694,6 +694,7 @@ virtio M: Michael

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

2015-06-15 Thread Michael S. Tsirkin
On Mon, Jun 15, 2015 at 03:12:28PM +0100, Stefan Hajnoczi wrote: > 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

Re: [Qemu-devel] [PATCH v4 2/4] hw/core: rebase sysbus_get_fw_dev_path() to g_strdup_printf()

2015-06-15 Thread Markus Armbruster
Laszlo Ersek writes: > Cc: Markus Armbruster > Cc: Marcel Apfelbaum > Cc: Michael S. Tsirkin > Signed-off-by: Laszlo Ersek > --- > > Notes: > v4: > - unchanged > > v3: > - new in v3 > > hw/core/sysbus.c | 16 ++-- > 1 file changed, 6 insertions(+), 10 deletio

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

2015-06-15 Thread Alex Bennée
alvise rigo writes: > Hi Alex, > > Let me just add one comment. > >> >> Memory Barriers >> --- >> >> Barriers (sometimes known as fences) provide a mechanism for software >> to enforce a particular ordering of memory operations from the point >> of view of external observers (e.g. a

Re: [Qemu-devel] [PATCH target-arm v2 11/13] target-arm: Add support for Cortex-R5

2015-06-15 Thread Peter Maydell
On 12 June 2015 at 20:10, Peter Crosthwaite wrote: > Introduce a CPU model for the Cortex R5 processor. ARMv7 with MPU, > and both thumb and ARM div instructions. Reviewed-by: Peter Maydell (checked all the ID values against the TRM.) thanks -- PMM

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

2015-06-15 Thread Alex Bennée
Mark Burton 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… Well I've added some pointer for now. Reading the wiki reminded me of the informal phone conference.

Re: [Qemu-devel] [PATCH v4 3/4] hw/core: explicit OFW unit address callback for SysBusDeviceClass

2015-06-15 Thread Markus Armbruster
Laszlo Ersek writes: > The sysbus_get_fw_dev_path() function formats OpenFirmware device path > nodes ("driver-name@unit-address") for sysbus devices. The first choice > for "unit-address" is the base address of the device's first MMIO region. > The second choice is its first IO port. > > However

Re: [Qemu-devel] PXB changes for QEMU, and extra root buses for OVMF, round 2

2015-06-15 Thread Markus Armbruster
Laszlo Ersek writes: > On 06/14/15 12:09, Marcel Apfelbaum wrote: [...] >> Thank you Laszlo for your effort to get this done so quickly. >> Now let's wait for Michael/Markus opinion. > > Yes, let's. :) I'm fine with PATCH 2+3. Haven't looked closely at the other two. Anything else you need from

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

2015-06-15 Thread Laszlo Ersek
On 06/15/15 16:10, Markus Armbruster wrote: > Laszlo Ersek 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 payl

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

2015-06-15 Thread Kevin O'Connor
On Mon, Jun 15, 2015 at 03:01:54PM +0200, Gerd Hoffmann wrote: > 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

Re: [Qemu-devel] [PATCH v4 2/4] hw/core: rebase sysbus_get_fw_dev_path() to g_strdup_printf()

2015-06-15 Thread Laszlo Ersek
On 06/15/15 16:23, Markus Armbruster wrote: > Laszlo Ersek writes: > >> Cc: Markus Armbruster >> Cc: Marcel Apfelbaum >> Cc: Michael S. Tsirkin >> Signed-off-by: Laszlo Ersek >> --- >> >> Notes: >> v4: >> - unchanged >> >> v3: >> - new in v3 >> >> hw/core/sysbus.c | 16 +

Re: [Qemu-devel] [PATCH 2/8] qcow2: add dirty-bitmaps feature

2015-06-15 Thread Stefan Hajnoczi
On Fri, Jun 12, 2015 at 03:02:33PM -0400, John Snow wrote: > > > On 06/10/2015 10:30 AM, Stefan Hajnoczi wrote: > > On Mon, Jun 08, 2015 at 06:21:20PM +0300, Vladimir Sementsov-Ogievskiy > > wrote: > > > > I noticed a corner case, it's probably not a problem in practice: > > > > Since the dirt

Re: [Qemu-devel] [PATCH target-arm v2 10/13] target-arm: Implement PMSAv7 MPU

2015-06-15 Thread Peter Maydell
On 12 June 2015 at 20:10, Peter Crosthwaite wrote: > Unified MPU only. Uses ARM architecture major revision to switch > between PMSAv5 and v7 when ARM_FEATURE_MPU is set. PMSA v6 remains > unsupported and is asserted against. > > Signed-off-by: Peter Crosthwaite > --- > changed since v1 (PMM revi

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

2015-06-15 Thread Peter Maydell
0611-1' > into staging (2015-06-11 12:12:58 +0100) > > are available in the git repository at: > > git://github.com/borntraeger/qemu.git tags/s390x-20150615 > > for you to fetch changes up to 8369e339d24f365750da456588e742674c153437: > >

Re: [Qemu-devel] QEMU ARM SMP: IPI delivery delayed until next main loop event // how to improve IPI latency?

2015-06-15 Thread Alex Züpke
Hi Peter, Am 12.06.2015 um 20:03 schrieb Peter Maydell: > On 12 June 2015 at 17:38, Alex Züpke wrote: >> Hi, >> >> I'm benchmarking some IPI (== inter-processor-interrupt) synchronization >> stuff of my custom kernel on QEMU ARM (qemu-system-arm -M vexpress-a15 -smp >> 2) and ran into the follo

Re: [Qemu-devel] [PATCH v4 3/4] hw/core: explicit OFW unit address callback for SysBusDeviceClass

2015-06-15 Thread Laszlo Ersek
On 06/15/15 16:33, Markus Armbruster wrote: > Laszlo Ersek writes: > >> The sysbus_get_fw_dev_path() function formats OpenFirmware device path >> nodes ("driver-name@unit-address") for sysbus devices. The first choice >> for "unit-address" is the base address of the device's first MMIO region. >>

Re: [Qemu-devel] PXB changes for QEMU, and extra root buses for OVMF, round 2

2015-06-15 Thread Laszlo Ersek
On 06/15/15 16:35, Markus Armbruster wrote: > Laszlo Ersek writes: > >> On 06/14/15 12:09, Marcel Apfelbaum wrote: > [...] >>> Thank you Laszlo for your effort to get this done so quickly. >>> Now let's wait for Michael/Markus opinion. >> >> Yes, let's. :) > > I'm fine with PATCH 2+3. Haven't l

Re: [Qemu-devel] [RFC 4/9] block: keep bitmap if incremental backup job is cancelled

2015-06-15 Thread Stefan Hajnoczi
On Fri, Jun 12, 2015 at 06:39:19PM -0400, John Snow wrote: > > > On 06/12/2015 06:09 AM, Stefan Hajnoczi wrote: > > Reclaim the dirty bitmap if an incremental backup block job is > > cancelled. The ret variable may be 0 when the job is cancelled so it's > > not enough to check ret < 0. > > > >

Re: [Qemu-devel] QEMU ARM SMP: IPI delivery delayed until next main loop event // how to improve IPI latency?

2015-06-15 Thread Peter Maydell
On 15 June 2015 at 15:44, Alex Züpke wrote: > Am 12.06.2015 um 20:03 schrieb Peter Maydell: >> Probably the best approach would be to have something in >> arm_cpu_set_irq() which says "if we are CPU X and we've >> just caused an interrupt to be set for CPU Y, then we >> should ourselves yield back

[Qemu-devel] [PATCH] block: keep bitmap if incremental backup job is cancelled

2015-06-15 Thread Stefan Hajnoczi
Reclaim the dirty bitmap if an incremental backup block job is cancelled. The ret variable may be 0 when the job is cancelled so it's not enough to check ret < 0. Reviewed-by: John Snow Signed-off-by: Stefan Hajnoczi --- block/backup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

Re: [Qemu-devel] QEMU ARM SMP: IPI delivery delayed until next main loop event // how to improve IPI latency?

2015-06-15 Thread Peter Maydell
On 12 June 2015 at 17:38, Alex Züpke wrote: > Hi, > > I'm benchmarking some IPI (== inter-processor-interrupt) synchronization > stuff of my custom kernel on QEMU ARM (qemu-system-arm -M vexpress-a15 -smp > 2) and ran into the following problem: pending IPIs are delayed until the > QEMU main lo

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

2015-06-15 Thread Eric Blake
On 06/15/2015 06:35 AM, Markus Armbruster wrote: > Markus Armbruster (2): > qemu-options: Improve -global documentation > qemu-options: Use @itemx where appropriate Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org

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

2015-06-15 Thread Eric Blake
On 06/15/2015 07:12 AM, Alberto Garcia wrote: > Signed-off-by: Alberto Garcia > --- > qapi/block-core.json | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Eric Blake > > diff --git a/qapi/block-core.json b/qapi/block-core.json > index afa9d3d..793a01e 100644 > --- a/qapi/

Re: [Qemu-devel] QEMU ARM SMP: IPI delivery delayed until next main loop event // how to improve IPI latency?

2015-06-15 Thread Alex Züpke
Am 15.06.2015 um 16:51 schrieb Peter Maydell: > On 15 June 2015 at 15:44, Alex Züpke wrote: >> Am 12.06.2015 um 20:03 schrieb Peter Maydell: >>> Probably the best approach would be to have something in >>> arm_cpu_set_irq() which says "if we are CPU X and we've >>> just caused an interrupt to be s

Re: [Qemu-devel] [PATCH 07/11] qmp: Wean off qerror_report()

2015-06-15 Thread Stefan Hajnoczi
On Sat, Jun 13, 2015 at 04:20:54PM +0200, Markus Armbruster wrote: > The traditional QMP command handler interface > > int qmp_FOO(Monitor *mon, const QDict *params, QObject **ret_data); > > doesn't provide for returning an Error object. Instead, the handler > is expected to stash it in the

Re: [Qemu-devel] QEMU ARM SMP: IPI delivery delayed until next main loop event // how to improve IPI latency?

2015-06-15 Thread Alex Züpke
Am 15.06.2015 um 17:04 schrieb Peter Maydell: > On 12 June 2015 at 17:38, Alex Züpke wrote: >> Hi, >> >> I'm benchmarking some IPI (== inter-processor-interrupt) synchronization >> stuff of my custom kernel on QEMU ARM (qemu-system-arm -M vexpress-a15 -smp >> 2) and ran into the following proble

Re: [Qemu-devel] [PATCH 09/11] qerror: Move #include out of qerror.h

2015-06-15 Thread Stefan Hajnoczi
On Sat, Jun 13, 2015 at 04:20:56PM +0200, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > audio/spiceaudio.c | 1 + > audio/wavcapture.c | 1 + > block.c | 1 + > block/curl.c| 1 + > block/dmg.c | 1 + > bl

Re: [Qemu-devel] [PATCH 11/11] Include monitor/monitor.h exactly where needed

2015-06-15 Thread Stefan Hajnoczi
On Sat, Jun 13, 2015 at 04:20:58PM +0200, Markus Armbruster wrote: > In particular, don't include it into headers. > > Signed-off-by: Markus Armbruster > --- > balloon.c | 2 +- > blockdev-nbd.c| 1 - > hw/core/platform-bus.c| 1 - > hw/display/qxl.c

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 Eric Blake
On 06/15/2015 07:53 AM, Don Slutz wrote: > On 06/12/15 18:38, Eric Blake wrote: >>> >>> +/* Only support 1 address */ >>> +if (addr) { >>> +return ~0U; >>> +} >> >> Different answer on 32-bit platforms (there, ~0U is 0x, which >> then 0-extends to uint64_t rather than

Re: [Qemu-devel] [PATCH 10/11] Include qapi/qmp/qerror.h exactly where needed

2015-06-15 Thread Stefan Hajnoczi
On Sat, Jun 13, 2015 at 04:20:57PM +0200, Markus Armbruster wrote: > In particular, don't include it into headers. > > Signed-off-by: Markus Armbruster > --- > backends/hostmem.c | 1 - > balloon.c| 1 + > block.c | 1 + > block/backup.c

Re: [Qemu-devel] [PATCH 05/11] qerror: Clean up QERR_ macros to expand into a single string

2015-06-15 Thread Stefan Hajnoczi
On Sat, Jun 13, 2015 at 04:20:52PM +0200, Markus Armbruster wrote: > These macros expand into error class enumeration constant, comma, > string. Unclean. Has been that way since commit 13f59ae. > > The error class is always ERROR_CLASS_GENERIC_ERROR since the previous > commit. > > Clean up as

Re: [Qemu-devel] [PATCH 04/11] qerror: Eliminate QERR_DEVICE_NOT_FOUND

2015-06-15 Thread Stefan Hajnoczi
On Sat, Jun 13, 2015 at 04:20:51PM +0200, Markus Armbruster wrote: > Error classes other than ERROR_CLASS_GENERIC_ERROR should not be used > in new code. Hiding them in QERR_ macros makes new uses hard to spot. > Fortunately, there's just one such macro left. Eliminate it with this > coccinelle s

[Qemu-devel] [PATCH V2 0/7] Xilinx DisplayPort.

2015-06-15 Thread fred . konrad
From: KONRAD Frederic This is the second version of this patch-set of the implementation of the Xilinx DisplayPort and DPDMA. This second version took a lot of coding style fix and the blending is fixed as well. See changes at the bottom. First patch introduces an AUX bus needed by the DP to re

[Qemu-devel] [PATCH V2 3/7] introduce dpcd module.

2015-06-15 Thread fred . konrad
From: KONRAD Frederic This introduces a DPCD modules. It wires on a aux-bus and can be accessed by driver to get lane-speed, etc. Signed-off-by: KONRAD Frederic --- hw/display/Makefile.objs | 1 + hw/display/dpcd.c| 151 +++ hw/display/dpcd

[Qemu-devel] [PATCH V2 7/7] arm: xlnx-zynqmp: Add DisplayPort and DPDMA.

2015-06-15 Thread fred . konrad
From: KONRAD Frederic This adds the DP and the DPDMA to the Zynq MP. Signed-off-by: KONRAD Frederic --- hw/arm/xlnx-zynqmp.c | 20 include/hw/arm/xlnx-zynqmp.h | 4 2 files changed, 24 insertions(+) diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c in

[Qemu-devel] [PATCH V2 4/7] hw/i2c-ddc.c: Implement DDC I2C slave

2015-06-15 Thread fred . konrad
From: Peter Maydell Implement an I2C slave which implements DDC and returns the EDID data for an attached monitor. Signed-off-by: Peter Maydell - Rebased on the current master. - Modified for QOM. Signed-off-by: KONRAD Frederic --- hw/i2c/Makefile.objs | 2 +- hw/i2c/i2c-ddc.c | 2

[Qemu-devel] [PATCH V2 5/7] Introduce xilinx dpdma.

2015-06-15 Thread fred . konrad
From: KONRAD Frederic This is the implementation of the DPDMA. Signed-off-by: KONRAD Frederic --- hw/dma/Makefile.objs | 1 + hw/dma/xilinx_dpdma.c | 779 ++ hw/dma/xilinx_dpdma.h | 71 + 3 files changed, 851 insertions(+) create mode 10

[Qemu-devel] [PATCH V2 2/7] i2c: implement broadcast write.

2015-06-15 Thread fred . konrad
From: KONRAD Frederic This does a write to every slaves when the I2C bus get a write to address 0. Signed-off-by: KONRAD Frederic --- hw/i2c/core.c | 46 +- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/hw/i2c/core.c b/hw/i2c/core.c i

[Qemu-devel] [PATCH V2 1/7] Introduce AUX bus.

2015-06-15 Thread fred . konrad
From: KONRAD Frederic This introduces a new bus: aux-bus. It contains an address space for aux slaves devices and a bridge to an I2C bus for I2C through AUX transactions. Signed-off-by: KONRAD Frederic --- hw/misc/Makefile.objs | 1 + hw/misc/aux.c | 411

Re: [Qemu-devel] QEMU ARM SMP: IPI delivery delayed until next main loop event // how to improve IPI latency?

2015-06-15 Thread Peter Maydell
On 15 June 2015 at 16:07, Alex Züpke wrote: > Am 15.06.2015 um 17:04 schrieb Peter Maydell: >> On 12 June 2015 at 17:38, Alex Züpke wrote: >>> Hi, >>> >>> I'm benchmarking some IPI (== inter-processor-interrupt) synchronization >>> stuff of my custom kernel on QEMU ARM (qemu-system-arm -M vexpre

[Qemu-devel] [PATCH V2 6/7] Introduce xilinx dp.

2015-06-15 Thread fred . konrad
From: KONRAD Frederic This is the implementation of the DisplayPort. It has an aux-bus to access dpcd and edid needed for the driver to complete. Graphic plane is connected to the channel 3. Video plane is connected to the channel 0. Audio stream are connected to the channels 4 and 5. Signed-o

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

2015-06-15 Thread Peter Maydell
re available in the git repository at: > > git://git.linaro.org/people/riku.voipio/qemu.git > tags/pull-linux-user-20150615 > > for you to fetch changes up to d2897da1f1e97d684f80ff62d473c31b79bc643a: > > linux-user: fix the breakpoint inher

[Qemu-devel] Greate difference of disk I/O performance for guest on Qemu-2.30 of CentOS.

2015-06-15 Thread cauchy-love
Hi all, I am running a embedded OS on Qemu-2.3.0. However I found that the I/O performance was quite different for different CentOS release (CentOS 6.5 and CentOS 7.0). The CentOS 6.5 uses linux-2.6.32 while the CentOS 7.0 uses linux-3.10.0. The I/O throughput (write) of the former (CentOS 6.

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

2015-06-15 Thread Laurent Vivier
quest' into >> staging (2015-06-12 15:39:05 +0100) >> >> are available in the git repository at: >> >> git://git.linaro.org/people/riku.voipio/qemu.git >> tags/pull-linux-user-20150615 >> >> for you to fetch changes up to d2897da1f1e97d684f80

Re: [Qemu-devel] QEMU ARM SMP: IPI delivery delayed until next main loop event // how to improve IPI latency?

2015-06-15 Thread Alex Züpke
Am 15.06.2015 um 17:18 schrieb Peter Maydell: > On 15 June 2015 at 16:07, Alex Züpke wrote: >> Am 15.06.2015 um 17:04 schrieb Peter Maydell: >>> On 12 June 2015 at 17:38, Alex Züpke wrote: Hi, I'm benchmarking some IPI (== inter-processor-interrupt) synchronization stuff of m

[Qemu-devel] [PATCH] throttle: Check current timers before updating any_timer_armed[]

2015-06-15 Thread Alberto Garcia
Calling throttle_group_config() cancels all timers from a particular BlockDriverState, so any_timer_armed[] should be updated accordingly. However, with the current code it may happen that a timer is armed in a different BlockDriverState from the same group, so any_timer_armed[] would be set to fa

Re: [Qemu-devel] [PATCH] hw/arm/boot: fix rom_reset notifier registration order

2015-06-15 Thread Peter Maydell
On 12 June 2015 at 18:56, Peter Crosthwaite wrote: > On Fri, Jun 12, 2015 at 5:19 AM, Eric Auger wrote: >> commit ac9d32e39664e060cd1b538ff190980d57ad69e4 had the consequence to >> register the do_cpu_reset after the rom_reset one. Hence they get >> executed in the wrong order. This commit restor

Re: [Qemu-devel] [PATCH v3 2/2] hw/arm/virt-acpi-build: Add SPCR table

2015-06-15 Thread Peter Maydell
On 10 June 2015 at 10:52, Andrew Jones wrote: > Signed-off-by: Andrew Jones > Tested-by: Shannon Zhao > --- > hw/arm/virt-acpi-build.c | 43 ++- > 1 file changed, 42 insertions(+), 1 deletion(-) > > diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi

<    1   2   3   4   >