Re: [PATCH v10 00/32] i386 cleanup

2020-12-10 Thread Philippe Mathieu-Daudé
Hi Claudio, On 12/10/20 1:11 PM, Claudio Fontana wrote: > Hello, this is version 10 of the cleanup, changed from RFC to PATCH. > > v9 -> v10: minor tweaks and fixes > > * in "i386: split cpu accelerators from cpu.c", > > use kvm/kvm-cpu.c, hvf/hvf-cpu.c, tcg/tcg-cpu.c. > Easier to understand co

Re: [PATCH v10 24/32] cpu: move cc->transaction_failed to tcg_ops

2020-12-10 Thread Philippe Mathieu-Daudé
On 12/10/20 2:10 PM, Claudio Fontana wrote: > On 12/10/20 1:59 PM, Philippe Mathieu-Daudé wrote: >> On 12/10/20 1:12 PM, Claudio Fontana wrote: >>> Signed-off-by: Claudio Fontana >>> Reviewed-by: Alex Bennée >>> --- >>> include/hw/core/cpu.h | 18 +++--- >>> include/hw/core/t

Re: [PATCH v2 1/1] ui/gtk: Launching GTK UI with OpenGL on causes the? refreshrate update to not run

2020-12-10 Thread Gerd Hoffmann
Hi, > /* ui/gtk.c */ > void gd_update_windowsize(VirtualConsole *vc); > +int gd_refresh_rate_millihz(GtkWidget *window); Patch is whitespace-mangled. Can you resend with "git send-email"? thanks, Gerd

Re: [PATCH v10 24/32] cpu: move cc->transaction_failed to tcg_ops

2020-12-10 Thread Claudio Fontana
On 12/10/20 1:59 PM, Philippe Mathieu-Daudé wrote: > On 12/10/20 1:12 PM, Claudio Fontana wrote: >> Signed-off-by: Claudio Fontana >> Reviewed-by: Alex Bennée >> --- >> include/hw/core/cpu.h | 18 +++--- >> include/hw/core/tcg-cpu-ops.h | 10 ++ >> hw/mips/jazz.c

Re: [PATCH v2 04/13] compiler.h: remove GCC < 3 __builtin_expect fallback

