[Qemu-devel] [PULL 07/19] linux-user: support SO_PASSSEC setsockopt option

2014-06-23 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org Translate the SO_PASSSEC option to setsockopt to the host value perform the syscall as expected, allowing use of the option by target programs. Signed-off-by: Paul Burton p...@archlinuxmips.org Signed-off-by: Riku Voipio riku.voi...@linaro.org ---

[Qemu-devel] [PULL 03/19] linux-user: added fake open() for /proc/self/cmdline

2014-06-23 Thread riku . voipio
From: Wim Vander Schelden w...@fixnum.org Signed-off-by: Wim Vander Schelden w...@fixnum.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/linux-user/syscall.c

[Qemu-devel] machines and versions - why so many?

2014-06-23 Thread Alexey Kardashevskiy
Hi! I have been hearing recently that we (server PPC) should have more that just one pseries machine in QEMU because this is what everybody else does :) My current understanding is that multiple machines (like pc-i440fx-1.4..2.1, and many others) are needed: 1) for the -nodefaults case when a

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

2014-06-23 Thread Greg Bellows
Reviewed-by: Greg Bellows greg.bell...@linaro.org On 17 June 2014 03:45, Edgar E. Iglesias edgar.igles...@gmail.com wrote: From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 16 +++-

[Qemu-devel] [PULL 04/19] linux-user: translate the result of getsockopt SO_TYPE

2014-06-23 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org QEMU previously passed the result of the host syscall directly to the target program. This is a problem if the host target have different representations of socket types, as is the case when running a MIPS target program on an x86 host. Introduce a

Re: [Qemu-devel] [PATCH v6 for 2.1 00/10] Modify block jobs to use node-names

2014-06-23 Thread Benoît Canet
The Monday 23 Jun 2014 à 21:08:09 (+0800), Stefan Hajnoczi wrote : On Thu, Jun 19, 2014 at 12:26:00PM -0400, Jeff Cody wrote: On Thu, Jun 19, 2014 at 05:17:16PM +0800, Stefan Hajnoczi wrote: On Tue, Jun 17, 2014 at 05:53:48PM -0400, Jeff Cody wrote: Let's discuss this topic in a

Re: [Qemu-devel] [PATCH v7 3/4] s390x: Migrate to new NMI interface

2014-06-23 Thread Alexey Kardashevskiy
On 06/16/2014 06:37 PM, Alexander Graf wrote: On 16.06.14 10:33, Alexey Kardashevskiy wrote: On 06/16/2014 05:16 PM, Cornelia Huck wrote: On Sat, 14 Jun 2014 12:41:50 +1000 Alexey Kardashevskiy a...@ozlabs.ru wrote: On 06/13/2014 04:00 PM, Cornelia Huck wrote: On Fri, 13 Jun 2014 13:36:58

Re: [Qemu-devel] [PATCH 1/2] docs: update ivshmem device spec

2014-06-23 Thread Claudio Fontana
Hi, we were reading through this quickly today, and these are some of the questions that we think can came up when reading this. Answers to some of these questions we think we have figured out, but I think it's important to put this information into the documentation. I will quote the file in

Re: [Qemu-devel] [PATCH] bsd-user: Implement strace support for getcwd syscall

2014-06-23 Thread Sean Bruno
On Thu, 2014-06-19 at 18:30 -0700, Sean Bruno wrote: On Mon, 2014-06-16 at 08:05 -0700, Sean Bruno wrote: Signed-off-by: Sean Bruno sbr...@freebsd.org --- bsd-user/freebsd/strace.list | 1 + 1 file changed, 1 insertion(+) diff --git a/bsd-user/freebsd/strace.list

[Qemu-devel] [PULL 19/19] linux-user: support the SIOCGIFINDEX ioctl

2014-06-23 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org Add a definition of the SIOCGIFINDEX ioctl, allowing its use by target programs. Signed-off-by: Paul Burton p...@archlinuxmips.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/ioctls.h | 1 + linux-user/syscall_defs.h | 1 + 2

Re: [Qemu-devel] [PATCH 0/4] bsd-user: Update Queue

2014-06-23 Thread Sean Bruno
On Sat, 2014-06-21 at 09:39 -0700, Sean Bruno wrote: On Thu, 2014-06-19 at 17:19 -0700, Sean Bruno wrote: This patchset brings us a couple of steps closer to the FreeBSD Development tree, Stacey Son's bsd-user branch and qemu-devel port maintained out of tree. These patches are

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

2014-06-23 Thread Greg Bellows
Reviewed-by: Greg Bellows greg.bell...@linaro.org On 17 June 2014 03:45, Edgar E. Iglesias edgar.igles...@gmail.com wrote: From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h | 1 +

