RE: nec-usb-xhci migration breakage

2020-11-15 Thread Sai Pavan Boddu
HI, > -Original Message- > From: kra...@redhat.com > Sent: Monday, November 16, 2020 12:34 PM > To: Sai Pavan Boddu > Cc: Dr. David Alan Gilbert ; > marcandre.lur...@redhat.com; qemu-devel@nongnu.org > Subject: Re: nec-usb-xhci migration breakage > > On Mon, Nov 16, 2020 at 05:18:22AM

RE: [PATCH 0/2] colo-compare: Fix memory leak for non-tcp packet

2020-11-15 Thread Zhang, Chen
Queued this series to COLO tree. Thanks Chen > -Original Message- > From: Lukas Straub > Sent: Sunday, November 15, 2020 7:19 PM > To: qemu-devel > Cc: Zhang, Chen ; Li Zhijian > ; Jason Wang > Subject: [PATCH 0/2] colo-compare: Fix memory leak for non-tcp packet > > Hello Everyone,

RE: [PATCH 1/2] net/colo-compare.c: Fix memory leak for non-tcp packet

2020-11-15 Thread Zhang, Chen
> -Original Message- > From: Lukas Straub > Sent: Sunday, November 15, 2020 7:19 PM > To: qemu-devel > Cc: Zhang, Chen ; Li Zhijian > ; Jason Wang > Subject: [PATCH 1/2] net/colo-compare.c: Fix memory leak for non-tcp > packet > > Additional to removing the packet from the secondary

RE: [PATCH 2/2] net/colo-compare.c: Optimize removal of secondary packet

2020-11-15 Thread Zhang, Chen
> -Original Message- > From: Lukas Straub > Sent: Sunday, November 15, 2020 7:19 PM > To: qemu-devel > Cc: Zhang, Chen ; Li Zhijian > ; Jason Wang > Subject: [PATCH 2/2] net/colo-compare.c: Optimize removal of secondary > packet > > g_queue_remove needs to look up the list entry

RE: nec-usb-xhci migration breakage

2020-11-15 Thread Sai Pavan Boddu
Thanks, I did not observe that. Regards, Sai Pavan > -Original Message- > From: kra...@redhat.com > Sent: Monday, November 16, 2020 12:34 PM > To: Sai Pavan Boddu > Cc: Dr. David Alan Gilbert ; > marcandre.lur...@redhat.com; qemu-devel@nongnu.org > Subject: Re: nec-usb-xhci migration

Re: nec-usb-xhci migration breakage

2020-11-15 Thread kra...@redhat.com
On Mon, Nov 16, 2020 at 05:18:22AM +, Sai Pavan Boddu wrote: > +Gerd > Hi David, > > Sorry for the delayed response. I was able to reproduce your issue with > nec-usb-xhci, in my previous testing we have tested with qemu-xhci model > which was good. > I would look further into this. > >

Re: [PATCH 4/6] migration: Check xbzrle-cache-size more carefully

2020-11-15 Thread Markus Armbruster
"Dr. David Alan Gilbert" writes: > * Markus Armbruster (arm...@redhat.com) wrote: >> "Dr. David Alan Gilbert" writes: >> >> > * Markus Armbruster (arm...@redhat.com) wrote: >> >> migrate-set-parameters passes the size to xbzrle_cache_resize(). >> >> xbzrle_cache_resize() checks it fits into

Re: [PATCH v2] json: Fix a memleak in parse_pair()

2020-11-15 Thread Markus Armbruster
"Chenqun (kuhn)" writes: >> -Original Message- >> From: Chenzhendong (alex) >> Sent: Friday, November 13, 2020 10:55 PM >> To: arm...@redhat.com >> Cc: Chenzhendong (alex) ; qemu-devel@nongnu.org; >> qemu-triv...@nongnu.org; Zhanghailiang ; >> Chenqun (kuhn) >> Subject: [PATCH v2] json:

