[Qemu-devel] [PULL 03/44] configure: Use quotes around uses of $CPU_CFLAGS

2019-05-28 Thread David Gibson
From: Richard Henderson About half of the values to which CPU_CFLAGS is set have multiple space separated arguments. Signed-off-by: Richard Henderson Message-Id: <20190501223819.8584-3-richard.hender...@linaro.org> Signed-off-by: David Gibson --- configure | 16 1 file change

[Qemu-devel] [PATCH v12 11/20] gdbstub: Implement read memory (m pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron Reviewed-by: Alex Bennée --- gdbstub.c | 48 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index f2ea5bdd5c..3d8c2f8f42 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1727,6 +1727,30 @@

[Qemu-devel] [PULL 07/44] hw/ppc/40p: use 1900 as a base year

2019-05-28 Thread David Gibson
From: Artyom Tarasenko AIX 5.1 expects the base year to be 1900. Adjust accordingly. Signed-off-by: Artyom Tarasenko Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20190505152839.18650-4-phi...@redhat.com> Signed-off-by: David Gibson --- hw/ppc/prep.c | 4 +++- 1 file changed, 3 insertio

[Qemu-devel] [PULL 13/44] target/ppc: Fix xxspltib

2019-05-28 Thread David Gibson
From: Anton Blanchard xxspltib raises a VMX or a VSX exception depending on the register set it is operating on. We had a check, but it was backwards. Fixes: f113283525a4 ("target-ppc: add xxspltib instruction") Signed-off-by: Anton Blanchard Message-Id: <20190509061713.69490488@kryten> Signed-

[Qemu-devel] [PULL 02/44] configure: Distinguish ppc64 and ppc64le hosts

2019-05-28 Thread David Gibson
From: Richard Henderson We cannot use the ppc64le host compiler to build ppc64(be) guest code. Clean up confusion between cross_cc_powerpc and cross_cc_ppc; make use of the cflags variable as well. Signed-off-by: Richard Henderson Message-Id: <20190501223819.8584-2-richard.hender...@linaro.org>

[Qemu-devel] [PATCH v12 08/20] gdbstub: Implement set register (P pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron --- gdbstub.c | 39 ++- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 57bfa4..fc9526b3f5 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1651,6 +1651,27 @@ static void handle_remove_bp(GdbCmdC

[Qemu-devel] [PULL 01/44] tests: Fix up docker cross builds for ppc64 (BE) targets

2019-05-28 Thread David Gibson
We currently have docker cross building targets for powerpc (32-bit, BE) and ppc64el (64-bit, LE), but not for pcp64 (64-bit, BE). This is an irritating gap in make check-tcg coverage so correct it. Signed-off-by: David Gibson --- tests/docker/Makefile.include | 1 + tests

[Qemu-devel] [PULL 00/44] ppc-for-4.1 queue 20190529

2019-05-28 Thread David Gibson
The following changes since commit 8c1ecb590497b0349c550607db923972b37f6963: Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-next-280519-2' into staging (2019-05-28 17:38:32 +0100) are available in the Git repository at: git://github.com/dgibson/qemu.git tags/ppc-for-4.1-20

[Qemu-devel] [PULL 08/44] target/ppc: Add ibm, purr and ibm, spurr device-tree properties

2019-05-28 Thread David Gibson
From: Suraj Jitindar Singh The ibm,purr and ibm,spurr device tree properties are used to indicate that the processor implements the Processor Utilisation of Resources Register (PURR) and Scaled Processor Utilisation of Resources Registers (SPURR), respectively. Each property has a single value wh

[Qemu-devel] [PATCH v12 06/20] gdbstub: Implement set_thread (H pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron Reviewed-by: Alex Bennée --- gdbstub.c | 83 +++ 1 file changed, 53 insertions(+), 30 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 5df4d58427..db213cf173 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1560,6 +1560

[Qemu-devel] [PATCH v12 05/20] gdbstub: Implement continue with signal (C pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron Reviewed-by: Alex Bennée --- gdbstub.c | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 99b78aa426..5df4d58427 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1541,6 +1541,25 @@ static void han

[Qemu-devel] [PULL 14/44] spapr/xive: EQ page should be naturally aligned

2019-05-28 Thread David Gibson
From: Cédric Le Goater When the OS configures the EQ page in which to receive event notifications from the XIVE interrupt controller, the page should be naturally aligned. Add this check. Signed-off-by: Cédric Le Goater Message-Id: <20190508171946.657-2-...@kaod.org> Reviewed-by: Greg Kurz [dw

[Qemu-devel] [PATCH v12 15/20] gdbstub: Implement step (s pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron Reviewed-by: Alex Bennée --- gdbstub.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index ea85966b27..3fd1a1cddb 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1808,6 +1808,16 @@ static void handle_file_

[Qemu-devel] [PATCH v0] qemu-io: add pattern file for write command

2019-05-28 Thread Denis Plotnikov
The patch allows to provide a pattern file for write command. There was no similar ability before. Signed-off-by: Denis Plotnikov --- qemu-io-cmds.c | 58 ++ 1 file changed, 54 insertions(+), 4 deletions(-) diff --git a/qemu-io-cmds.c b/qemu-io-cm

[Qemu-devel] [PATCH v12 18/20] gdbstub: Implement target halted (? pkt) with new infra

2019-05-28 Thread Jon Doron
Note: The user-mode thread-id has been correctly reported since bd88c780e6 Signed-off-by: Jon Doron --- gdbstub.c | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 80fe5b2d0c..a474f2c755 100644 --- a/gdbstub.c ++

[Qemu-devel] [PATCH v12 02/20] gdbstub: Implement deatch (D pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron --- gdbstub.c | 101 +- 1 file changed, 61 insertions(+), 40 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index e6d895177b..1db322c15a 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1413,11 +1413,6 @@ static inline int s

[Qemu-devel] [PATCH v12 12/20] gdbstub: Implement write all registers (G pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron Reviewed-by: Alex Bennée --- gdbstub.c | 41 +++-- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 3d8c2f8f42..a487e549d1 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1751,6 +1751,29 @@ static

[Qemu-devel] [PATCH v12 19/20] gdbstub: Clear unused variables in gdb_handle_packet

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron Reviewed-by: Alex Bennée --- gdbstub.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index a474f2c755..a0ff0017f6 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -2284,17 +2284,11 @@ static void handle_target_halt(GdbCmdC

[Qemu-devel] [PATCH v12 03/20] gdbstub: Implement thread_alive (T pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron Reviewed-by: Alex Bennée --- gdbstub.c | 43 --- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 1db322c15a..7801f2f260 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1507,6 +1507,30 @@ stati

[Qemu-devel] [PATCH v12 04/20] gdbstub: Implement continue (c pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron Reviewed-by: Alex Bennée --- gdbstub.c | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 7801f2f260..99b78aa426 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1531,6 +1531,16 @@ static void handle_threa

[Qemu-devel] [PATCH v12 10/20] gdbstub: Implement write memory (M pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron Reviewed-by: Alex Bennée --- gdbstub.c | 51 +-- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 07740ec0af..f2ea5bdd5c 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1702,6 +1702,31

[Qemu-devel] [PATCH v12 07/20] gdbstub: Implement breakpoint commands (Z/z pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron --- gdbstub.c | 86 +++ 1 file changed, 67 insertions(+), 19 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index db213cf173..57bfa4 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -950,7 +950,7 @@ static inline int xlat

[Qemu-devel] [PATCH v12 00/20] gdbstub: Refactor command packets handler

2019-05-28 Thread Jon Doron
This patch series refactors the old gdbstub command packets handler with a new infrastructure which should ease extending and adding new and missing gdb command packets. version 12 changes: - Fixed a bug during rebase of v10 which broke: "Implement breakpoint commands (Z/z pkt) with new infra"

[Qemu-devel] [PATCH v12 09/20] gdbstub: Implement get register (p pkt) with new infra

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron --- gdbstub.c | 50 ++ 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index fc9526b3f5..07740ec0af 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1672,6 +1672,36 @@ static void handle_set_r

[Qemu-devel] [PATCH v12 01/20] gdbstub: Add infrastructure to parse cmd packets

2019-05-28 Thread Jon Doron
Signed-off-by: Jon Doron Reviewed-by: Alex Bennée --- gdbstub.c | 195 ++ 1 file changed, 195 insertions(+) diff --git a/gdbstub.c b/gdbstub.c index d54abd17cc..e6d895177b 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -1268,6 +1268,201 @@ out:

Re: [Qemu-devel] [PATCH] ui/curses: Fix build with -m32

2019-05-28 Thread Gerd Hoffmann
On Mon, May 27, 2019 at 04:25:40PM +0200, Max Reitz wrote: > wchar_t may resolve to be an unsigned long on 32-bit architectures. > Using the %x conversion specifier will then give a compiler warning: Added to ui queue. thanks, Gerd

[Qemu-devel] [PULL 5/9] usb-hub: make number of ports runtime-configurable

2019-05-28 Thread Gerd Hoffmann
Add num_ports property which allows configure the number of downstream ports. Valid range is 1-8, default is 8. Signed-off-by: Gerd Hoffmann Message-id: 20190524070310.4952-3-kra...@redhat.com --- hw/usb/dev-hub.c | 45 + 1 file changed, 29 insertions

[Qemu-devel] [PULL 8/9] usb-hub: emulate per port power switching

2019-05-28 Thread Gerd Hoffmann
Add support for per port power switching. Virtual power of course ;) Use port-power=on property to enable this. Signed-off-by: Gerd Hoffmann Message-id: 20190524070310.4952-6-kra...@redhat.com --- hw/usb/dev-hub.c | 63 1 file changed, 63 inserti

Re: [Qemu-devel] Headers without multiple inclusion guards

2019-05-28 Thread Laurent Vivier
On 28/05/2019 20:12, Markus Armbruster wrote: ... Linux user M: Riku Voipio R: Laurent Vivier Unintentionnal: linux-user/errno_defs.h linux-user/flat.h linux-user/hppa/sockbits.h linux-user/socket.h linux-user/aarch64/syscall_nr.h linux-user/alpha/syscall_nr.h linux-user/arm/syscall_nr.h lin

[Qemu-devel] [PULL 9/9] usb-tablet: fix serial compat property

2019-05-28 Thread Gerd Hoffmann
s/kbd/tablet/, fixes cut+paste bug. Cc: qemu-sta...@nongnu.org Reported-by: Dr. David Alan Gilbert Signed-off-by: Gerd Hoffmann Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Message-id: 20190520081805.15019-1-kra...@redhat.com --- hw/core

[Qemu-devel] [PULL 6/9] usb-hub: add helpers to update port state

2019-05-28 Thread Gerd Hoffmann
Add usb_hub_port_set() and usb_hub_port_clear() helpers which care about updating the change bits (port->wPortChange) properly, so we don't need to have that logic sprinkled all over the place ;) Signed-off-by: Gerd Hoffmann Message-id: 20190524070310.4952-4-kra...@redhat.com --- hw/usb/dev-hub.

[Qemu-devel] [PULL 4/9] usb-hub: tweak feature names

2019-05-28 Thread Gerd Hoffmann
Add dashes, so they don't look like two separate things when printed. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20190524070310.4952-2-kra...@redhat.com --- hw/usb/dev-hub.c | 10 +- 1 file changed, 5 insertions(+), 5

[Qemu-devel] [PULL 0/9] Usb 20190529 patches

2019-05-28 Thread Gerd Hoffmann
The following changes since commit da35f7f1eeff9f249a9597400fc514c83fd3a0f8: virtio-gpu: add sanity check (2019-05-28 08:14:44 +0200) are available in the Git repository at: git://git.kraxel.org/qemu tags/usb-20190529-pull-request for you to fetch changes up to 442bac16a6cd708a9f87adb0a263f

[Qemu-devel] [PULL 7/9] usb-hub: add usb_hub_port_update()

2019-05-28 Thread Gerd Hoffmann
Helper function to update port status bits which depends on the connected device. We need the same logic for device attach and port reset, so factor it out. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 20190524070310.4952-5-kra.

[Qemu-devel] [PULL 1/9] usb: call reset handler before updating state

2019-05-28 Thread Gerd Hoffmann
That way the device reset handler can see what the before-reset state of the device is. Signed-off-by: Gerd Hoffmann Message-id: 20190522094702.17619-2-kra...@redhat.com --- hw/usb/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/core.c b/hw/usb/core.c index 8fbd

[Qemu-devel] [PULL 3/9] usb-host: avoid libusb_set_configuration calls

2019-05-28 Thread Gerd Hoffmann
Seems some devices become confused when we call libusb_set_configuration(). So before calling the function check whenever the device has multiple configurations in the first place, and in case it hasn't (which is the case for the majority of devices) simply skip the call as it will have no effect

[Qemu-devel] [PULL 2/9] usb-host: skip reset for untouched devices

2019-05-28 Thread Gerd Hoffmann
If the guest didn't talk to the device yet, skip the reset. Without this usb-host devices get resetted a number of times at boot time for no good reason. Signed-off-by: Gerd Hoffmann Message-id: 20190522094702.17619-3-kra...@redhat.com --- hw/usb/host-libusb.c | 3 +++ 1 file changed, 3 insertio

Re: [Qemu-devel] hw/s390x/ipl: Dubious use of qdev_reset_all_fn

2019-05-28 Thread Markus Armbruster
Peter Maydell writes: > On Mon, 27 May 2019 at 08:52, Markus Armbruster wrote: >> >> Peter Maydell writes: >> > Suggestions for how to restructure reset so this doesn't >> > happen are welcome... "reset follows the bus hierarchy" >> > works well in some places but is a bit weird in others >> >

[Qemu-devel] [Bug 1829682] Re: QEMU PPC SYSTEM regression - 3.1.0 and GIT - Fail to boot AIX

2019-05-28 Thread Ivan Warren via Qemu-devel
For info : I tried Removing the SPAPR H_HOME_NODE_ASSOCIATIVITY H-call support (Not saying it shouldn't be implemented for CPU hotplug support) and AIX 7.2 boots again. with the latest QEMU (as of 8c1ecb590497b0349c550607db923972b37f6963 - git pulled 2019/05/29 @ around 06H30 GMT) There must be a

Re: [Qemu-devel] [Qemu-ppc] [PATCH v8 6/6] migration: Block migration while handling machine check

2019-05-28 Thread Aravinda Prasad
On Friday 10 May 2019 12:21 PM, David Gibson wrote: > On Mon, Apr 22, 2019 at 12:33:45PM +0530, Aravinda Prasad wrote: >> Block VM migration requests until the machine check >> error handling is complete as (i) these errors are >> specific to the source hardware and is irrelevant on >> the targe

[Qemu-devel] [PATCH v9 5/6] ppc: spapr: Enable FWNMI capability

2019-05-28 Thread Aravinda Prasad
Enable the KVM capability KVM_CAP_PPC_FWNMI so that the KVM causes guest exit with NMI as exit reason when it encounters a machine check exception on the address belonging to a guest. Without this capability enabled, KVM redirects machine check exceptions to guest's 0x200 vector. This patch also d

[Qemu-devel] [PATCH v9 2/6] Wrapper function to wait on condition for the main loop mutex

2019-05-28 Thread Aravinda Prasad
Introduce a wrapper function to wait on condition for the main loop mutex. This function atomically releases the main loop mutex and causes the calling thread to block on the condition. This wrapper is required because qemu_global_mutex is a static variable. Signed-off-by: Aravinda Prasad Reviewe

[Qemu-devel] [PATCH v9 6/6] migration: Include migration support for machine check handling

2019-05-28 Thread Aravinda Prasad
This patch includes migration support for machine check handling. Especially this patch blocks VM migration requests until the machine check error handling is complete as (i) these errors are specific to the source hardware and is irrelevant on the target hardware, (ii) these errors cause data corr

[Qemu-devel] [PATCH v9 1/6] ppc: spapr: Handle "ibm, nmi-register" and "ibm, nmi-interlock" RTAS calls

2019-05-28 Thread Aravinda Prasad
This patch adds support in QEMU to handle "ibm,nmi-register" and "ibm,nmi-interlock" RTAS calls. The machine check notification address is saved when the OS issues "ibm,nmi-register" RTAS call. This patch also handles the case when multiple processors experience machine check at or about the same

[Qemu-devel] [PATCH v9 4/6] target/ppc: Build rtas error log upon an MCE

2019-05-28 Thread Aravinda Prasad
Upon a machine check exception (MCE) in a guest address space, KVM causes a guest exit to enable QEMU to build and pass the error to the guest in the PAPR defined rtas error log format. This patch builds the rtas error log, copies it to the rtas_addr and then invokes the guest registered machine c

[Qemu-devel] [PATCH v9 3/6] target/ppc: Handle NMI guest exit

2019-05-28 Thread Aravinda Prasad
Memory error such as bit flips that cannot be corrected by hardware are passed on to the kernel for handling. If the memory address in error belongs to guest then the guest kernel is responsible for taking suitable action. Patch [1] enhances KVM to exit guest with exit reason set to KVM_EXIT_NMI in

[Qemu-devel] [PATCH v9 0/6] target-ppc/spapr: Add FWNMI support in QEMU for PowerKVM guests

2019-05-28 Thread Aravinda Prasad
This patch set adds support for FWNMI in PowerKVM guests. System errors such as SLB multihit and memory errors that cannot be corrected by hardware is passed on to the kernel for handling by raising machine check exception (an NMI). Upon such machine check exceptions, if the address in error belon

Re: [Qemu-devel] [PATCH] q35: fix mmconfig and PCI0._CRS

2019-05-28 Thread Marcel Apfelbaum
Hi Gerd, On 5/29/19 8:01 AM, Gerd Hoffmann wrote: On Wed, May 29, 2019 at 07:48:03AM +0300, Marcel Apfelbaum wrote: Hi Gerd, On 5/28/19 11:43 PM, Gerd Hoffmann wrote: This patch changes the handling of the mmconfig area. Thanks to the pci(e) expander devices we already have the logic to excl

Re: [Qemu-devel] [RFC PATCH 2/2] machine.py: minor delinting

2019-05-28 Thread Markus Armbruster
John Snow writes: > Since we're out in a new module, do a quick cursory pass of some of the > more obvious style issues. > > Signed-off-by: John Snow > --- > python/qemu/machine.py | 23 +++ > 1 file changed, 15 insertions(+), 8 deletions(-) > > diff --git a/python/qemu/mach

Re: [Qemu-devel] [PATCH v3 00/14] tests/vm: serial console autoinstall, misc fixes.

2019-05-28 Thread Gerd Hoffmann
On Mon, May 20, 2019 at 02:47:02PM +0200, Gerd Hoffmann wrote: > This patch series changes the way virtual machines for test builds are > managed. They are created locally on the developer machine now. The > installer is booted on the serial console and the scripts walks through > the dialogs to

Re: [Qemu-devel] [PATCH v2 08/10] hw/usb-storage: Use the QOM DEVICE() macro to access DeviceState.qdev

2019-05-28 Thread Gerd Hoffmann
On Tue, May 28, 2019 at 06:40:18PM +0200, Philippe Mathieu-Daudé wrote: > Rather than looking inside the definition of a DeviceState with > "s->qdev", use the QOM prefered style: "DEVICE(s)". > > This patch was generated using the following Coccinelle script: > > // Use DEVICE() macros to acc

Re: [Qemu-devel] [PATCH] q35: fix mmconfig and PCI0._CRS

2019-05-28 Thread Gerd Hoffmann
On Wed, May 29, 2019 at 07:48:03AM +0300, Marcel Apfelbaum wrote: > Hi Gerd, > > On 5/28/19 11:43 PM, Gerd Hoffmann wrote: > > This patch changes the handling of the mmconfig area. Thanks to the > > pci(e) expander devices we already have the logic to exclude address > > ranges from PCI0._CRS. W

Re: [Qemu-devel] [PATCH] q35: fix mmconfig and PCI0._CRS

2019-05-28 Thread Marcel Apfelbaum
Hi Gerd, On 5/28/19 11:43 PM, Gerd Hoffmann wrote: This patch changes the handling of the mmconfig area. Thanks to the pci(e) expander devices we already have the logic to exclude address ranges from PCI0._CRS. We can simply add the mmconfig address range to the list get it excluded as well.

Re: [Qemu-devel] [PATCH] q35: split memory at 2G

2019-05-28 Thread Gerd Hoffmann
On Tue, May 28, 2019 at 10:49:55PM -0400, Michael S. Tsirkin wrote: > On Wed, May 29, 2019 at 03:21:16AM +0200, Paolo Bonzini wrote: > > On 28/05/19 22:48, Gerd Hoffmann wrote: > > > Original q35 behavior was to split memory 2.75 GB, leaving space for the > > > mmconfig bar at 0xb00 and pci I/O

[Qemu-devel] [PULL 2/9] virtio-gpu: add bswap helpers header

2019-05-28 Thread Gerd Hoffmann
From: Marc-André Lureau The helper functions are useful to build the vhost-user-gpu backend. Signed-off-by: Marc-André Lureau Message-id: 20190524130946.31736-3-marcandre.lur...@redhat.com Signed-off-by: Gerd Hoffmann --- include/hw/virtio/virtio-gpu-bswap.h | 61

[Qemu-devel] [PULL 8/9] virtio-gpu: split virtio-gpu-pci & virtio-vga

2019-05-28 Thread Gerd Hoffmann
From: Marc-André Lureau Add base classes that are common to vhost-user-gpu-pci and vhost-user-vga. Signed-off-by: Marc-André Lureau Message-id: 20190524130946.31736-9-marcandre.lur...@redhat.com Signed-off-by: Gerd Hoffmann --- hw/display/virtio-vga.h | 32 + hw/display/virtio-gp

Re: [Qemu-devel] [PATCH] q35: split memory at 2G

2019-05-28 Thread Gerd Hoffmann
On Wed, May 29, 2019 at 03:21:16AM +0200, Paolo Bonzini wrote: > On 28/05/19 22:48, Gerd Hoffmann wrote: > > Original q35 behavior was to split memory 2.75 GB, leaving space for the > > mmconfig bar at 0xb00 and pci I/O window starting at 0xc000. > > > > Note: Those machine types have been

[Qemu-devel] [PULL 7/9] virtio-gpu: split virtio-gpu, introduce virtio-gpu-base

2019-05-28 Thread Gerd Hoffmann
From: Marc-André Lureau Add a base class that is common to virtio-gpu and vhost-user-gpu devices. The VirtIOGPUBase base class provides common functionalities necessary for both virtio-gpu and vhost-user-gpu: - common configuration (max-outputs, initial resolution, flags) - virtio device initial

[Qemu-devel] [PULL 6/9] spice-app: fix running when !CONFIG_OPENGL

2019-05-28 Thread Gerd Hoffmann
From: Marc-André Lureau Do not set 'gl' parameter, fixes: qemu-system-x86_64: Invalid parameter 'gl' Signed-off-by: Marc-André Lureau Message-id: 20190524130946.31736-7-marcandre.lur...@redhat.com Signed-off-by: Gerd Hoffmann --- ui/spice-app.c | 3 ++- 1 file changed, 2 insertions(+), 1 dele

[Qemu-devel] [PULL 9/9] hw/display: add vhost-user-vga & gpu-pci

2019-05-28 Thread Gerd Hoffmann
From: Marc-André Lureau Add new virtio-gpu devices with a "vhost-user" property. The associated vhost-user backend is used to handle the virtio rings and provide rendering results thanks to the vhost-user-gpu protocol. Example usage: -object vhost-user-backend,id=vug,cmd="./vhost-user-gpu" -devi

[Qemu-devel] [PULL 3/9] virtio-gpu: add a pixman helper header

2019-05-28 Thread Gerd Hoffmann
From: Marc-André Lureau This will allow to share the format conversion function with vhost-user-gpu. Signed-off-by: Marc-André Lureau Message-id: 20190524130946.31736-4-marcandre.lur...@redhat.com Signed-off-by: Gerd Hoffmann --- include/hw/virtio/virtio-gpu-pixman.h | 45

[Qemu-devel] [PULL 5/9] contrib: add vhost-user-gpu

2019-05-28 Thread Gerd Hoffmann
From: Marc-André Lureau Add a vhost-user gpu backend, based on virtio-gpu/3d device. It is associated with a vhost-user-gpu device. Various TODO and nice to have items: - multi-head support - crash & resume handling - accelerated rendering/display that avoids the waiting round trips - edid suppo

[Qemu-devel] [PULL 0/9] Vga 20190529 patches

2019-05-28 Thread Gerd Hoffmann
The following changes since commit da35f7f1eeff9f249a9597400fc514c83fd3a0f8: virtio-gpu: add sanity check (2019-05-28 08:14:44 +0200) are available in the Git repository at: git://git.kraxel.org/qemu tags/vga-20190529-pull-request for you to fetch changes up to 267f664658fee4138f80013fa2535

[Qemu-devel] [PULL 1/9] vhost-user: add vhost_user_gpu_set_socket()

2019-05-28 Thread Gerd Hoffmann
From: Marc-André Lureau Add a new vhost-user message to give a unix socket to a vhost-user backend for GPU display updates. Back when I started that work, I added a new GPU channel because the vhost-user protocol wasn't bidirectional. Since then, there is a vhost-user-slave channel for the slave

[Qemu-devel] [PULL 4/9] util: compile drm.o on posix

2019-05-28 Thread Gerd Hoffmann
From: Marc-André Lureau OpenGL isn't required to use DRM rendernodes. The following patches uses it for 2d resources for ex. Signed-off-by: Marc-André Lureau Message-id: 20190524130946.31736-5-marcandre.lur...@redhat.com [ kraxel s/LINUX/POSIX/ (fixes openbsd build failure) ] Signed-off-by: G

[Qemu-devel] [Bug 1569053] Re: Qemu crashes when I start a second VM from command line

2019-05-28 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1569053 Title: Qemu crashe

[Qemu-devel] [Bug 1542965] Re: Failed to set NBD socket ubuntu 15.10 & nbd client 3.10

2019-05-28 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1542965 Title: Failed to s

Re: [Qemu-devel] Headers without multiple inclusion guards

2019-05-28 Thread David Gibson
On Tue, May 28, 2019 at 08:12:24PM +0200, Markus Armbruster wrote: > We have a bunch of headers without multiple inclusion guards. Some are > clearly intentional, some look accidental. Too many for me to find out > by examining each of them, so I'm asking their maintainers. > > Why do I ask? I'

Re: [Qemu-devel] [PATCH v17 02/10] ACPI: add some GHES structures and macros definition

2019-05-28 Thread Michael S. Tsirkin
On Tue, May 14, 2019 at 04:18:15AM -0700, Dongjiu Geng wrote: > Add Generic Error Status Block structures and some macros > definitions, which is referred to the ACPI 4.0 or ACPI 6.2. The > HEST table generation and CPER record will use them. > > Signed-off-by: Dongjiu Geng Are these all still u

Re: [Qemu-devel] [PATCH v17 07/10] ACPI: Add APEI GHES table generation support

2019-05-28 Thread Michael S. Tsirkin
On Tue, May 14, 2019 at 04:18:20AM -0700, Dongjiu Geng wrote: > This implements APEI GHES Table generation via fw_cfg blobs. > Now it only support GPIO-Signal and ARMv8 SEA two types of GHESv2 error > source. Afterwards, we can extend the supported types if needed. For the > CPER section type, curr

Re: [Qemu-devel] [PATCH for-4.1 v2] q35: Revert to kernel irqchip

2019-05-28 Thread Michael S. Tsirkin
On Tue, May 14, 2019 at 02:14:41PM -0600, Alex Williamson wrote: > Commit b2fc91db8447 ("q35: set split kernel irqchip as default") changed > the default for the pc-q35-4.0 machine type to use split irqchip, which > turned out to have disasterous effects on vfio-pci INTx support. KVM > resampling

Re: [Qemu-devel] [PATCH v2 0/2] Deferred incoming migration through fd

2019-05-28 Thread Peter Xu
On Tue, May 28, 2019 at 12:16:31PM +0300, Yury Kotov wrote: > Hi, > > V2: > * Revert odd changes in migrate() > * Add short description for socket_send_fds() > and remove ifdef WIN32 as it's not needed > > This series is a continuation of the previous two: > * migration: Fix handling fd protoco

Re: [Qemu-devel] [PATCH 1/8] spapr: Clean up device node name generation for PCI devices

2019-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2019 at 11:23:54PM -0400, Michael S. Tsirkin wrote: > On Thu, May 23, 2019 at 03:29:11PM +1000, David Gibson wrote: > > spapr_populate_pci_child_dt() adds a 'name' property to the device tree > > node for PCI devices. This is never necessary for a flattened device tree, > > it is i

Re: [Qemu-devel] [PATCH 1/8] spapr: Clean up device node name generation for PCI devices

2019-05-28 Thread Michael S. Tsirkin
On Thu, May 23, 2019 at 03:29:11PM +1000, David Gibson wrote: > spapr_populate_pci_child_dt() adds a 'name' property to the device tree > node for PCI devices. This is never necessary for a flattened device tree, > it is implicit in the name added when the node is constructed. In fact > anything

Re: [Qemu-devel] [PATCH 00/20] hw/i386/pc: Do not restrict the fw_cfg functions to the PC machine

2019-05-28 Thread Michael S. Tsirkin
On Fri, May 24, 2019 at 08:35:33AM +0200, Philippe Mathieu-Daudé wrote: > Hi, > > This is my take at salvaging some NEMU good work. > Samuel worked in adding the fw_cfg device to the x86-virt NEMU machine. > This series is inspired by NEMU's commit 3cb92d080835 [*] and adapted > to upstream style.

Re: [Qemu-devel] [PATCH] virtio-gpu: add sanity check

2019-05-28 Thread Michael S. Tsirkin
On Mon, May 27, 2019 at 11:12:26AM +0200, Gerd Hoffmann wrote: > Require a minimum 16x16 size for the scanout, to make sure the guest > can't set either width or height to zero. This (a) doesn't make sense > at all and (b) causes problems in some UI code. When using spice this > will triggers an

Re: [Qemu-devel] [PATCH v3 2/2] drm/i915/gvt: export migration_version to mdev sysfs for Intel vGPU

2019-05-28 Thread Zhenyu Wang
On 2019.05.26 23:44:37 -0400, Yan Zhao wrote: > This feature implements the migration_version attribute for Intel's vGPU > mdev devices. > > migration_version attribute is rw. > It's used to check migration compatibility for two mdev devices of the > same mdev type. > migration_version string is d

Re: [Qemu-devel] [PATCH v6] hw/acpi: extract acpi_add_rom_blob()

2019-05-28 Thread Michael S. Tsirkin
On Tue, Mar 26, 2019 at 10:43:20AM +0800, Wei Yang wrote: > arm and i386 has almost the same function acpi_add_rom_blob(), except > giving different FWCfgCallback function. > > This patch moves acpi_add_rom_blob() to utils.c by passing > FWCfgCallback to it. > > Signed-off-by: Wei Yang > Reviewe

Re: [Qemu-devel] [PATCH 0/4] add failover feature for assigned network devices

2019-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2019 at 05:14:22PM -0700, si-wei liu wrote: > > > On 5/21/2019 11:49 AM, Jens Freimann wrote: > > On Tue, May 21, 2019 at 07:37:19AM -0400, Michael S. Tsirkin wrote: > > > On Tue, May 21, 2019 at 09:21:57AM +0200, Jens Freimann wrote: > > > > On Mon, May 20, 2019 at 04:56:57PM -06

Re: [Qemu-devel] [PATCH] q35: split memory at 2G

2019-05-28 Thread Michael S. Tsirkin
On Wed, May 29, 2019 at 03:21:16AM +0200, Paolo Bonzini wrote: > On 28/05/19 22:48, Gerd Hoffmann wrote: > > Original q35 behavior was to split memory 2.75 GB, leaving space for the > > mmconfig bar at 0xb00 and pci I/O window starting at 0xc000. > > > > Note: Those machine types have been

Re: [Qemu-devel] [RFC PATCH 0/2] implement the failover feature for assigned network devices

2019-05-28 Thread Michael S. Tsirkin
On Tue, May 28, 2019 at 05:35:26PM -0700, si-wei liu wrote: > > > On 4/5/2019 4:22 PM, Michael S. Tsirkin wrote: > > On Fri, Apr 05, 2019 at 09:56:29AM +0100, Dr. David Alan Gilbert wrote: > > > * Jens Freimann (jfreim...@redhat.com) wrote: > > > > ping > > > > > > > > FYI: I'm also working on a

Re: [Qemu-devel] [PATCH 0/4] add failover feature for assigned network devices

2019-05-28 Thread Michael S. Tsirkin
On Tue, May 21, 2019 at 08:49:18PM +0200, Jens Freimann wrote: > On Tue, May 21, 2019 at 07:37:19AM -0400, Michael S. Tsirkin wrote: > > On Tue, May 21, 2019 at 09:21:57AM +0200, Jens Freimann wrote: > > > On Mon, May 20, 2019 at 04:56:57PM -0600, Alex Williamson wrote: > > > > On Fri, 17 May 2019

Re: [Qemu-devel] [PATCH] q35: split memory at 2G

2019-05-28 Thread Paolo Bonzini
On 28/05/19 22:48, Gerd Hoffmann wrote: > Original q35 behavior was to split memory 2.75 GB, leaving space for the > mmconfig bar at 0xb00 and pci I/O window starting at 0xc000. > > Note: Those machine types have been removed from the qemu codebase > meanwhile because they could not be liv

Re: [Qemu-devel] [PATCH 3/4] migration/ram.c: MultiFDSendParams.sem_sync is not really used

2019-05-28 Thread Wei Yang
On Tue, May 28, 2019 at 10:16:06AM +0200, Juan Quintela wrote: >Wei Yang wrote: >> Besides init and destroy, MultiFDSendParams.sem_sync is not really used. >> >> Signed-off-by: Wei Yang > >Reviewed-by: Juan Quintela > >I mad SendParamas and RecvParams identical, but they are different. You >are

Re: [Qemu-devel] [PATCH v3 2/2] drm/i915/gvt: export migration_version to mdev sysfs for Intel vGPU

2019-05-28 Thread Yan Zhao
On Tue, May 28, 2019 at 05:01:35PM +0800, Cornelia Huck wrote: > On Sun, 26 May 2019 23:44:37 -0400 > Yan Zhao wrote: > > > This feature implements the migration_version attribute for Intel's vGPU > > mdev devices. > > > > migration_version attribute is rw. > > It's used to check migration compa

Re: [Qemu-devel] [PATCH v3 00/10] Refactor cpu topo into machine properties

2019-05-28 Thread Like Xu
Ping for [PATCH v3 00/10] Refactor cpu topo into machine properties. On 2019/5/26 21:51, Like Xu wrote: On 2019/5/19 4:54, Like Xu wrote: This patch series make existing cores/threads/sockets into machine properties and get rid of global smp_* variables they use currently. The purpose of getti

Re: [Qemu-devel] [RFC PATCH 0/2] implement the failover feature for assigned network devices

2019-05-28 Thread si-wei liu
On 4/5/2019 4:22 PM, Michael S. Tsirkin wrote: On Fri, Apr 05, 2019 at 09:56:29AM +0100, Dr. David Alan Gilbert wrote: * Jens Freimann (jfreim...@redhat.com) wrote: ping FYI: I'm also working on a few related tools to detect driver behaviour when assigning a MAC to the vf device. Code is at

Re: [Qemu-devel] [PATCH 2/4] migration/ram.c: use same type in MultiFDPages_t to define offsest

2019-05-28 Thread Wei Yang
On Tue, May 28, 2019 at 10:12:39AM +0200, Juan Quintela wrote: >Wei Yang wrote: >> MultiFDPacket_t.offset is allocated to store MultiFDPages_t.offset. >> >> It would be better to use the same type. >> >> Signed-off-by: Wei Yang >> --- >> migration/ram.c | 2 +- >> 1 file changed, 1 insertion(+),

Re: [Qemu-devel] [PATCH 1/4] migration: multifd_save_setup always return 0

2019-05-28 Thread Wei Yang
On Tue, May 28, 2019 at 10:11:11AM +0200, Juan Quintela wrote: >Wei Yang wrote: >> Signed-off-by: Wei Yang >> --- >> migration/migration.c | 7 +-- >> 1 file changed, 1 insertion(+), 6 deletions(-) >> >> diff --git a/migration/migration.c b/migration/migration.c >> index d0a0f68f11..3aae4f27

Re: [Qemu-devel] [PATCH] hw/i386/pc: check apci hotplug capability before nvdimm's

2019-05-28 Thread Wei Yang
On Tue, May 28, 2019 at 02:26:27PM +0200, Igor Mammedov wrote: >On Tue, 28 May 2019 09:35:48 +0800 >Wei Yang wrote: > >> On Mon, May 27, 2019 at 02:21:14PM +0200, Igor Mammedov wrote: >> >On Thu, 11 Apr 2019 15:17:39 +0800 >> >Wei Yang wrote: >> > >> >> pc_memory_pre_plug() is called during hot

Re: [Qemu-devel] [PATCH v3 1/2] vfio/mdev: add migration_version attribute for mdev device

2019-05-28 Thread Yan Zhao
On Tue, May 28, 2019 at 04:53:32PM +0800, Cornelia Huck wrote: > On Sun, 26 May 2019 23:43:42 -0400 > Yan Zhao wrote: > > > migration_version attribute is used to check migration compatibility > > between two mdev device of the same mdev type. > > s/device/devices/ > yes... sorry and thanks :)

Re: [Qemu-devel] [PATCH 0/4] add failover feature for assigned network devices

2019-05-28 Thread si-wei liu
On 5/21/2019 11:49 AM, Jens Freimann wrote: On Tue, May 21, 2019 at 07:37:19AM -0400, Michael S. Tsirkin wrote: On Tue, May 21, 2019 at 09:21:57AM +0200, Jens Freimann wrote: On Mon, May 20, 2019 at 04:56:57PM -0600, Alex Williamson wrote: > On Fri, 17 May 2019 14:58:16 +0200 > Jens Freimann

[Qemu-devel] [PULL 3/3] iotests: test external snapshot with bitmap copying

2019-05-28 Thread John Snow
From: Vladimir Sementsov-Ogievskiy This test shows that external snapshots and incremental backups are friends. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow Message-id: 20190517152111.206494-3-vsement...@virtuozzo.com Signed-off-by: John Snow --- tests/qemu-iotests/254

[Qemu-devel] [PULL 1/3] migration/dirty-bitmaps: change bitmap enumeration method

2019-05-28 Thread John Snow
Shift from looking at every root BDS to *every* BDS. This will migrate bitmaps that are attached to blockdev created nodes instead of just ones attached to emulated storage devices. Note that this will not migrate anonymous or internal-use bitmaps, as those are defined as having no name. This wil

[Qemu-devel] [PULL 2/3] qapi: support external bitmaps in block-dirty-bitmap-merge

2019-05-28 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Add new optional parameter making possible to merge bitmaps from different nodes. It is needed to maintain external snapshots during incremental backup chain history. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow Message-id: 2019051715211

[Qemu-devel] [PULL 0/3] Bitmaps patches

2019-05-28 Thread John Snow
The following changes since commit 8c1ecb590497b0349c550607db923972b37f6963: Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-next-280519-2' into staging (2019-05-28 17:38:32 +0100) are available in the Git repository at: https://github.com/jnsnow/qemu.git tags/bitmaps-pull-

Re: [Qemu-devel] [PATCH 3/3] block/qcow2-bitmap: rewrite bitmap reopening logic

2019-05-28 Thread John Snow
On 5/23/19 11:47 AM, Vladimir Sementsov-Ogievskiy wrote: > Current logic > = > > Reopen rw -> ro: > > Store bitmaps and release BdrvDirtyBitmap's. > > Reopen ro -> rw: > > Load bitmap list > Skip bitmaps which for which we don't have BdrvDirtyBitmap [this is >the worst thing]

Re: [Qemu-devel] Headers without multiple inclusion guards

2019-05-28 Thread BALATON Zoltan
On Tue, 28 May 2019, Markus Armbruster wrote: sam460ex M: BALATON Zoltan hw/display/sm501_template.h This is like other *_template.h files mentioned by Peter in his reply and is intended to be included multiple times. Regards, BALATON Zoltan

Re: [Qemu-devel] Sketch of a transition of QEMU docs to Sphinx

2019-05-28 Thread Peter Maydell
On Tue, 28 May 2019 at 20:09, John Snow wrote: > > > > On 5/21/19 2:56 PM, Peter Maydell wrote: > > Currently we have a vague plan that we should migrate our > > documentation away from Texinfo to using Sphinx, plus some isolated > > bits of documentation already in .rst format. This email is an a

Re: [Qemu-devel] [PULL 16/16] tcg/i386: Use MOVDQA for TCG_TYPE_V128 load/store

2019-05-28 Thread Richard Henderson
On 5/28/19 1:46 PM, David Hildenbrand wrote: > FWIW, this seems to be the easiest way: > > diff --git a/target/s390x/cpu.h b/target/s390x/cpu.h > index f0d9a6a36d..d363ae0fb3 100644 > --- a/target/s390x/cpu.h > +++ b/target/s390x/cpu.h > @@ -66,7 +66,7 @@ struct CPUS390XState { > * The float

  1   2   3   >