[Qemu-devel] [PATCH] block/nfs: add knob to set readahead

2014-06-23 Thread Peter Lieven
upcoming libnfs will feature internal readahead support. Add a knob to pass the optional readahead value as a URL parameter. This patch fixes also the incorrect usage of strncmp. Signed-off-by: Peter Lieven p...@kamp.de --- block/nfs.c | 10 +++--- 1 file changed, 7 insertions(+), 3

[Qemu-devel] [PULL 01/19] Add support for MAP_NORESERVE mmap flag.

2014-06-23 Thread riku . voipio
From: Christophe Lyon christophe.l...@linaro.org mmap_flags_tbl contains a list of mmap flags, and how to map them to the target. This patch adds MAP_NORESERVE, which was missing to the list. Signed-off-by: Christophe Lyon christophe.l...@linaro.org Reviewed-by: Peter Maydell

[Qemu-devel] [PATCH v3 3/3] hw/pcie: better hotplug/hotunplug support

2014-06-23 Thread Marcel Apfelbaum
The current code is broken: it does surprise removal which crashes guests. Reimplemented the steps: - Hotplug triggers both 'present detect change' and 'attention button pressed'. - Hotunplug starts by triggering 'attention button pressed', then waits for the OS to power off the device

[Qemu-devel] [PATCH v3 0/3] hw/pcie: better hotplug/hotunplug support

2014-06-23 Thread Marcel Apfelbaum
v2 - v3: - Rebased the series on PCI branch v1 - v2: - Addressed Michael S. Tsirkin's comments: - patch 2/3: - Added power controller present to compat_props. - patch 3/3: - Unplug all bus functions on hot-unplug, not only function 0. - Minor code refactoring The current

[Qemu-devel] [PATCH v3 1/3] hw/pcie: corrected a debug message

2014-06-23 Thread Marcel Apfelbaum
Trivial issue, discovered while debugging. Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- hw/pci/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index 02cde6f..ae92f00 100644 --- a/hw/pci/pcie.c +++ b/hw/pci/pcie.c @@ -224,7

[Qemu-devel] [PATCH v3 2/3] hw/pcie: implement power controller functionality

2014-06-23 Thread Marcel Apfelbaum
It is needed by hot-unplug in order to get an indication from the OS when the device can be physically detached. Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- hw/pci-bridge/ioh3420.c| 7 +++ hw/pci-bridge/xio3130_downstream.c | 7 +++ hw/pci/pcie.c

[Qemu-devel] [PULL] Merge ppc32/ppc64 tcg backends

2014-06-23 Thread Richard Henderson
No change since v3, so eliding the patches. Thanks for the testing, Tom. r~ The following changes since commit d9c1647d896d3192cba9dbf98fb7efab876edde5: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2014-06-23 12:55:22 +0100) are available in the

[Qemu-devel] broken win32 coroutines (was Re: qemu 1.6.1)

2014-06-23 Thread Paolo Bonzini
Il 26/10/2013 11:51, Stefan Weil ha scritto: unpatched QEMU, crash with assertion 00448670 _qemu_coroutine_switch: 448670: 53 push %ebx 448671: 83 ec 18sub$0x18,%esp 448674: c7 04 24 a8 62 6d 00movl $0x6d62a8,(%esp)

[Qemu-devel] [PULL 14/19] linux-user: support ioprio_{get, set} syscalls

2014-06-23 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org Add support for the ioprio_get ioprio_set syscalls, allowing their use by target programs. Signed-off-by: Paul Burton p...@archlinuxmips.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/syscall.c | 18 ++ 1 file

Re: [Qemu-devel] [PATCH 2.1 v7 0/3] Add max-ram-below-4g (was Add pci_hole_min_size machine option)

2014-06-23 Thread Michael S. Tsirkin
On Thu, Jun 19, 2014 at 09:40:23PM -0400, Don Slutz wrote: Changes v6 to v7: Drop most of v5 to v6 changes. Michael S. Tsirkin: #2 pc q35: Add new machine opt max-ram-below-4g: default: max-ram-below-4g=4g pc q35: calculate lowmem lowmem =

Re: [Qemu-devel] [PATCH] bsd-user: Implement strace support for getcwd syscall

2014-06-23 Thread Peter Maydell
On 23 June 2014 15:19, Sean Bruno sbr...@ignoranthack.me wrote: On Thu, 2014-06-19 at 18:30 -0700, Sean Bruno wrote: On Mon, 2014-06-16 at 08:05 -0700, Sean Bruno wrote: Signed-off-by: Sean Bruno sbr...@freebsd.org --- bsd-user/freebsd/strace.list | 1 + 1 file changed, 1 insertion(+)

[Qemu-devel] [PULL 16/19] linux-user: support the setns syscall