2020-12-10 Thread Marc-André Lureau
Hi On Thu, Nov 26, 2020 at 3:57 PM Peter Maydell wrote: > On Thu, 26 Nov 2020 at 11:29, wrote: > > > > From: Marc-André Lureau > > > > Since commit efc6c07 ("configure: Add a test for the minimum compiler > > version"), QEMU explicitely depends on GCC >= 4.8. > > > > (clang >= 3.8 advertizes i

Re: [PATCH v10 25/32] cpu: move do_unaligned_access to tcg_ops

2020-12-10 Thread Claudio Fontana
On 12/10/20 2:01 PM, Philippe Mathieu-Daudé wrote: > On 12/10/20 1:12 PM, Claudio Fontana wrote: >> make it consistently SOFTMMU-only. >> >> Signed-off-by: Claudio Fontana >> Reviewed-by: Alex Bennée >> --- >> include/hw/core/cpu.h | 17 +++-- >> include/hw/core/tcg-cpu-ops

Re: [PATCH 1/1] spapr.c: set a 'kvm-type' default value instead of relying on NULL

2020-12-10 Thread Paolo Bonzini
To sum up everything: diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 2d5aeeb45a..61f0963916 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -3028,11 +3028,11 @@ static int spapr_kvm_type(MachineState *machine, const char *vm_type) return 0; } -if (!strcmp(vm_type, "HV

Re: [PATCH v2 02/13] qemu/atomic: Drop special case for unsupported compiler

2020-12-10 Thread Marc-André Lureau
Hi On Thu, Nov 26, 2020 at 4:23 PM Peter Maydell wrote: > On Thu, 26 Nov 2020 at 12:06, Daniel P. Berrangé > wrote: > > > > On Thu, Nov 26, 2020 at 11:49:28AM +, Peter Maydell wrote: > > > On Thu, 26 Nov 2020 at 11:29, wrote: > > > > > > > > From: Philippe Mathieu-Daudé > > > > > > > > Si

[PATCH v3 00/13] Remove GCC < 4.8 checks

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau Hi, Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8. v3: - drop first patch replacing QEMU_GNUC_PREREQ with G_GNUC_CHECK_VERSION - add last patch to remove QEMU_GNUC_PREREQ - tweak commit messages

Re: [PATCH 1/1] spapr.c: set a 'kvm-type' default value instead of relying on NULL

2020-12-10 Thread Greg Kurz
On Thu, 10 Dec 2020 13:34:59 +0100 Paolo Bonzini wrote: > To sum up everything: > LGTM > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c > index 2d5aeeb45a..61f0963916 100644 > --- a/hw/ppc/spapr.c > +++ b/hw/ppc/spapr.c > @@ -3028,11 +3028,11 @@ static int spapr_kvm_type(MachineState *machine,

[PATCH v3 05/13] tests: remove GCC < 4 fallbacks

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8. (clang >= 3.4 advertizes itself as GCC >= 4.2 compatible) Signed-off-by: Marc-André Lureau Reviewed-by: Peter Maydell Acked-by: Alex Bennée --- te

Fwd: [PATCH] ui/gtk: Update refresh rate for EGL as well

2020-12-10 Thread Nikola Pavlica
I guess "git send-email" didn't do much, so I'm just forwarding the email now. -- Forwarded message -- From: Nikola Pavlica Subject: [PATCH] ui/gtk: Update refresh rate for EGL as well Date: 2020-12-10T13:40:06+0100 To: qemu-de...@nongnu.com Cc: Nikola Pavlica --- include/ui/g

[PATCH v3 03/13] compiler.h: remove GCC < 3 __builtin_expect fallback

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8. (clang >= 3.4 advertizes itself as GCC >= 4.2 compatible and supports __builtin_expect too) Signed-off-by: Marc-André Lureau --- include/qemu/compil

[PULL 5/5] aspeed: g220a-bmc: Add an FRU

2020-12-10 Thread Cédric Le Goater
From: John Wang Add an eeprom device and fill it with fru information $ ipmitool fru print 0 Product Manufacturer : Bytedance Product Name : G220A Signed-off-by: John Wang Reviewed-by: Cédric Le Goater Message-Id: <20201210103607.556-1-wangzhiqiang...@bytedance.com> Signed-off-by: C

[PATCH v3 09/13] poison: remove GNUC check

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau QEMU requires Clang or GCC, that define and support __GNUC__ extensions Signed-off-by: Marc-André Lureau Reviewed-by: Peter Maydell --- include/exec/poison.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/exec/poison.h b/include/exec/poison.h index 7b9ac3

Re: [PATCH v2 02/13] qemu/atomic: Drop special case for unsupported compiler

2020-12-10 Thread Daniel P . Berrangé
On Thu, Dec 10, 2020 at 05:17:05PM +0400, Marc-André Lureau wrote: > Hi > > On Thu, Nov 26, 2020 at 4:23 PM Peter Maydell > wrote: > > > On Thu, 26 Nov 2020 at 12:06, Daniel P. Berrangé > > wrote: > > > > > > On Thu, Nov 26, 2020 at 11:49:28AM +, Peter Maydell wrote: > > > > On Thu, 26 Nov

Re: [PULL 00/36] target-arm queue

2020-12-10 Thread Peter Maydell
> The following changes since commit 5e7b204dbfae9a562fc73684986f936b97f63877: > > Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging > (2020-12-09 20:08:54 +) > > are available in the Git repository at: > > https://git.linaro.org/peo

[PATCH v3 04/13] qemu-plugin.h: remove GCC < 4

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8. (clang >= 3.4 advertizes itself as GCC >= 4.2 compatible) Signed-off-by: Marc-André Lureau Acked-by: Alex Bennée --- include/qemu/qemu-plugin.h | 9

Re: [PATCH] fuzz: map all BARs and enable PCI devices

2020-12-10 Thread Alexander Bulekov
On 201210 1411, Philippe Mathieu-Daudé wrote: > On 12/10/20 12:36 PM, Darren Kenny wrote: > > Hi Alex, > > > > On Wednesday, 2020-12-09 at 15:10:54 -05, Alexander Bulekov wrote: > >> Prior to this patch, the fuzzer found inputs to map PCI device BARs and > >> enable the device. While it is nice th

Re: [PATCH v10 23/32] cpu: move cc->do_interrupt to tcg_ops

2020-12-10 Thread Philippe Mathieu-Daudé
On 12/10/20 1:12 PM, Claudio Fontana wrote: > Signed-off-by: Claudio Fontana > Reviewed-by: Alex Bennée > --- > include/hw/core/cpu.h | 2 -- > include/hw/core/tcg-cpu-ops.h | 3 +++ > accel/tcg/cpu-exec.c| 4 ++-- > target/alpha/cpu.c | 2 +- > target/ar

[PATCH v3 06/13] virtiofsd: replace _Static_assert with QEMU_BUILD_BUG_ON

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau This allows to get rid of a check for older GCC version (which was a bit bogus too since it was falling back on c++ version..) Signed-off-by: Marc-André Lureau --- tools/virtiofsd/fuse_common.h | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --gi

[PATCH v3 01/13] qemu/atomic: Drop special case for unsupported compiler

2020-12-10 Thread marcandre . lureau
From: Philippe Mathieu-Daudé Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8, which has the GCC BZ#36793 bug fixed. We can safely remove the special case introduced in commit a281ebc11a6 ("virtio: add missin

Re: [PATCH v10 24/32] cpu: move cc->transaction_failed to tcg_ops

2020-12-10 Thread Philippe Mathieu-Daudé
On 12/10/20 1:12 PM, Claudio Fontana wrote: > Signed-off-by: Claudio Fontana > Reviewed-by: Alex Bennée > --- > include/hw/core/cpu.h | 18 +++--- > include/hw/core/tcg-cpu-ops.h | 10 ++ > hw/mips/jazz.c| 9 +++-- > target/alpha/cpu.c

[PATCH v3 12/13] linux-user: remove GNUC check

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau QEMU requires Clang or GCC, that define and support __GNUC__ extensions. Signed-off-by: Marc-André Lureau Reviewed-by: Peter Maydell --- linux-user/strace.c | 4 1 file changed, 4 deletions(-) diff --git a/linux-user/strace.c b/linux-user/strace.c index 11fea14fb

Re: [PATCH 1/1] spapr.c: set a 'kvm-type' default value instead of relying on NULL

2020-12-10 Thread Greg Kurz
On Thu, 10 Dec 2020 10:10:21 -0300 Daniel Henrique Barboza wrote: > > > On 12/10/20 9:47 AM, Greg Kurz wrote: > > On Thu, 10 Dec 2020 13:34:59 +0100 > > Paolo Bonzini wrote: > > > >> To sum up everything: > >> > > > > LGTM > > I just sent a v2 with a bit more done (e.g. added ignore case co

[PATCH v2 0/1] spapr.c: set a 'kvm-type' default value instead of relying on NULL

2020-12-10 Thread Daniel Henrique Barboza
changes from v1, all proposed by Greg: * Removed comment at the start of spapr_get_kvm_type() * Added a one liner return in spapr_get_kvm_type() * use g_ascii_strcasecmp() in all str comparisons in spapr_kvm_type() * Exposed the 'auto' default kvm-type mode in the docs * changed HV and PR to lower-

[PATCH v3 13/13] compiler.h: remove QEMU_GNUC_PREREQ

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau When needed, the G_GNUC_CHECK_VERSION() glib macro can be used instead. Signed-off-by: Marc-André Lureau --- include/qemu/compiler.h| 11 --- scripts/cocci-macro-file.h | 1 - 2 files changed, 12 deletions(-) diff --git a/include/qemu/compiler.h b/include/

[PATCH v3 07/13] compiler.h: explicit case for Clang printf attribute

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau Since commit efc6c07 ("configure: Add a test for the minimum compiler version"), QEMU explicitely depends on GCC >= 4.8, we could thus drop earlier version checks. Except clang advertizes itself as GCC 4.2.1. Since clang doesn't support gnu_printf, make that case explicit

Re: [PATCH v10 00/32] i386 cleanup

2020-12-10 Thread Claudio Fontana
On 12/10/20 2:05 PM, Philippe Mathieu-Daudé wrote: > Hi Claudio, > > On 12/10/20 1:11 PM, Claudio Fontana wrote: >> Hello, this is version 10 of the cleanup, changed from RFC to PATCH. >> >> v9 -> v10: minor tweaks and fixes >> >> * in "i386: split cpu accelerators from cpu.c", >> >> use kvm/kvm-c

Re: [PATCH v3 00/13] Remove GCC < 4.8 checks

2020-12-10 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20201210134752.780923-1-marcandre.lur...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20201210134752.780923-1-marcandre.lur...@redhat.com Subject: [PATCH v3 00/13] Re

Re: [PATCH v2 02/13] qemu/atomic: Drop special case for unsupported compiler

2020-12-10 Thread Daniel P . Berrangé
On Thu, Dec 10, 2020 at 01:42:51PM +, Daniel P. Berrangé wrote: > On Thu, Dec 10, 2020 at 05:17:05PM +0400, Marc-André Lureau wrote: > > Hi > > > > On Thu, Nov 26, 2020 at 4:23 PM Peter Maydell > > wrote: > > > > > On Thu, 26 Nov 2020 at 12:06, Daniel P. Berrangé > > > wrote: > > > > > > >

[PATCH v3 02/13] accel/tcg: Remove special case for GCC < 4.6

2020-12-10 Thread marcandre . lureau
From: Philippe Mathieu-Daudé Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8. We can safely remove the special case for GCC 4.6 introduced in commit 0448f5f8b81 ("cpu-exec: Fix compiler warning (-Werror=clob

Re: [PATCH v2 1/1] spapr.c: set a 'kvm-type' default value instead of relying on NULL

2020-12-10 Thread Greg Kurz
On Thu, 10 Dec 2020 10:07:21 -0300 Daniel Henrique Barboza wrote: > spapr_kvm_type() is considering 'vm_type=NULL' as a valid input, where > the function returns 0. This is relying on the current QEMU machine > options handling logic, where the absence of the 'kvm-type' option > will be reflected

[PATCH v3 11/13] compiler: remove GNUC check

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau QEMU requires Clang or GCC, that define and support __GNUC__ extensions. Signed-off-by: Marc-André Lureau --- include/qemu/compiler.h | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/qemu/compiler.h b/include/qemu/compiler.h index 62122

[PATCH v3 08/13] audio: remove GNUC & MSVC check

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau QEMU requires either GCC or Clang, which both advertize __GNUC__. Drop MSVC fallback path. Note: I intentionally left further cleanups for a later work. Signed-off-by: Marc-André Lureau --- audio/audio.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) dif

Re: [PATCH v2 1/1] spapr.c: set a 'kvm-type' default value instead of relying on NULL

2020-12-10 Thread Greg Kurz
On Thu, 10 Dec 2020 15:01:20 +0100 Greg Kurz wrote: > On Thu, 10 Dec 2020 10:07:21 -0300 > Daniel Henrique Barboza wrote: > > > spapr_kvm_type() is considering 'vm_type=NULL' as a valid input, where > > the function returns 0. This is relying on the current QEMU machine > > options handling log

[PATCH v3 10/13] xen: remove GNUC check

2020-12-10 Thread marcandre . lureau
From: Marc-André Lureau QEMU requires Clang or GCC, that define and support __GNUC__ extensions Signed-off-by: Marc-André Lureau Acked-by: Stefano Stabellini --- include/hw/xen/interface/io/ring.h | 9 - 1 file changed, 9 deletions(-) diff --git a/include/hw/xen/interface/io/ring.h

[Bug 1877384] Re: 9pfs file create with mapped-xattr can fail on overlayfs

2020-12-10 Thread Christian Schoenebeck
Good to know. Then it makes sense to close this report for now. Feel free to reopen it if necessary. Thanks! ** Changed in: qemu Status: Confirmed => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.lau

Re: [PATCH v2 1/1] security-process: update process information

2020-12-10 Thread Petr Matousek
On Thu, Dec 03, 2020 at 07:59:02PM +0530, P J P wrote: > From: Prasad J Pandit > > We are about to introduce a qemu-security mailing list to report > and triage QEMU security issues. > > Update the security process web page with new mailing list address > and triage details. > > Signed-off-by:

Re: [PATCH v2 1/1] spapr.c: set a 'kvm-type' default value instead of relying on NULL

2020-12-10 Thread Daniel Henrique Barboza
On 12/10/20 11:14 AM, Greg Kurz wrote: On Thu, 10 Dec 2020 15:01:20 +0100 Greg Kurz wrote: On Thu, 10 Dec 2020 10:07:21 -0300 Daniel Henrique Barboza wrote: spapr_kvm_type() is considering 'vm_type=NULL' as a valid input, where the function returns 0. This is relying on the current QEMU

[RFC PATCH] hw/misc/zynq_slcr: Avoid #DIV/0! error

2020-12-10 Thread Philippe Mathieu-Daudé
Malicious user can set the feedback divisor for the PLLs to zero, triggering a floating-point exception (SIGFPE). As the datasheet [*] is not clear how hardware behaves when these bits are zeroes, use the maximum divisor possible (128) to avoid the software FPE. [*] Zynq-7000 TRM, UG585 (v1.12.2)

Re: [PULL 00/11] Microvm 20201210 patches

2020-12-10 Thread Peter Maydell
he Git repository at: > > git://git.kraxel.org/qemu tags/microvm-20201210-pull-request > > for you to fetch changes up to 08af4e13f8d4db099bc444f83879c32459df7f3a: > > tests/acpi: disallow updates for

Re: [PATCH v3 08/13] audio: remove GNUC & MSVC check

2020-12-10 Thread Philippe Mathieu-Daudé
On 12/10/20 2:47 PM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > QEMU requires either GCC or Clang, which both advertize __GNUC__. > Drop MSVC fallback path. > > Note: I intentionally left further cleanups for a later work. > > Signed-off-by: Marc-André Lureau > --- > aud

RFC: don't store backing filename in qcow2 image

2020-12-10 Thread Vladimir Sementsov-Ogievskiy
Hi all! I have an idea, that not storing backing filename in qcow2 image at all may be a good thing. I'll give some reasons and want to know what do you think about it. 1. Libvirt has to manage and keep in mind backing chains anyway. This means, that storing this information in qcow2 header i

[PATCH] sdl2: Add extra mouse buttons

2020-12-10 Thread Darrell Walisser
Allows guest to receive mouse buttons 4 and 5, aka "SIDE" button and "EXTRA" button Signed-off-by: Darrell Walisser --- ui/sdl2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/sdl2.c b/ui/sdl2.c index 189d26e2a9..a578017268 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -275,6 +275,8 @@ st

Re: [PATCH v3 08/13] audio: remove GNUC & MSVC check

2020-12-10 Thread Philippe Mathieu-Daudé
On 12/10/20 3:27 PM, Peter Maydell wrote: > On Thu, 10 Dec 2020 at 14:26, Philippe Mathieu-Daudé > wrote: >> >> On 12/10/20 2:47 PM, marcandre.lur...@redhat.com wrote: >>> From: Marc-André Lureau >>> >>> QEMU requires either GCC or Clang, which both advertize __GNUC__. >>> Drop MSVC fallback pat

Re: [PATCH v3 09/13] poison: remove GNUC check

2020-12-10 Thread Philippe Mathieu-Daudé
On 12/10/20 2:47 PM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > QEMU requires Clang or GCC, that define and support __GNUC__ extensions > > Signed-off-by: Marc-André Lureau > Reviewed-by: Peter Maydell > --- > include/exec/poison.h | 2 -- > 1 file changed, 2 deletions(-

Re: [PATCH v3 12/13] linux-user: remove GNUC check

2020-12-10 Thread Philippe Mathieu-Daudé
On 12/10/20 2:47 PM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > QEMU requires Clang or GCC, that define and support __GNUC__ extensions. > > Signed-off-by: Marc-André Lureau > Reviewed-by: Peter Maydell > --- > linux-user/strace.c | 4 > 1 file changed, 4 deletions(

Re: [PATCH v3 03/13] compiler.h: remove GCC < 3 __builtin_expect fallback

2020-12-10 Thread Philippe Mathieu-Daudé
On 12/10/20 2:47 PM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Since commit efc6c07 ("configure: Add a test for the minimum compiler > version"), QEMU explicitely depends on GCC >= 4.8. > > (clang >= 3.4 advertizes itself as GCC >= 4.2 compatible and supports > __builtin_e

Re: [PATCH v3 08/13] audio: remove GNUC & MSVC check

2020-12-10 Thread Peter Maydell
On Thu, 10 Dec 2020 at 14:26, Philippe Mathieu-Daudé wrote: > > On 12/10/20 2:47 PM, marcandre.lur...@redhat.com wrote: > > From: Marc-André Lureau > > > > QEMU requires either GCC or Clang, which both advertize __GNUC__. > > Drop MSVC fallback path. > > > > Note: I intentionally left further cle

[PATCH] sdl2: Add extra mouse buttons

2020-12-10 Thread Darrell Walisser
Allows guest to receive mouse buttons 4 and 5, aka "SIDE" button and "EXTRA" button Signed-off-by: Darrell Walisser --- ui/sdl2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/sdl2.c b/ui/sdl2.c index 189d26e2a9..a578017268 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -275,6 +275,8 @@ st

[PATCH] sdl2: Add extra mouse buttons

2020-12-10 Thread Darrell Walisser
Allows guest to receive mouse buttons 4 and 5, aka "SIDE" button and "EXTRA" button Signed-off-by: Darrell Walisser --- ui/sdl2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/sdl2.c b/ui/sdl2.c index 189d26e2a9..a578017268 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -275,6 +275,8 @@ st

Re: [PATCH v3 03/13] compiler.h: remove GCC < 3 __builtin_expect fallback

2020-12-10 Thread Peter Maydell
On Thu, 10 Dec 2020 at 14:32, Philippe Mathieu-Daudé wrote: > > On 12/10/20 2:47 PM, marcandre.lur...@redhat.com wrote: > > From: Marc-André Lureau > > > > Since commit efc6c07 ("configure: Add a test for the minimum compiler > > version"), QEMU explicitely depends on GCC >= 4.8. > > > > (clang >

Re: [PATCH v2 10/10] vfio: Disable only uncoordinated discards

2020-12-10 Thread Pankaj Gupta
> We support coordinated discarding of RAM using the RamDiscardMgr. Let's > unlock support for coordinated discards, keeping uncoordinated discards > (e.g., via virtio-balloon) disabled. > > This unlocks virtio-mem + vfio. Note that vfio used via "nvme://" by the > block layer has to be implemented

Re: [PATCH] kvm: Take into account the unaligned section size when preparing bitmap

2020-12-10 Thread Peter Xu
On Thu, Dec 10, 2020 at 10:53:23AM +0800, zhukeqian wrote: > > > On 2020/12/10 10:08, Peter Xu wrote: > > Keqian, > > > > On Thu, Dec 10, 2020 at 09:46:06AM +0800, zhukeqian wrote: > >> Hi, > >> > >> I see that if start or size is not PAGE aligned, it also clears areas > >> which beyond caller's

Re: [PATCH v2 07/10] softmmu/physmem: Don't use atomic operations in ram_block_discard_(disable|require)

2020-12-10 Thread Pankaj Gupta
> We have users in migration context that don't hold the BQL (when > finishing migration). To prepare for further changes, use a dedicated mutex > instead of atomic operations. Keep using qatomic_read ("READ_ONCE") for the > functions that only extract the current state (e.g., used by > virtio-ball

[PATCH v3 0/1] spapr.c: set a 'kvm-type' default value instead of relying on NULL

2020-12-10 Thread Daniel Henrique Barboza
changes from v2, all proposed by Greg: * Handle 'NULL' value as default mode fallback in spapr_kvm_type() * Do not allow for 'AUTO' to be a valid mode in spapr_kvm_type() * Initialize 'spapr->kvm_type' in spapr_instance_init() like Paolo proposed. This will spare us from changing spapr_get_kvm_ty

[PATCH v3 1/1] spapr.c: set a 'kvm-type' default value instead of relying on NULL

2020-12-10 Thread Daniel Henrique Barboza
spapr_kvm_type() is considering 'vm_type=NULL' as a valid input, where the function returns 0. This is relying on the current QEMU machine options handling logic, where the absence of the 'kvm-type' option will be reflected as 'vm_type=NULL' in this function. This is not robust, and will break if

Re: [PATCH v3 03/13] compiler.h: remove GCC < 3 __builtin_expect fallback

2020-12-10 Thread Marc-André Lureau
Hi On Thu, Dec 10, 2020 at 6:47 PM Peter Maydell wrote: > > On Thu, 10 Dec 2020 at 14:32, Philippe Mathieu-Daudé > wrote: > > > > On 12/10/20 2:47 PM, marcandre.lur...@redhat.com wrote: > > > From: Marc-André Lureau > > > > > > Since commit efc6c07 ("configure: Add a test for the minimum compi

Re: [PATCH v3 08/13] audio: remove GNUC & MSVC check

2020-12-10 Thread Marc-André Lureau
Hi On Thu, Dec 10, 2020 at 6:35 PM Philippe Mathieu-Daudé wrote: > > On 12/10/20 3:27 PM, Peter Maydell wrote: > > On Thu, 10 Dec 2020 at 14:26, Philippe Mathieu-Daudé > > wrote: > >> > >> On 12/10/20 2:47 PM, marcandre.lur...@redhat.com wrote: > >>> From: Marc-André Lureau > >>> > >>> QEMU re

Re: [PATCH] file-posix: detect the lock using the real file

2020-12-10 Thread Li Feng
Kevin Wolf 于2020年12月10日周四 上午1:43写道: > > Am 09.12.2020 um 10:33 hat Daniel P. Berrangé geschrieben: > > On Tue, Dec 08, 2020 at 03:38:22PM +0100, Kevin Wolf wrote: > > > Am 08.12.2020 um 13:59 hat Li Feng geschrieben: > > > > This patch addresses this issue: > > > > When accessing a volume on an NF

Re: [PATCH v2 07/10] softmmu/physmem: Don't use atomic operations in ram_block_discard_(disable|require)

2020-12-10 Thread David Hildenbrand
>> bool ram_block_discard_is_disabled(void) >> { >> -return qatomic_read(&ram_block_discard_disabled) > 0; >> +return qatomic_read(&ram_block_discard_disablers); >> } > return value won't be bool? The compiler does type conversion. != 0 -> true == 0 -> false [...] > Apart from query

Re: [PATCH v3 1/1] spapr.c: set a 'kvm-type' default value instead of relying on NULL

2020-12-10 Thread Greg Kurz
On Thu, 10 Dec 2020 11:55:17 -0300 Daniel Henrique Barboza wrote: > spapr_kvm_type() is considering 'vm_type=NULL' as a valid input, where > the function returns 0. This is relying on the current QEMU machine > options handling logic, where the absence of the 'kvm-type' option > will be reflected

Re: [RFC 2/8] s390x/pci: MSI-X isn't strictly required for passthrough

2020-12-10 Thread Matthew Rosato
On 12/10/20 5:28 AM, Cornelia Huck wrote: On Wed, 9 Dec 2020 15:34:20 -0500 Matthew Rosato wrote: s390 PCI currently disallows PCI devices without the MSI-X capability. However, this fence doesn't make sense for passthrough devices. Move the check to only fence emulated devices (e.g., virtio

Re: [RFC 3/8] s390x/pci: fix pcistb length

2020-12-10 Thread Matthew Rosato
On 12/10/20 5:30 AM, Cornelia Huck wrote: On Wed, 9 Dec 2020 15:34:21 -0500 Matthew Rosato wrote: In pcistb_service_call, we are grabbing 8 bits from a guest register to indicate the length of the store operation -- but per the architecture the length is actually defined by 13 bits of the gue

Re: [PATCH v2 07/10] softmmu/physmem: Don't use atomic operations in ram_block_discard_(disable|require)

2020-12-10 Thread Pankaj Gupta
> >> bool ram_block_discard_is_disabled(void) > >> { > >> -return qatomic_read(&ram_block_discard_disabled) > 0; > >> +return qatomic_read(&ram_block_discard_disablers); > >> } > > return value won't be bool? > > The compiler does type conversion. > > != 0 -> true > == 0 -> false ah... I

[PATCH] virtiofsd: Fix potential NULL pointer dereference in virtio_send_msg()

2020-12-10 Thread Alex Chen
The 'ch' will be NULL in the following stack: send_notify_iov()->fuse_send_msg()->virtio_send_msg(), so we should check 'ch' is valid before dereferencing it Reported-by: Euler Robot Signed-off-by: Alex Chen --- tools/virtiofsd/fuse_virtio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a

Re: [PATCH] file-posix: detect the lock using the real file

2020-12-10 Thread Daniel P . Berrangé
On Thu, Dec 10, 2020 at 10:56:59PM +0800, Li Feng wrote: > Kevin Wolf 于2020年12月10日周四 上午1:43写道: > > > > Am 09.12.2020 um 10:33 hat Daniel P. Berrangé geschrieben: > > > On Tue, Dec 08, 2020 at 03:38:22PM +0100, Kevin Wolf wrote: > > > > Am 08.12.2020 um 13:59 hat Li Feng geschrieben: > > > > > This

Re: [PATCH v12 00/19] Initial support for multi-process Qemu

2020-12-10 Thread Stefan Hajnoczi
On Thu, Dec 10, 2020 at 11:24:46AM +, Peter Maydell wrote: > On Thu, 10 Dec 2020 at 11:14, Stefan Hajnoczi wrote: > > On Thu, Dec 03, 2020 at 08:40:11PM +, Peter Maydell wrote: > > > I would prefer to see this going through the tree of an > > > established QEMU developer who's already send

Re: [PATCH] block/nvme: Implement fake truncate() coroutine

2020-12-10 Thread Max Reitz
On 10.12.20 13:52, Philippe Mathieu-Daudé wrote: NVMe drive can not be shrunk. *cannot Since commit c80d8b06cfa we can use the @exact parameter (set to false) to return success if the block device is larger than the requested offset (even if we can not be shrunk). Use this parameter to imple

Re: [PATCH] block/nvme: Implement fake truncate() coroutine

2020-12-10 Thread Philippe Mathieu-Daudé
On 12/10/20 4:36 PM, Max Reitz wrote: > On 10.12.20 13:52, Philippe Mathieu-Daudé wrote: >> NVMe drive can not be shrunk. > > *cannot > >> Since commit c80d8b06cfa we can use the @exact parameter (set >> to false) to return success if the block device is larger than >> the requested offset (even

Re: [PATCH] file-posix: detect the lock using the real file

2020-12-10 Thread Feng Li
My mistake, you are not on the receiver list of my v2. I use the get_maintainer.sh to generate the cc list. I will resend it to you. Daniel P. Berrangé 于2020年12月10日周四 下午11:29写道: > > On Thu, Dec 10, 2020 at 10:56:59PM +0800, Li Feng wrote: > > Kevin Wolf 于2020年12月10日周四 上午1:43写道: > > > > > > Am 09

[PATCH v2] file-posix: detect the lock using the real file

2020-12-10 Thread Li Feng
This patch addresses this issue: When accessing a volume on an NFS filesystem without supporting the file lock, tools, like qemu-img, will complain "Failed to lock byte 100". In the original code, the qemu_has_ofd_lock will test the lock on the "/dev/null" pseudo-file. Actually, the file.locking i

Re: [PATCH] file-posix: detect the lock using the real file

2020-12-10 Thread Daniel P . Berrangé
On Thu, Dec 10, 2020 at 11:53:09PM +0800, Feng Li wrote: > My mistake, you are not on the receiver list of my v2. > I use the get_maintainer.sh to generate the cc list. > I will resend it to you. No, need. I've seen 2, but didn't think you were referring to that as it still has most of the flaws I

[PATCH 0/4] Remove deprecated CLI parameters

2020-12-10 Thread Thomas Huth
Remove some simple CLI parameters that have been deprecated since at least two releass already. Philippe Mathieu-Daudé (1): accel/tcg: Remove deprecated '-tb-size' option Thomas Huth (3): docs/system: Move the list of removed features to a separate file Remove the deprecated -realtime optio

[PATCH 1/4] accel/tcg: Remove deprecated '-tb-size' option

2020-12-10 Thread Thomas Huth
From: Philippe Mathieu-Daudé The '-tb-size' option (replaced by '-accel tcg,tb-size') is deprecated since 5.0 (commit fe174132478). Remove it. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20201202112714.1223783-1-phi...@redhat.com> Signed-off-by: Thomas Huth --- accel/tcg/translate-all.

[PATCH 3/4] Remove the deprecated -realtime option

2020-12-10 Thread Thomas Huth
It has been marked as deprecated since QEMU v4.2, replaced by the -overcommit option. Time to remove it now. Signed-off-by: Thomas Huth --- docs/system/deprecated.rst | 6 -- docs/system/removed-features.rst| 6 ++ qemu-options.hx | 14 +- s

Re: [PULL 0/5] aspeed queue

2020-12-10 Thread Peter Maydell
ilable in the Git repository at: > > https://github.com/legoater/qemu/ tags/pull-aspeed-20201210 > > for you to fetch changes up to 6f5f6507e49df4820207a94f3aeaaeab08092d32: > > aspeed: g220a-bmc: Add an FRU (2020-12-10 12:11:03 +0100) > > --

[PATCH 4/4] Remove the deprecated -show-cursor option

2020-12-10 Thread Thomas Huth
It has been marked as deprecated since QEMU v5.0, replaced by the corresponding parameter of the -display option. Signed-off-by: Thomas Huth --- docs/system/deprecated.rst | 6 -- docs/system/removed-features.rst | 6 ++ qemu-options.hx | 7 --- softmmu/vl.c

[PATCH 2/4] docs/system: Move the list of removed features to a separate file

2020-12-10 Thread Thomas Huth
Otherwise there is a chance that new deprecated features get added to the list of removed features at the end of the file by accident. It's way less confusing if the removed features reside in a separate file. Signed-off-by: Thomas Huth --- docs/system/deprecated.rst | 232

Re: [PATCH v2] file-posix: detect the lock using the real file

2020-12-10 Thread Daniel P . Berrangé
On Wed, Dec 09, 2020 at 12:54:48PM +0800, Li Feng wrote: > This patch addresses this issue: > When accessing a volume on an NFS filesystem without supporting the file lock, > tools, like qemu-img, will complain "Failed to lock byte 100". > > In the original code, the qemu_has_ofd_lock will test th

Re: [PATCH 1/4] accel/tcg: Remove deprecated '-tb-size' option

2020-12-10 Thread Thomas Huth
On 10/12/2020 16.58, Thomas Huth wrote: > From: Philippe Mathieu-Daudé > > The '-tb-size' option (replaced by '-accel tcg,tb-size') is > deprecated since 5.0 (commit fe174132478). Remove it. > > Signed-off-by: Philippe Mathieu-Daudé > Message-Id: <20201202112714.1223783-1-phi...@redhat.com> I

Re: [PULL v2 48/65] libvhost-user: make it a meson subproject

2020-12-10 Thread Peter Maydell
On Wed, 9 Dec 2020 at 18:10, Michael S. Tsirkin wrote: > > From: Marc-André Lureau > > By making libvhost-user a subproject, check it builds > standalone (without the global QEMU cflags etc). > > Note that the library still relies on QEMU include/qemu/atomic.h and > linux_headers/. > > Signed-off

Re: [PATCH] accel/tcg: Remove deprecated '-tb-size' option

2020-12-10 Thread Thomas Huth
On 02/12/2020 12.27, Philippe Mathieu-Daudé wrote: > The '-tb-size' option (replaced by '-accel tcg,tb-size') is > deprecated since 5.0 (commit fe174132478). Remove it. > > Signed-off-by: Philippe Mathieu-Daudé > --- > docs/system/deprecated.rst | 12 +--- > accel/tcg/translate-all.c |

Some performance numbers for virtiofs, DAX and virtio-9p

2020-12-10 Thread Vivek Goyal
Hi, Now virtiofs DAX support has been merged in upstream kernel 5.10 (It has yet to be merged qemu). So I decided to do some performance benchmarking and see what's the impact of DAX on different workloads in different caching modes. Hence I ran some performance numbers and publishing the results

Re: [PATCH v2] file-posix: detect the lock using the real file

2020-12-10 Thread Feng Li
Ok, I see. I will split the detect lock without changing the global variable to a separate function. Don't call the qemu_has_ofd_lock. Thanks. Daniel P. Berrangé 于2020年12月10日周四 下午11:59写道: > > On Wed, Dec 09, 2020 at 12:54:48PM +0800, Li Feng wrote: > > This patch addresses this issue: > > When ac

[PATCH 03/10] tests/check-qjson: Cover number 2^63

2020-12-10 Thread Markus Armbruster
Signed-off-by: Markus Armbruster --- tests/check-qjson.c | 41 +++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/tests/check-qjson.c b/tests/check-qjson.c index 6ab6b111b0..8cb8a40524 100644 --- a/tests/check-qjson.c +++ b/tests/check-qjson.c

[PATCH 04/10] tests/check-qjson: Replace redundant large_number()

2020-12-10 Thread Markus Armbruster
Move one of large_number()'s three checks to uint_number(), and the other two to float_number(). Signed-off-by: Markus Armbruster --- tests/check-qjson.c | 47 +++-- 1 file changed, 3 insertions(+), 44 deletions(-) diff --git a/tests/check-qjson.c b/tests

[PATCH 07/10] test-string-output-visitor: Cover "unround" number

2020-12-10 Thread Markus Armbruster
This demonstrates rounding error due to insufficient precision: double 3.1415926535897932 gets converted to JSON 3.141593. Signed-off-by: Markus Armbruster --- tests/test-string-output-visitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-string-output-visi

[PATCH 01/10] tests/check-qjson: Don't skip funny QNumber to JSON conversions

2020-12-10 Thread Markus Armbruster
simple_number() and float_number() convert from JSON to QNumber and back. simple_number() tests "-0", but skips the conversion back to JSON, because it yields "0", not "-0". Works as intended, so better cover it: don't skip, but expect the funny result. float_number() tests "-32.20e-10", but ski

[PATCH 05/10] tests/check-qnum: Cover qnum_to_string() for "unround" argument

2020-12-10 Thread Markus Armbruster
qnum_to_string() has a FIXME comment about rounding errors due to insufficient precision. Cover it: 2.718281828459045 gets converted to "2.718282". The next commit will fix it. Signed-off-by: Markus Armbruster --- tests/check-qnum.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tes

[PATCH 08/10] string-output-visitor: Fix to use sufficient precision

2020-12-10 Thread Markus Armbruster
The string output visitor should serialize numbers so that the string input visitor deserializes them back to the same number. It fails to do so. print_type_number() uses format %f. This is prone to nasty rounding errors. For instance, numbers between 0 and 0.005 get flushed to zero. We cu

[PATCH 02/10] tests/check-qjson: Examine QNum more thoroughly

2020-12-10 Thread Markus Armbruster
simple_number() checks only qnum_get_try_int(). Also check qnum_get_try_uint() and qnum_get_double(). float_number() checks only qnum_get_double(). Also check qnum_get_try_int() and qnum_get_try_uint(). Signed-off-by: Markus Armbruster --- tests/check-qjson.c | 19 --- 1 file

[PATCH 06/10] qobject: Fix qnum_to_string() to use sufficient precision

2020-12-10 Thread Markus Armbruster
We should serialize numbers to JSON so that they deserialize back to the same number. We fail to do so. The culprit is qnum_to_string(): it uses format %f with trailing '0' trimmed. Results in pretty output for "nice" numbers, but is prone to nasty rounding errors. For instance, numbers between

[PATCH 09/10] test-visitor-serialization: Drop insufficient precision workaround

2020-12-10 Thread Markus Armbruster
Signed-off-by: Markus Armbruster --- tests/test-visitor-serialization.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/tests/test-visitor-serialization.c b/tests/test-visitor-serialization.c index 1c5a8b94ea..19b72571bb 100644 --- a/tests/test-visitor-ser

[PATCH 10/10] test-visitor-serialization: Clean up test_primitives()

2020-12-10 Thread Markus Armbruster
test_primitives() uses union member intmax_t max to compare the integer members. Unspecified behavior. Has worked fine for many years, though. Clean it up. Signed-off-by: Markus Armbruster --- tests/test-visitor-serialization.c | 44 +- 1 file changed, 37 insertion

[PATCH 00/10] Fix floating-point -> text conversion precision

2020-12-10 Thread Markus Armbruster
This takes care of ancient FIXMEs, mostly because a future series will rework the code, and I can't bring myself tiptoeing around these bugs. Markus Armbruster (10): tests/check-qjson: Don't skip funny QNumber to JSON conversions tests/check-qjson: Examine QNum more thoroughly tests/check-qj

[PULL 04/13] block: Improve some block-commit, block-stream error messages

2020-12-10 Thread Markus Armbruster
block-commit defaults @base-node to the deepest backing image. When there is none, it fails with "Base 'NULL' not found". Improve to "There is no backing image". block-commit and block-stream reject a @base argument that doesn't resolve with "Base 'BASE' not found". Commit 6b33f3ae8b "qemu-img:

Re: [PULL v2 48/65] libvhost-user: make it a meson subproject

2020-12-10 Thread Paolo Bonzini
On Thu, Dec 10, 2020 at 5:11 PM Peter Maydell wrote: > Looking at the commit, it's not clear to me why the > vhost-user changes have resulted in all binaries getting > a change to their link line. Paolo ? Because libvhost-user/meson.build is not using the GLIB flags from QEMU's configure and is n

[PULL 01/13] Clean up includes

2020-12-10 Thread Markus Armbruster
Clean up includes so that osdep.h is included first and headers which it implies are not included manually. This commit was created with scripts/clean-includes, with the changes to the following files manually reverted: contrib/libvhost-user/libvhost-user-glib.h contrib/libvhost-user/libv

<    1   2   3   4   5   >