RE: nec-usb-xhci migration breakage

2020-11-15 Thread Sai Pavan Boddu
+Gerd Hi David, Sorry for the delayed response. I was able to reproduce your issue with nec-usb-xhci, in my previous testing we have tested with qemu-xhci model which was good. I would look further into this. @Gerd: Do you have any high level comments on this ? Regards, Sai Pavan >

[PATCH] ads7846: moves from the hw/display folder to the hw/input folder.

2020-11-15 Thread Gan Qixin
ads7846 is a touch-screen controller that is an input device rather than a display device, so move it to the hw/input folder. Signed-off-by: Gan Qixin --- hw/arm/Kconfig | 2 +- hw/display/Kconfig | 3 --- hw/display/meson.build | 1 - hw/input/Kconfig

[PATCH v3 3/7] accel/tcg/user-exec: silence the compiler warnings

2020-11-15 Thread Chen Qun
When using -Wimplicit-fallthrough in our CFLAGS on GCC9, the compiler showed warning: ../accel/tcg/user-exec.c: In function ‘handle_cpu_signal’: ../accel/tcg/user-exec.c:169:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 169 |

[PATCH v3 2/7] hw/intc/arm_gicv3_kvm: silence the compiler warnings

2020-11-15 Thread Chen Qun
When using -Wimplicit-fallthrough in our CFLAGS on GCC9, the compiler showed warning: hw/intc/arm_gicv3_kvm.c: In function ‘kvm_arm_gicv3_put’: hw/intc/arm_gicv3_kvm.c:484:13: warning: this statement may fall through [-Wimplicit-fallthrough=] kvm_gicc_access(s, ICC_AP0R_EL1(1),

[PATCH v3 6/7] ppc: Add a missing break for PPC6xx_INPUT_TBEN

2020-11-15 Thread Chen Qun
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning: hw/ppc/ppc.c: In function ‘ppc6xx_set_irq’: hw/ppc/ppc.c:118:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 118 | if (level) { |^ hw/ppc/ppc.c:123:9: note:

[PATCH v3 7/7] target/ppc: replaced the TODO with LOG_UNIMP and add break for silence warnings

2020-11-15 Thread Chen Qun
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning: target/ppc/mmu_helper.c: In function ‘dump_mmu’: target/ppc/mmu_helper.c:1351:12: warning: this statement may fall through [-Wimplicit-fallthrough=] 1351 | if (ppc64_v3_radix(env_archcpu(env))) { |

[PATCH v3 0/7] silence the compiler warnings

2020-11-15 Thread Chen Qun
Hi folks, This series fix some "fall through" warnings reported by GCC_9.3. They've been reviewed for a long time. Some of these patchs may be important for QEMU 5.2. Such as the Patch6 miss a break statement. Others only add "fall through" comments and may not have a negative impact for

[PATCH v3 1/7] target/i386: silence the compiler warnings in gen_shiftd_rm_T1

2020-11-15 Thread Chen Qun
The current "#ifdef TARGET_X86_64" statement affects the compiler's determination of fall through. When using -Wimplicit-fallthrough in our CFLAGS on GCC9, the compiler showed warning: target/i386/translate.c: In function ‘gen_shiftd_rm_T1’: target/i386/translate.c:1773:12: warning: this

[PATCH v3 4/7] target/sparc/translate: silence the compiler warnings

2020-11-15 Thread Chen Qun
When using -Wimplicit-fallthrough in our CFLAGS on GCC9, the compiler showed warning: target/sparc/translate.c: In function ‘gen_st_asi’: target/sparc/translate.c:2320:12: warning: this statement may fall through [-Wimplicit-fallthrough=] 2320 | if (!(dc->def->features &

[PATCH v3 5/7] target/sparc/win_helper: silence the compiler warnings

2020-11-15 Thread Chen Qun
When using -Wimplicit-fallthrough in our CFLAGS on GCC9, the compiler showed warning: target/sparc/win_helper.c: In function ‘get_gregset’: target/sparc/win_helper.c:304:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 304 | trace_win_helper_gregset_error(pstate);

Re: [PATCH] usb/hcd-xhci: Fix an index-out-of-bounds in xhci_runtime_write and xhci_runtime_read

2020-11-15 Thread Alex Chen
Kindly ping... On 2020/11/5 22:02, AlexChen wrote: > Currently, the 'v' is not checked whether it is between 0 and 16, > which may result in an out-of-bounds access to the array 'xhci->intr[]'. > This is LP#1902112. Following is the reproducer provided in: >

Re: [PATCH] contrib/libvhost-user: Fix bad printf format specifiers

2020-11-15 Thread Alex Chen
Kindly ping... On 2020/11/4 18:23, AlexChen wrote: > We should use printf format specifier "%u" instead of "%d" for > argument of type "unsigned int". > > Reported-by: Euler Robot > Signed-off-by: Alex Chen > --- > contrib/libvhost-user/libvhost-user.c | 24 > 1 file

RE: [PATCH-for-5.2 v2] hw/intc: fix heap-buffer-overflow in rxicu_realize()

2020-11-15 Thread Chenqun (kuhn)
Kindly ping! Maybe it should be need for version 5.2. > -Original Message- > From: Chenqun (kuhn) > Sent: Wednesday, November 11, 2020 10:18 PM > To: qemu-devel@nongnu.org; qemu-triv...@nongnu.org > Cc: Zhanghailiang ; ganqixin > ; f4...@amsat.org; Chenqun (kuhn) > ; Peter Maydell ; >

Re: [RFC PATCH 0/6] migration: Multi-thread compression with zstd method

2020-11-15 Thread Zeyu Jin
On 2020/11/9 17:08, Zeyu Jin wrote: > Currently we have both multi-thread compression and multifd to optimize > live migration in Qemu. Mulit-thread compression deals with the situation > where network bandwith is limited but cpu resource adequate. Multifd instead > aims to take full advantage of

[PULL 10/17] vhost-user-blk-test: close fork child file descriptors

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi Do not leave stdin and stdout open after fork. stdout is the tap-driver.pl pipe. If we keep the pipe open then tap-driver.pl will not detect that qos-test has terminated and it will hang. Signed-off-by: Stefan Hajnoczi Message-Id:

[PULL 13/17] block/export: port virtio-blk discard/write zeroes input validation

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi Validate discard/write zeroes the same way we do for virtio-blk. Some of these checks are mandated by the VIRTIO specification, others are internal to QEMU. Signed-off-by: Stefan Hajnoczi Message-Id: <2020124331.1393747-9-stefa...@redhat.com> Reviewed-by: Michael S.

[PULL 16/17] contrib/libvhost-user: Fix bad printf format specifiers

2020-11-15 Thread Michael S. Tsirkin
From: AlexChen We should use printf format specifier "%u" instead of "%d" for argument of type "unsigned int". Reported-by: Euler Robot Signed-off-by: Alex Chen Message-Id: <5fa28106.6000...@huawei.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin ---

[PULL 12/17] vhost-user-blk-test: fix races by using fd passing

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi Pass the QMP and vhost-user-blk server sockets as file descriptors. That way the sockets are already open and in a listen state when the QEMU process is launched. This solves the race with qemu-storage-daemon startup where the UNIX domain sockets may not be ready yet when

[PULL 17/17] vhost-user-blk/scsi: Fix broken error handling for socket call

2020-11-15 Thread Michael S. Tsirkin
From: AlexChen When socket() fails, it returns -1, 0 is the normal return value and should not return error. Reported-by: Euler Robot Signed-off-by: AlexChen Message-Id: <5f9a5b48.9030...@huawei.com> Reviewed-by: Raphael Norwitz Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S.

[PULL 04/17] configure: mark vhost-user Linux-only

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi The vhost-user protocol uses the Linux eventfd feature and is typically connected to Linux kvm.ko ioeventfd and irqfd file descriptors. The protocol specification in docs/interop/vhost-user.rst does not describe how platforms without eventfd support work. The QEMU

[PULL 14/17] vhost-user-blk-test: test discard/write zeroes invalid inputs

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi Exercise input validation code paths in block/export/vhost-user-blk-server.c. Signed-off-by: Stefan Hajnoczi Message-Id: <2020124331.1393747-10-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin ---

[PULL 09/17] vhost-user-blk-test: rename destroy_drive() to destroy_file()

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi The function is used not just for image files but also for UNIX domain sockets (QMP monitor and vhost-user-blk). Reflect that in the name. Signed-off-by: Stefan Hajnoczi Message-Id: <2020124331.1393747-5-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin

[PULL 05/17] hw/i386/acpi-build: Fix maybe-uninitialized error when ACPI hotplug off

2020-11-15 Thread Michael S. Tsirkin
From: Philippe Mathieu-Daudé GCC 9.3.0 thinks that 'method' can be left uninitialized. This code is already in the "if (bsel || pcihp_bridge_en)" block statement, but it isn't smart enough to figure it out. Restrict the code to be used only in the "if (bsel || pcihp_bridge_en)" block statement

[PULL 15/17] block/export: port virtio-blk read/write range check

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi Check that the sector number and byte count are valid. Signed-off-by: Stefan Hajnoczi Message-Id: <2020124331.1393747-11-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- block/export/vhost-user-blk-server.c | 14

[PULL 11/17] vhost-user-blk-test: drop unused return value

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi The sock_path return value was unused and bogus (it doesn't make sense when there are multiple drives because only the last path is arbitrarily returned). Signed-off-by: Stefan Hajnoczi Message-Id: <2020124331.1393747-7-stefa...@redhat.com> Reviewed-by: Michael S.

[PULL 06/17] test: new qTest case to test the vhost-user-blk-server

2020-11-15 Thread Michael S. Tsirkin
From: Coiby Xu This test case has the same tests as tests/virtio-blk-test.c except for tests have block_resize. Since vhost-user server can only server one client one time, two instances of vhost-user-blk-server are started by qemu-storage-daemon for the hotplug test. In order to not block

[PULL 02/17] meson: move vhost_user_blk_server to meson.build

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi The --enable/disable-vhost-user-blk-server options were implemented in ./configure. There has been confusion about them and part of the problem is that the shell syntax used for setting the default value is not easy to read. Move the option over to meson where the

[PULL 07/17] tests/qtest: add multi-queue test case to vhost-user-blk-test

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi Message-id: 20201001144604.559733-3-stefa...@redhat.com Signed-off-by: Stefan Hajnoczi Message-Id: <2020124331.1393747-3-stefa...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin ---

[PULL 08/17] libqtest: add qtest_socket_server()

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi There is a qtest_socket_client() API. Add an equivalent qtest_socket_server() API that returns a new UNIX domain socket in the listen state. The code for this was already there but only used internally in init_socket(). Signed-off-by: Stefan Hajnoczi Message-Id:

[PULL 00/17] pc,vhost: fixes, new test

2020-11-15 Thread Michael S. Tsirkin
The following changes since commit c6f28ed5075df79fef39c500362a3f4089256c9c: Update version for v5.2.0-rc1 release (2020-11-10 22:29:57 +) are available in the Git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git tags/for_upstream for you to fetch changes up to

[PULL 03/17] vhost-user-blk-server: depend on CONFIG_VHOST_USER

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi I interpreted CONFIG_VHOST_USER as controlling only QEMU's vhost-user device frontends. However, virtiofsd and contrib/ vhost-user device backends are also controlled by CONFIG_VHOST_USER. Make the vhost-user-blk server depend on CONFIG_VHOST_USER for consistency. Now the

[PULL 01/17] vhost-user: fix VHOST_USER_ADD/REM_MEM_REG truncation

2020-11-15 Thread Michael S. Tsirkin
From: Stefan Hajnoczi QEMU currently truncates the mmap_offset field when sending VHOST_USER_ADD_MEM_REG and VHOST_USER_REM_MEM_REG messages. The struct layout looks like this: typedef struct VhostUserMemoryRegion { uint64_t guest_phys_addr; uint64_t memory_size; uint64_t

Re: [PATCH] tests/vm: update NetBSD to 9.1

2020-11-15 Thread Thomas Huth
On 14/11/2020 05.01, Brad Smith wrote: > tests/vm: update NetBSD to 9.1 > > Signed-off-by: Brad Smith > Reviewed-by: Gerd Hoffmann > Tested-by: Gerd Hoffmann > --- > tests/vm/netbsd | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tests/vm/netbsd

Re: [PULL 00/26] Fixes for Lesser GPL license statements

2020-11-15 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20201115162613.74645-1-th...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20201115162613.74645-1-th...@redhat.com Type: series Subject: [PULL 00/26] Fixes for Lesser GPL license

Re: [PATCH] pci: Refuse to hotplug PCI Devices when the Guest OS is not ready

2020-11-15 Thread Marcel Apfelbaum
Hi Michael, On Wed, Nov 11, 2020 at 2:35 PM Michael S. Tsirkin wrote: > On Thu, Oct 22, 2020 at 02:40:26PM +0300, Marcel Apfelbaum wrote: > > From: Marcel Apfelbaum > > > > During PCIe Root Port's transition from Power-Off to Power-ON (or > vice-versa) > > the "Slot Control Register" has the

[PULL 22/26] sparc tcg cpus: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

Re: [PATCH] pci: Refuse to hotplug PCI Devices when the Guest OS is not ready

2020-11-15 Thread Marcel Apfelbaum
Hi Roman, On Wed, Nov 11, 2020 at 6:10 PM Roman Kagan wrote: > On Thu, Oct 22, 2020 at 02:40:26PM +0300, Marcel Apfelbaum wrote: > > From: Marcel Apfelbaum > > > > During PCIe Root Port's transition from Power-Off to Power-ON (or > vice-versa) > > the "Slot Control Register" has the "Power

[PULL 24/26] tests/acceptance: Fix LGPL information in the file headers

2020-11-15 Thread Thomas Huth
From: Gan Qixin There never was a "Lesser GPL version 2.0", It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all "Lesser GPL version 2.0" with "Lesser GPL version 2.1" in the tests/acceptance folder. Signed-off-by: Gan Qixin Message-Id:

[PULL 21/26] e1000e: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 19/26] nvdimm: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 20/26] x86 hvf cpus: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 09/26] usb: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 17/26] tpm: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 26/26] nomaintainer: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. This patch contains all the files, whose

[PULL 25/26] test: Fix LGPL information in the file headers

2020-11-15 Thread Thomas Huth
From: Gan Qixin There never was a "Lesser GPL version 2.0", It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all "Lesser GPL version 2.0" with "Lesser GPL version 2.1" in the test folder. Signed-off-by: Gan Qixin Message-Id:

[PULL 08/26] tricore tcg cpus: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 12/26] arm tcg cpus: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 13/26] parallel nor flash: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 16/26] overall/alpha tcg cpus|hppa: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 23/26] tests/migration: Fix LGPL information in the file headers