2014-06-23 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org Add support for the setns syscall, trivially passed through to the host. Signed-off-by: Paul Burton p...@archlinuxmips.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- linux-user/strace.list | 3 +++ linux-user/syscall.c | 6 ++ 2 files

[Qemu-devel] [PULL 11/19] linux-user: respect timezone for settimeofday

2014-06-23 Thread riku . voipio
From: Paul Burton p...@archlinuxmips.org The settimeofday syscall accepts a tz argument indicating the desired timezone to the kernel. QEMU previously ignored any argument provided by the target program always passed NULL to the kernel. Instead, translate the argument pass along the data

Re: [Qemu-devel] [PATCH 2.1 v7 0/3] Add max-ram-below-4g (was Add pci_hole_min_size machine option)

2014-06-23 Thread Stefano Stabellini
On Mon, 23 Jun 2014, Michael S. Tsirkin wrote: On Thu, Jun 19, 2014 at 09:40:23PM -0400, Don Slutz wrote: Changes v6 to v7: Drop most of v5 to v6 changes. Michael S. Tsirkin: #2 pc q35: Add new machine opt max-ram-below-4g: default: max-ram-below-4g=4g pc

[Qemu-devel] [RFC PATCH v3 4/4] Let VFIO handle the unmasking of interrupts at EOI

2014-06-23 Thread Alvise Rigo
Now that VFIO can unmask the interrupt autonomously through an eventfd file descriptor, get rid of the resampler_handler. TODO: move this code and PCI one to common.c Signed-off-by: Alvise Rigo a.r...@virtualopensystems.com --- hw/vfio/platform.c | 38 -- 1

[Qemu-devel] [RFC PATCH v3 3/4] Force eventfd as notifying mechanism for VFIO

2014-06-23 Thread Alvise Rigo
The method event_notifier_init doesn't assure that eventfd is used. Create a new method (eventfd_notifier_init) to initialize only eventfd file descriptors. This method is also used by event_notifier_init which has not been modified to keep compatibility with util/event_notifier-win32.c.

[Qemu-devel] [RFC PATCH v3 1/4] Add AMBA devices support to VFIO

2014-06-23 Thread Alvise Rigo
The impossibility to add more then one compatibility property to the device tree node was not permitting to bind AMBA devices. Now we can add an arbitrary number of compatibility property values divided by the character ;. If the compatibility string contains the substring arm,primecell, a clock

[Qemu-devel] [PATCH] coroutine-win32.c: Add noinline attribute to work around gcc bug

2014-06-23 Thread Peter Maydell
A gcc codegen bug in x86_64-w64-mingw32-gcc (GCC) 4.6.3 means that non-debug builds of QEMU for Windows tend to assert when using coroutines. Work around this by marking qemu_coroutine_switch as noinline. If we allow gcc to inline qemu_coroutine_switch into coroutine_trampoline, then it hoists

[Qemu-devel] [RFC PATCH v3 0/4] AMBA platform device passthrough

2014-06-23 Thread Alvise Rigo
These patches are the next iteration of [Qemu-devel] [RFC v2 0/4] AMBA platform device passthrough and are based on the latest version of VFIO for platform devices [RFC PATCH v6 00/20] VFIO support for platform devices on ARM and the initial patch series [Qemu-devel] [RFC v3 0/10] KVM platform

Re: [Qemu-devel] [PATCH] bsd-user: Implement strace support for getcwd syscall

2014-06-23 Thread Peter Maydell
On 23 June 2014 15:54, Sean Bruno sbr...@ignoranthack.me wrote: Would you prefer a much larger patch set since you'll be delaying review? Something that actually makes bsd-user run ? :-) You certainly don't have to wait for these patches to pass review to start work on the next part of the

[Qemu-devel] [RFC PATCH v3 2/4] vfio: Add irqfd support in platform device

2014-06-23 Thread Alvise Rigo
From: Eric Auger eric.au...@linaro.org This patch aims at optimizing IRQ handling using irqfd framework. It brings significant performance improvement over traditional IRQ handling introduced in : vfio: Add initial IRQ support in platform device. This new IRQ handling method depends on kernel

Re: [Qemu-devel] machines and versions - why so many?

2014-06-23 Thread Paolo Bonzini
Il 23/06/2014 16:15, Alexey Kardashevskiy ha scritto: Hi! I have been hearing recently that we (server PPC) should have more that just one pseries machine in QEMU because this is what everybody else does :) If you want to support live upgrades from QEMU 2.1 to QEMU 2.2, you should indeed

Re: [Qemu-devel] [PATCH 2.1 v7 2/3] pc q35: Add new machine opt max-ram-below-4g

2014-06-23 Thread Michael S. Tsirkin
On Thu, Jun 19, 2014 at 09:40:25PM -0400, Don Slutz wrote: This is a pc q35 only machine opt. If you add enough PCI devices then all mmio for them will not fit below 4G which may not be the layout the user wanted. This allows you to increase the below 4G address space that PCI devices can

[Qemu-devel] [RFC] Functions bus_foreach and device_find from libqos virtio API

2014-06-23 Thread Marc Marí
Virtio header has been changed to compile and work with a real device. Functions bus_foreach and device_find have been implemented for PCI. Virtio-blk test case now opens a fake device. Signed-off-by: Marc Marí marc.mari.barc...@gmail.com --- tests/Makefile|3 +-

Re: [Qemu-devel] [PATCH] coroutine-win32.c: Add noinline attribute to work around gcc bug

2014-06-23 Thread Paolo Bonzini
Il 23/06/2014 16:55, Peter Maydell ha scritto: A gcc codegen bug in x86_64-w64-mingw32-gcc (GCC) 4.6.3 means that non-debug builds of QEMU for Windows tend to assert when using coroutines. Work around this by marking qemu_coroutine_switch as noinline. If we allow gcc to inline

Re: [Qemu-devel] [PATCH trivial] block.c: Correct the return value and the failure object when failure occurs

2014-06-23 Thread Chen Gang
On 06/23/2014 03:38 PM, Stefan Hajnoczi wrote: The return value of bdrv_open() is a negative errno. -1 does not make sense in this case. Please add an int return value to bdrv_append_temp_snapshot() so the caller can determine the real errno. Then the remainder of the patch can be:

Re: [Qemu-devel] [PATCH] block/nfs: add knob to set readahead

2014-06-23 Thread Eric Blake
On 06/23/2014 08:30 AM, Peter Lieven wrote: upcoming libnfs will feature internal readahead support. Add a knob to pass the optional readahead value as a URL parameter. This patch fixes also the incorrect usage of strncmp. But not the incorrect usage of atoi() (hint - atoi cannot detect

Re: [Qemu-devel] machines and versions - why so many?

2014-06-23 Thread Markus Armbruster
Alexey Kardashevskiy a...@ozlabs.ru writes: Hi! I have been hearing recently that we (server PPC) should have more that just one pseries machine in QEMU because this is what everybody else does :) My current understanding is that multiple machines (like pc-i440fx-1.4..2.1, and many others)

[Qemu-devel] [PATCH trivial v2] block.c: Add return value for bdrv_append_temp_snapshot() to avoid incorrect failure processing issue

2014-06-23 Thread Chen Gang
When failure occurs, 'ret' need be set, or may return 0 to indicate success. And error_propagate() also need be called only one time within a function. It is abnormal to prevent bdrv_append_temp_snapshot() return value but still set errp when error occurs -- although it contents return value

[Qemu-devel] [SeaBIOS] [PATCH v3] hw/pci: reserve IO and mem for pci express downstream ports with no devices attached

2014-06-23 Thread Marcel Apfelbaum
Commit c6e298e1f12e0f4ca02b6da5e42919ae055f6830 hw/pci: reserve IO and mem for pci-2-pci bridges with no devices attached introduced support for hot-plugging devices behind pci-2-pci bridges. Extend hotplug support also for pci express downstream ports. Signed-off-by: Marcel Apfelbaum

Re: [Qemu-devel] [PATCH 1/9] block: Create bdrv_fill_options()

2014-06-23 Thread Kevin Wolf
Am 12.06.2014 um 14:08 hat Benoît Canet geschrieben: The Wednesday 11 Jun 2014 à 16:04:55 (+0200), Kevin Wolf wrote : The idea of bdrv_fill_options() is to convert every parameter for opening images, in particular the filename and flags, to entries in the options QDict. This patch

[Qemu-devel] [PULL 01/23] vhost: block migration if backend does not log memory

2014-06-23 Thread Michael S. Tsirkin
vhost user does not support LOG_ALL feature bit. Generally, we should not try to set this bit without checking that backend can support it first. Detect and block migration. Signed-off-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Nikolay Nikolaev n.nikol...@virtualopensystems.com

[Qemu-devel] [PULL 00/23] pc,pci,vhost,net fixes, enhancements

2014-06-23 Thread Michael S. Tsirkin
The following changes since commit d9c1647d896d3192cba9dbf98fb7efab876edde5: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2014-06-23 12:55:22 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git

[Qemu-devel] [PULL 04/23] libqemustub: add more stubs for qemu-char

2014-06-23 Thread Michael S. Tsirkin
From: Nikolay Nikolaev n.nikol...@virtualopensystems.com Additional stubs: - chr_baum_init - qemu_chr_open_spice_vmc - qemu_chr_open_spice_port Signed-off-by: Nikolay Nikolaev n.nikol...@virtualopensystems.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin

[Qemu-devel] [PULL 03/23] qapi/hmp: use 'backend' instead of 'device' with memory backend

2014-06-23 Thread Michael S. Tsirkin
From: Igor Mammedov imamm...@redhat.com fixup documentation comments and HMP message/help text Signed-off-by: Igor Mammedov imamm...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Acked-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

[Qemu-devel] [PULL 02/23] vhost: fix resource leak in error handling

2014-06-23 Thread Michael S. Tsirkin
vhost_verify_ring_mappings leaks mappings on error. Fix this up. Cc: qemu-sta...@nongnu.org Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio/vhost.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index

[Qemu-devel] [PULL 05/23] qtest: fix qtest for vhost-user

2014-06-23 Thread Michael S. Tsirkin
From: Nikolay Nikolaev n.nikol...@virtualopensystems.com Fix compile for older glib, provide conditionally compiled versions of the used glib APIs. Signed-off-by: Nikolay Nikolaev n.nikol...@virtualopensystems.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin

[Qemu-devel] [PULL 06/23] qtest: fix vhost-user-test unbalanced mutex locks

2014-06-23 Thread Michael S. Tsirkin
From: Nikolay Nikolaev n.nikol...@virtualopensystems.com Signed-off-by: Nikolay Nikolaev n.nikol...@virtualopensystems.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- tests/vhost-user-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[Qemu-devel] [PULL 18/23] hw/pcie: implement power controller functionality

2014-06-23 Thread Michael S. Tsirkin
From: Marcel Apfelbaum marce...@redhat.com It is needed by hot-unplug in order to get an indication from the OS when the device can be physically detached. Signed-off-by: Marcel Apfelbaum marce...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin

[Qemu-devel] [PULL 13/23] qemu-char: fix qemu_chr_fe_get_msgfd()