2020-11-15 Thread Thomas Huth
From: Gan Qixin There never was a "Lesser GPL version 2.0", It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all "Lesser GPL version 2.0" with "Lesser GPL version 2.1" in the tests/migration folder. Signed-off-by: Gan Qixin Message-Id:

[PULL 07/26] xtensa tcg cpus: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 18/26] w32: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 15/26] overall usermode...: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 11/26] x86 tcg cpus: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 05/26] microblaze tcg cpus: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 04/26] cris tcg cpus: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 06/26] prep: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 14/26] migration: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 10/26] linux user: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 00/26] Fixes for Lesser GPL license statements

2020-11-15 Thread Thomas Huth
Hi Peter, the following changes since commit b50ea0d54bbca7d440315c3d0c0f7a4d6537b180: Merge remote-tracking branch 'remotes/alistair/tags/pull-riscv-to-apply-20201113-1' into staging (2020-11-14 11:22:07 +) are available in the Git repository at: https://gitlab.com/huth/qemu.git

[PULL 03/26] powerpc tcg: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 01/26] semihosting: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[PULL 02/26] non-virt: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
From: Chetan Pant There is no "version 2" of the "Lesser" General Public License. It is either "GPL version 2.0" or "Lesser GPL version 2.1". This patch replaces all occurrences of "Lesser GPL version 2" with "Lesser GPL version 2.1" in comment section. Signed-off-by: Chetan Pant Message-Id:

[Bug 1904331] [NEW] Coding bug in the function serial_ioport_write in serial.c

2020-11-15 Thread Jonathan D. Belanger
Public bug reported: Branch hash: b50ea0d (pulled from github). I was reviewing the code and noticed the following in the function serial_ioport_write: assert(size == 1 && addr < 8); . . . switch(addr) { default: case 0: if (s->lcf &

Re: [PATCH 30/30] nomaintainer: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
On 23/10/2020 14.44, Chetan Pant wrote: > There is no "version 2" of the "Lesser" General Public License. > It is either "GPL version 2.0" or "Lesser GPL version 2.1". > This patch replaces all occurrences of "Lesser GPL version 2" with > "Lesser GPL version 2.1" in comment section. > > This

[PATCH v2 3/4] configure: Add a proper check for sys/ioccom.h and use it in tpm_ioctl.h

2020-11-15 Thread Thomas Huth
On Solaris and Haiku, the _IO() macros are defined in . Add a proper check for this header to our build system, and make sure to include the header in tpm_ioctl.h to fix a build failure on Solaris and Haiku. Signed-off-by: Thomas Huth --- v2: Check in meson.build instead of using the configure

Re: [PATCH 3/4] configure: Add a proper check for sys/ioccom.h and use it in tpm_ioctl.h

2020-11-15 Thread Thomas Huth
On 15/11/2020 15.34, Paolo Bonzini wrote: > On 15/11/20 15:00, Thomas Huth wrote: >> On 14/11/2020 17.56, 罗勇刚(Yonggang Luo) wrote: >>> Can we check this in meson.build? >> >> That would be nicer, indeed, but I did not spot a place where I could add my >> code there ... all the other HAVE_xxx_H

Re: [PATCH 25/30] nvdimm: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
On 23/10/2020 14.37, Chetan Pant wrote: > There is no "version 2" of the "Lesser" General Public License. > It is either "GPL version 2.0" or "Lesser GPL version 2.1". > This patch replaces all occurrences of "Lesser GPL version 2" with > "Lesser GPL version 2.1" in comment section. > >

Re: [PATCH 20/30] migration: Fix Lesser GPL version number

2020-11-15 Thread Thomas Huth
On 23/10/2020 14.31, Chetan Pant wrote: > There is no "version 2" of the "Lesser" General Public License. > It is either "GPL version 2.0" or "Lesser GPL version 2.1". > This patch replaces all occurrences of "Lesser GPL version 2" with > "Lesser GPL version 2.1" in comment section. > >

Re: [RFC] vfio-pci/migration: Dirty logging of the Memory BAR region?

2020-11-15 Thread Paolo Bonzini
On 15/11/20 15:31, Zenghui Yu wrote: diff --git a/softmmu/memory.c b/softmmu/memory.c index 71951fe4dc..0958db1a08 100644 --- a/softmmu/memory.c +++ b/softmmu/memory.c @@ -1806,7 +1806,10 @@ bool memory_region_is_ram_device(MemoryRegion *mr)  uint8_t

Re: [PATCH 3/4] configure: Add a proper check for sys/ioccom.h and use it in tpm_ioctl.h

2020-11-15 Thread Paolo Bonzini
On 15/11/20 15:00, Thomas Huth wrote: On 14/11/2020 17.56, 罗勇刚(Yonggang Luo) wrote: Can we check this in meson.build? That would be nicer, indeed, but I did not spot a place where I could add my code there ... all the other HAVE_xxx_H symbols are added in the configure script. There is one

[RFC] vfio-pci/migration: Dirty logging of the Memory BAR region?

2020-11-15 Thread Zenghui Yu
Hi folks, While trying the new vfio-pci migration on my arm64 server, I noticed an error at the very beginning: qemu-system-aarch64: kvm_set_user_memory_region: KVM_SET_USER_MEMORY_REGION failed, slot=5, start=0x80, size=0x10: Invalid argument The reason is that we've registered

Re: [PATCH 3/4] configure: Add a proper check for sys/ioccom.h and use it in tpm_ioctl.h

2020-11-15 Thread Thomas Huth
On 14/11/2020 17.56, 罗勇刚(Yonggang Luo) wrote: > Can we check this in meson.build? That would be nicer, indeed, but I did not spot a place where I could add my code there ... all the other HAVE_xxx_H symbols are added in the configure script. Maybe Paolo or Marc-André (now on CC:) have an idea

[PATCH v11 7/7] tests/test-char.c: Wait for the chardev to connect in char_socket_client_dupid_test

2020-11-15 Thread Lukas Straub
A connecting chardev object has an additional reference by the connecting thread, so if the chardev is still connecting by the end of the test, then the chardev object won't be freed. This in turn means that the yank instance won't be unregistered and when running the next test-case

[PATCH v11 5/7] io/channel-tls.c: make qio_channel_tls_shutdown thread-safe

2020-11-15 Thread Lukas Straub
Make qio_channel_tls_shutdown thread-safe by using atomics when accessing tioc->shutdown. Signed-off-by: Lukas Straub Acked-by: Stefan Hajnoczi Reviewed-by: Daniel P. Berrangé --- io/channel-tls.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/io/channel-tls.c

[PATCH v11 6/7] io: Document qmp oob suitability of qio_channel_shutdown and io_shutdown

2020-11-15 Thread Lukas Straub
Migration and yank code assume that qio_channel_shutdown is thread -safe and can be called from qmp oob handler. Document this after checking the code. Signed-off-by: Lukas Straub Acked-by: Stefan Hajnoczi Reviewed-by: Daniel P. Berrangé --- include/io/channel.h | 5 - 1 file changed, 4

[PATCH v11 4/7] migration: Add yank feature

2020-11-15 Thread Lukas Straub
Register yank functions on sockets to shut them down. Signed-off-by: Lukas Straub Acked-by: Stefan Hajnoczi Acked-by: Dr. David Alan Gilbert --- migration/channel.c | 13 + migration/migration.c | 25 + migration/multifd.c | 10

[PATCH v11 1/7] Introduce yank feature

2020-11-15 Thread Lukas Straub
The yank feature allows to recover from hanging qemu by "yanking" at various parts. Other qemu systems can register themselves and multiple yank functions. Then all yank functions for selected instances can be called by the 'yank' out-of-band qmp command. Available instances can be queried by a

[PATCH v11 3/7] chardev/char-socket.c: Add yank feature

2020-11-15 Thread Lukas Straub
Register a yank function to shutdown the socket on yank. Signed-off-by: Lukas Straub Acked-by: Stefan Hajnoczi --- chardev/char-socket.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/chardev/char-socket.c b/chardev/char-socket.c index

[PATCH v11 2/7] block/nbd.c: Add yank feature

2020-11-15 Thread Lukas Straub
Register a yank function which shuts down the socket and sets s->state = NBD_CLIENT_QUIT. This is the same behaviour as if an error occured. Signed-off-by: Lukas Straub Acked-by: Stefan Hajnoczi --- block/nbd.c | 154 +++- 1 file changed, 93

[PATCH v11 0/7] Introduce 'yank' oob qmp command to recover from hanging qemu

2020-11-15 Thread Lukas Straub
Hello Everyone, So here is v11. @Eric Blake and @Marc-André Lureau: We still need ACKs for NBD and chardev. Changes: v11: -squashed MAINTAINERS update into patch 1 -move qmp doc of yank before misc -add title for qmp docs -change "Since:" to 6.0 -add Reviewed-by tags v10: -moved from

[PATCH 2/2] net/colo-compare.c: Optimize removal of secondary packet

2020-11-15 Thread Lukas Straub
g_queue_remove needs to look up the list entry first, but we already have it as result and can remove it directly with g_queue_delete_link. Signed-off-by: Lukas Straub --- net/colo-compare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/colo-compare.c

[PATCH 1/2] net/colo-compare.c: Fix memory leak for non-tcp packet

2020-11-15 Thread Lukas Straub
Additional to removing the packet from the secondary queue, we also need to free it. Signed-off-by: Lukas Straub --- net/colo-compare.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/colo-compare.c b/net/colo-compare.c index 337025b44f..eed0fbb27b 100644 --- a/net/colo-compare.c +++

[PATCH 0/2] colo-compare: Fix memory leak for non-tcp packet

2020-11-15 Thread Lukas Straub
Hello Everyone, This fixes a memory leak for non-tcp packets and optimizes the removal from the queue. Lukas Straub (2): net/colo-compare.c: Fix memory leak for non-tcp packet net/colo-compare.c: Optimize removal of secondary packet net/colo-compare.c | 3 ++- 1 file changed, 2

Regressions in build process introduced since August

2020-11-15 Thread Stefan Weil
Dear all, yesterday I tried to build new QEMU installers for Windows and noticed two regressions which break my build process: *** Change in handling of --extra-cflags Running `configure [...] --extra-cflags="-I /xyz"` results in compiler flags `-I [...] /xyz`, so the `-I` and `/xyz` are

[Bug 1904317] [NEW] cpu feature selection is not affected to guest 's cpuid with whpx

2020-11-15 Thread Takumi Nakamura
Public bug reported: On windows with -accel whpx, "-cpu" is ignored without any messages. Guest recognizes features as same as host's. Confirmed on v5.2.0-rc1. I suggest qemu may do, - Warn with incompatible -cpu options were given. - Enhance cpuid handling. Background: I was investigated

[Bug 1904315] [NEW] CTRL+ALT is ignored on gtk window (configured with gtk and sdl)

2020-11-15 Thread Takumi Nakamura
Public bug reported: I am building and using qemu on Windows 10 via git. Building for targeting windows, on debian. Since meson is introduced, my executable, qemu-system-x86_64.exe, tends to ignore hotkeys (like CTRL+ATL+G, CTRL+ALT+2) As far as I have been investigating the issue, I am

Re: [PATCH v10 7/8] MAINTAINERS: Add myself as maintainer for yank feature

2020-11-15 Thread Lukas Straub
On Mon, 02 Nov 2020 07:33:54 +0100 Markus Armbruster wrote: > Lukas Straub writes: > > > I'll maintain this for now as the colo usecase is the first user > > of this functionality. > > > > Signed-off-by: Lukas Straub > > Acked-by: Stefan Hajnoczi > > --- > > MAINTAINERS | 7 +++ > > 1

Re: [PATCH v10 1/8] Introduce yank feature

2020-11-15 Thread Lukas Straub
On Mon, 02 Nov 2020 07:32:55 +0100 Markus Armbruster wrote: > Lukas Straub writes: > > > The yank feature allows to recover from hanging qemu by "yanking" > > at various parts. Other qemu systems can register themselves and > > multiple yank functions. Then all yank functions for selected > >