2014-06-23 Thread Michael S. Tsirkin
From: Stefan Hajnoczi stefa...@redhat.com Commit c76bf6bb8fbbb233a7d3641e09229d23747d5ee3 (Add chardev API qemu_chr_fe_get_msgfds) broke qemu_chr_fe_get_msgfd() because it changed the return value. Callers expect -1 if no fd is available. The commit changed the return value to 0 (which is a

[Qemu-devel] [PULL 19/23] hw/pcie: better hotplug/hotunplug support

2014-06-23 Thread Michael S. Tsirkin
From: Marcel Apfelbaum marce...@redhat.com The current code is broken: it does surprise removal which crashes guests. Reimplemented the steps: - Hotplug triggers both 'present detect change' and 'attention button pressed'. - Hotunplug starts by triggering 'attention button pressed',

[Qemu-devel] [PULL 10/23] e1000: move e1000_autoneg_timer() to after set_ics()

2014-06-23 Thread Michael S. Tsirkin
From: Gabriel L. Somlo gso...@gmail.com Enable calling set_ics() from within e1000_autoneg_timer() without the need for a forward declaration. This patch contains no functional changes. Signed-off-by: Gabriel Somlo so...@cmu.edu Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by:

[Qemu-devel] [PULL 17/23] hw/pcie: correct debug message

2014-06-23 Thread Michael S. Tsirkin
From: Marcel Apfelbaum marce...@redhat.com Trivial issue, discovered while debugging. Signed-off-by: Marcel Apfelbaum marce...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/pci/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1

[Qemu-devel] [PULL 20/23] pcie: coding style tweak

2014-06-23 Thread Michael S. Tsirkin
- whitespace fix - unnecessary != 0 in a condition Cc: Marcel Apfelbaum marce...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/pci/pcie.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index da32589..a123c01 100644

[Qemu-devel] [PULL 07/23] e1000: emulate auto-negotiation during external link status change

2014-06-23 Thread Michael S. Tsirkin
From: Gabriel L. Somlo gso...@gmail.com This patch emulates auto-negotiation when the network link status is modified externally (i.e. via set_link id off/on). Also, a couple of cleanup items: - unset PHY status reg. AUTONEG_COMPLETE during link_down() - set PHY status reg. AUTONEG_COMPLETE

[Qemu-devel] [PULL 14/23] qemu-char: avoid leaking unused fds in tcp_get_msgfds()

2014-06-23 Thread Michael S. Tsirkin
From: Stefan Hajnoczi stefa...@redhat.com Commit c76bf6bb8fbbb233a7d3641e09229d23747d5ee3 (Add chardev API qemu_chr_fe_get_msgfds) extended the get_msgfds API from one to multiple file descriptors. It forgot to close unused file descriptors before freeing the file descriptor array. This patch

[Qemu-devel] [PULL 15/23] virtio-pci: Report an error when msix vectors init fails

2014-06-23 Thread Michael S. Tsirkin
From: Fam Zheng f...@redhat.com Currently vectors silently cleared to 0 if the initialization is failed, but user should at least have one way to notice this. Signed-off-by: Fam Zheng f...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin

[Qemu-devel] [PULL 16/23] q35: Use PC_Q35_COMPAT_1_4 on pc-q35-1.4 compat_props

2014-06-23 Thread Michael S. Tsirkin
From: Eduardo Habkost ehabk...@redhat.com pc-q35-1.4 was incorrectly using PC_COMPAT_1_4 instead of PC_Q35_COMPAT_1_4. The only side-effect was that the hpet compat property (inherited from PC_Q35_COMPAT_1_7) was missing. Without this patch, pc-q35-1.4 inicorrectly initializes hpet-intcap to

[Qemu-devel] [PULL 21/23] xen-hvm: Fix xen_hvm_init() to adjust pc memory layout

2014-06-23 Thread Michael S. Tsirkin
From: Don Slutz dsl...@verizon.com This is just below_4g_mem_size and above_4g_mem_size which is used later in QEMU. Acked-by: Stefano Stabellini stefano.stabell...@eu.citrix.com Signed-off-by: Don Slutz dsl...@verizon.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael

Re: [Qemu-devel] [PATCH v3] qmp: add ACPI_DEVICE_OST event handling

2014-06-23 Thread Eric Blake
On 06/20/2014 05:47 PM, Wenchao Xia wrote: Not your fault, as the problem already exists, but it's a bit awkward that qapi-event.json is not self-contained, and your patch is only making it worse. qapi-event.json only makes sense when included by qapi-schema.json, when ideally it would be

[Qemu-devel] [PATCH] hw/xtensa/xtfpga: fix FLASH mapping to boot region for KC705

2014-06-23 Thread Max Filippov
On KC705 bootloader area is located at FLASH offset 0x0600, not 0 as on older xtfpga boards. Cc: qemu-sta...@nongnu.org Signed-off-by: Max Filippov jcmvb...@gmail.com --- hw/xtensa/xtensa_lx60.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

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

2014-06-23 Thread Greg Bellows
I didn't get [PATCH v3 13/16] target-arm: A64: Emulate the HVC insn in email, so I reviewed it in patchwork. No apparent changes from v2. Reviewed-by: Greg Bellows greg.bell...@linaro.org [v3,13/16] target-arm: A64: Emulate the HVC insn On 17 June 2014 03:45, Edgar E. Iglesias

[Qemu-devel] [PATCH 4/9] hw/xtensa/xtfpga: use symbolic constants for bootparam tags

2014-06-23 Thread Max Filippov
Import bootparam tag names from linux/arch/xtensa/include/asm/bootparam.h No functional changes. Signed-off-by: Max Filippov jcmvb...@gmail.com --- hw/xtensa/bootparam.h | 10 ++ hw/xtensa/xtfpga.c| 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH 9/9] hw/xtensa/xtfpga: implement initrd loading

2014-06-23 Thread Max Filippov
Signed-off-by: Max Filippov jcmvb...@gmail.com --- hw/xtensa/xtfpga.c | 24 1 file changed, 24 insertions(+) diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index 01825d6..a2dff5a 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -180,6 +180,7 @@ static

[Qemu-devel] [PATCH 7/9] hw/xtensa/xtfpga: implement uImage loading

2014-06-23 Thread Max Filippov
Provide a simple bootloader code at the reset address that jumps to the loaded image entry point when it's not equal to the reset address. This is needed because the old method of setting pc doesn't work due to cpu reset done after the machine setup. Signed-off-by: Max Filippov jcmvb...@gmail.com

[Qemu-devel] [PATCH 8/9] hw/xtensa/xtfpga: implement DTB loading

2014-06-23 Thread Max Filippov
Signed-off-by: Max Filippov jcmvb...@gmail.com --- hw/xtensa/xtfpga.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index 0e0d825..01825d6 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -37,6 +37,7 @@ #include

Re: [Qemu-devel] [PATCH v1 1/3] sPAPR: Implement PCI error injection RTAS calls

2014-06-23 Thread Alexander Graf
On 23.06.14 04:22, Gavin Shan wrote: The patch implements PCI error injection RTAS calls for sPAPR platform, which are defined PAPR spec as follows. Those RTAS calls are expected to be invoked in strict sequence of ibm,open-errinjct, ibm,errinjct, ibm,close-errinjct. - ibm,open-errinjct: Apply

[Qemu-devel] [PATCH 2/9] hw/xtensa: replace fprintfs with error_report

2014-06-23 Thread Max Filippov
Signed-off-by: Max Filippov jcmvb...@gmail.com --- hw/xtensa/sim.c| 6 -- hw/xtensa/xtfpga.c | 10 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/hw/xtensa/sim.c b/hw/xtensa/sim.c index 89da43c..9642bf5 100644 --- a/hw/xtensa/sim.c +++ b/hw/xtensa/sim.c @@

[Qemu-devel] AArch64 linux-user: SA_ONSTACK usage in get_sigframe

2014-06-23 Thread Laurent Desnogues
Hello, in linux-user/signal.c the code for AArch64 get_sigframe reads like this: if ((ka-sa_flags SA_ONSTACK) !sas_ss_flags(sp)) { Shouldn't that be TARGET_SA_ONSTACK? The same question applies to Microblaze and OpenRISC. Thanks, Laurent

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

2014-06-23 Thread Alexander Graf
On 17.06.14 12:24, BALATON Zoltan wrote: On Tue, 17 Jun 2014, Alexander Graf wrote: On 17.06.14 11:36, BALATON Zoltan wrote: On Tue, 17 Jun 2014, Alexander Graf wrote: On 12.04.14 11:20, BALATON Zoltan wrote: Bring the memory map closer to a PowerMac3,1 model by removing unused areas and

Re: [Qemu-devel] [SeaBIOS] [PATCH v3] hw/pci: reserve IO and mem for pci express downstream ports with no devices attached

2014-06-23 Thread Michael S. Tsirkin
On Mon, Jun 23, 2014 at 06:29:51PM +0300, Marcel Apfelbaum wrote: Commit c6e298e1f12e0f4ca02b6da5e42919ae055f6830 hw/pci: reserve IO and mem for pci-2-pci bridges with no devices attached introduced support for hot-plugging devices behind pci-2-pci bridges. Extend hotplug support also

[Qemu-devel] [PULL 08/23] e1000: improve auto-negotiation reporting via mii-tool

2014-06-23 Thread Michael S. Tsirkin
From: Gabriel L. Somlo gso...@gmail.com Using mii-tool (on F20-live), the following output is produced: SIOCGMIIREG on ens3 failed: Input/output error ens3: no autonegotiation, 1000baseT-FD flow-control, link ok The first line (SIOCGMIIREG error) is due to mii-tool's inability to read the

Re: [Qemu-devel] [PULL 075/118] macio: handle non-block ATAPI DMA transfers

2014-06-23 Thread Alexander Graf
On 20.06.14 21:27, Mark Cave-Ayland wrote: On 20/06/14 20:17, BALATON Zoltan wrote: On Fri, 20 Jun 2014, Mark Cave-Ayland wrote: Zoltan, please can you test the attached patch to see if this still allows MorphOS to boot? Unfortunately it seems MorphOS cannot boot with this patch. It hangs

[Qemu-devel] [PATCH 3/9] hw/xtensa/xtfpga: retrieve parameters from machine_opts

2014-06-23 Thread Max Filippov
Signed-off-by: Max Filippov jcmvb...@gmail.com --- hw/xtensa/xtfpga.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/xtensa/xtfpga.c b/hw/xtensa/xtfpga.c index 75bc479..0aa3eeb 100644 --- a/hw/xtensa/xtfpga.c +++ b/hw/xtensa/xtfpga.c @@ -174,9 +174,10 @@ static void

[Qemu-devel] [PULL 02/43] audio: fmopl: drop INLINE macro

2014-06-23 Thread Luiz Capitulino
This commit expands all uses of the INLINE macro and drop it. The reason for this is to avoid clashes with external libraries with bad name conventions and also because renaming keywords is not a good practice. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- hw/audio/fmopl.c | 31

[Qemu-devel] [PULL 03/43] qapi: fix coding style in parameters list

2014-06-23 Thread Luiz Capitulino
From: Amos Kong ak...@redhat.com A space after * when declaring a pointer type is redundant. Signed-off-by: Amos Kong ak...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Markus Armbruster arm...@redhat.com Signed-off-by: Luiz

[Qemu-devel] [PULL 12/43] qapi: adjust existing defines

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com In order to let event defines use existing types later, instead of redefine new ones, some old type defines for spice and vnc are changed, and BlockErrorAction is moved from block.h to qapi schema. Note that BlockErrorAction is not merged with

[Qemu-devel] [PULL 06/43] json-lexer: fix escaped backslash in single-quoted string

2014-06-23 Thread Luiz Capitulino
From: Paolo Bonzini pbonz...@redhat.com This made the lexer wait for a closing *double* quote. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Reviewed-by: Amos Kong ak...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com ---

[Qemu-devel] [PATCH 1/9] hw/xtensa: remove extraneous xtensa_ prefix from file names

2014-06-23 Thread Max Filippov
While at it rename lx60 (named after the first board of the family) to more generic xtfpga (the family name). Signed-off-by: Max Filippov jcmvb...@gmail.com --- hw/xtensa/Makefile.objs | 4 ++-- hw/xtensa/{xtensa_bootparam.h = bootparam.h} | 0 hw/xtensa/{xtensa_sim.c =

[Qemu-devel] [PULL 20/43] qapi event: convert SUSPEND

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- docs/qmp/qmp-events.txt | 12 qapi-event.json

[Qemu-devel] [PULL 07/43] os-posix: include sys/time.h

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com Since gettimeofday() is used in this header file as a macro define, include the function's define header file, to avoid compile warning when other file include os-posix.h. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Reviewed-by: Eric Blake

[Qemu-devel] [PULL 18/43] qapi event: convert STOP

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- cpus.c | 4 +++- docs/qmp/qmp-events.txt

[Qemu-devel] [PULL 08/43] qapi: Add includes from qapi/ as dependencies

2014-06-23 Thread Luiz Capitulino
From: Max Reitz mre...@redhat.com qapi-schema.json has been split into three smaller JSON files in qapi/. Add them as dependencies for the code generation in the Makefile, so changes to them will result in a rebuilt of all QAPI-dependent code. Signed-off-by: Max Reitz mre...@redhat.com

[Qemu-devel] [PULL 26/43] qapi event: convert DEVICE_TRAY_MOVED

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- block.c | 21 +++--

[Qemu-devel] [PULL 40/43] qemu-char: move pty_chr_update_read_handler around

2014-06-23 Thread Luiz Capitulino
From: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Fam Zheng f...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- qemu-char.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff

[Qemu-devel] [PULL 23/43] qapi event: convert RTC_CHANGE

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com This patch also eliminates build time warning caused by no caller of monitor_qapi_event_throttle(). Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by:

[Qemu-devel] [PULL 23/23] xen-hvm: Handle machine opt max-ram-below-4g

2014-06-23 Thread Michael S. Tsirkin
From: Don Slutz dsl...@verizon.com This is the xen part of pc q35: Add new machine opt max-ram-below-4g Note: this machine option cannot be used to increase the amount of ram below 4G. Signed-off-by: Don Slutz dsl...@verizon.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by:

[Qemu-devel] [PULL 17/43] qapi event: convert RESET

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- docs/qmp/qmp-events.txt | 12 qapi-event.json

[Qemu-devel] [PULL 16/43] qapi event: convert POWERDOWN

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com There is no existing comments for POWERDOWN in doc/qmp/qmp-events.txt, so no change on it like other conversion patch. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake

[Qemu-devel] [PULL 36/43] qapi event: convert QUORUM events

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- block/quorum.c | 25 -

[Qemu-devel] [PULL 22/43] qapi event: convert WAKEUP

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- docs/qmp/qmp-events.txt | 12 qapi-event.json

[Qemu-devel] [PULL 42/43] monitor: protect outbuf and mux_out with mutex

2014-06-23 Thread Luiz Capitulino
From: Paolo Bonzini pbonz...@redhat.com This lets the block layer emit QMP events from outside the I/O thread. Reviewed-by: Luiz Capitulino lcapitul...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- monitor.c | 45

[Qemu-devel] [PULL 10/43] qapi script: add event support

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com qapi-event.py will parse the schema and generate qapi-event.c, then the API in qapi-event.c can be used to handle events in qemu code. All API have prefix qapi_event. The script mainly includes two parts: generate API for each event define, generate an

[Qemu-devel] [PULL 19/43] qapi event: convert RESUME

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- docs/qmp/qmp-events.txt | 12 qapi-event.json

[Qemu-devel] [PULL 21/43] qapi event: convert SUSPEND_DISK

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- docs/qmp/qmp-events.txt | 14 --

[Qemu-devel] [PULL 43/43] monitor: protect event emission

2014-06-23 Thread Luiz Capitulino
From: Paolo Bonzini pbonz...@redhat.com Event emission must be protected by a mutex because of access to the shared rate-limiting state, and to guard against concurrent monitor hot-plug by means of human-monitor-command. Reviewed-by: Luiz Capitulino lcapitul...@redhat.com Signed-off-by: Paolo

[Qemu-devel] [PULL 28/43] qapi event: convert BLOCK_IMAGE_CORRUPTED

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- block/qcow2-refcount.c | 14 --

[Qemu-devel] [PULL 37/43] qapi event: clean up

2014-06-23 Thread Luiz Capitulino
From: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Luiz Capitulino lcapitul...@redhat.com --- include/monitor/monitor.h | 40 - monitor.c

<    1   2   3   4   >