Re: [PATCH v7 0/8] Pegasos2 emulation

2021-03-16 Thread BALATON Zoltan
Another arrempt to explain patch 1. This is the via-superio class that's a subclass of ISA superio: https://github.com/patchew-project/qemu/blob/ca5d88d2fee0016f939e91ae8b32c18e682064fa/hw/isa/vt82c686.c#L255 #define TYPE_VIA_SUPERIO "via-superio" OBJECT_DECLARE_SIMPLE_TYPE(ViaSuperIOState,

Re: [PATCH 0/7] block/nbd: decouple reconnect from drain

2021-03-16 Thread Eric Blake
On 3/15/21 1:06 AM, Roman Kagan wrote: > The reconnection logic doesn't need to stop while in a drained section. > Moreover it has to be active during the drained section, as the requests > that were caught in-flight with the connection to the server broken can > only usefully get drained if the

[PATCH 7/9] edid: move timing generation into a separate function

2021-03-16 Thread Gerd Hoffmann
From: Konstantin Nazarov The timing generation is currently performed inside the function that fills in the DTD. The DisplayID generation needs it as well, so moving it out to a separate function. Based-on: <20210303152948.59943-2-akihiko.od...@gmail.com> Signed-off-by: Konstantin Nazarov

[PATCH 5/9] edid: prefer standard timings

2021-03-16 Thread Gerd Hoffmann
Windows guests using the "Basic Display Adapter" don't parse the "Established timings III" block. They also don't parse any edid extension. So prefer the "Standard Timings" block to store the display resolutions in edid_fill_modes(). Also reorder the mode list, so more exotic resolutions

Re: [PATCH 13/38] target/riscv: SIMD 8-bit Miscellaneous Instructions

2021-03-16 Thread Alistair Francis
On Fri, Feb 12, 2021 at 10:30 AM LIU Zhiwei wrote: > > Signed-off-by: LIU Zhiwei Acked-by: Alistair Francis Alistair > --- > target/riscv/helper.h | 12 +++ > target/riscv/insn32.decode | 12 +++ > target/riscv/insn_trans/trans_rvp.c.inc | 13 +++ >

[PATCH 8/9] edid: allow arbitrary-length checksums

2021-03-16 Thread Gerd Hoffmann
From: Konstantin Nazarov Some of the EDID extensions like DisplayID do checksums of their subsections. Currently checksums can be only applied to the whole extension blocks which are 128 bytes. This patch allows to checksum arbitrary parts of EDID, and not only whole extension blocks.

Re: [PATCH 14/38] target/riscv: 8-bit Unpacking Instructions

2021-03-16 Thread Alistair Francis
On Fri, Feb 12, 2021 at 10:32 AM LIU Zhiwei wrote: > > Signed-off-by: LIU Zhiwei Acked-by: Alistair Francis Alistair > --- > target/riscv/helper.h | 11 +++ > target/riscv/insn32.decode | 11 +++ > target/riscv/insn_trans/trans_rvp.c.inc | 12 +++ >

[PATCH 9/9] edid: add support for DisplayID extension (5k resolution)

2021-03-16 Thread Gerd Hoffmann
From: Konstantin Nazarov The Detailed Timing Descriptor has only 12 bits to store the resolution. This limits the guest to 4095 pixels. This patch adds support for the DisplayID extension, that has 2 full bytes for that purpose, thus allowing 5k resolutions and above. Based-on:

[PATCH 6/9] edid: Make refresh rate configurable

2021-03-16 Thread Gerd Hoffmann
From: Akihiko Odaki Signed-off-by: Akihiko Odaki Signed-off-by: Gerd Hoffmann --- include/hw/display/edid.h | 12 +++- hw/display/edid-generate.c | 9 + 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/include/hw/display/edid.h b/include/hw/display/edid.h

[PATCH 0/9] edid: windows fixes

2021-03-16 Thread Gerd Hoffmann
Windows guests are not that happy with the edid blob we provide. Tweak things a bit to make windows pick up more resolutions. Also rebased all pending edid patches on top of that, so this is the latest "all in one" patch series. Akihiko Odaki (1): edid: Make refresh rate configurable Gerd

[PATCH 1/9] qemu-edid: use qemu_edid_size()

2021-03-16 Thread Gerd Hoffmann
So we only write out that part of the edid blob which has been filled with data. Also use a larger buffer for the blob. Signed-off-by: Gerd Hoffmann --- qemu-edid.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qemu-edid.c b/qemu-edid.c index

[PATCH 4/9] edid: use dta extension block descriptors

2021-03-16 Thread Gerd Hoffmann
When the 4 descriptors in the base edid block are filled, jump to the dta extension block. This allows for more than four descriptors. Happens for example when generating an edid blob with a serial number (qemu-edid -s $serial). Signed-off-by: Gerd Hoffmann --- hw/display/edid-generate.c | 8

[PATCH 3/9] edid: move xtra3 descriptor

2021-03-16 Thread Gerd Hoffmann
Initialize the "Established timings III" block earlier. Also move up edid_fill_modes(). That'll make sure the offset for the additional descriptors in the dta block don't move any more, which in turn makes it easier to actually use them. Signed-off-by: Gerd Hoffmann ---

[PATCH 2/9] edid: edid_desc_next

2021-03-16 Thread Gerd Hoffmann
Add helper function to find the next free desc block. Needed when we start to use the dta descriptor entries. Signed-off-by: Gerd Hoffmann --- hw/display/edid-generate.c | 41 -- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git

Re: [PULL v2 00/42] Block layer patches and object-add QAPIfication

2021-03-16 Thread Kevin Wolf
Am 16.03.2021 um 14:17 hat Peter Maydell geschrieben: > On Mon, 15 Mar 2021 at 12:35, Kevin Wolf wrote: > > > > The following changes since commit 6157b0e19721aadb4c7fdcfe57b2924af6144b14: > > > > Merge remote-tracking branch > > 'remotes/vivier2/tags/linux-user-for-6.0-pull-request' into

Re: [PATCH v3 1/3] edid: move timing generation into a separate function

2021-03-16 Thread Gerd Hoffmann
On Tue, Mar 16, 2021 at 05:01:50PM +0300, m...@knazarov.com wrote: > I've based my work on Akihiko Odaki's previous patchset that introduced > dynamic refresh rate (see "Based-on" in the description). > Should I rebase it to master? Not needed. Noticed that Based-on meanwhile, and applying in

Re: [PATCH v7 0/8] Pegasos2 emulation

2021-03-16 Thread BALATON Zoltan
On Tue, 16 Mar 2021, Philippe Mathieu-Daudé wrote: On 3/16/21 10:01 AM, Laurent Vivier wrote: Le 15/03/2021 à 13:33, BALATON Zoltan a écrit : On Sat, 13 Mar 2021, BALATON Zoltan wrote: On Wed, 10 Mar 2021, BALATON Zoltan wrote: Hello, I've started posting this series well in advance to get

Re: [PATCH v1 11/14] plugins: expand kernel-doc for instruction query and instrumentation

2021-03-16 Thread Aaron Lindsay via
On Mar 16 13:48, Alex Bennée wrote: > Aaron Lindsay writes: > > On Mar 12 17:28, Alex Bennée wrote: > >> + * @insn: opaque instruction handle from qemu_plugin_tb_get_insn() > >> + * > >> + * Returns: hardware (physical) address of instruction > >> + */ > >> void *qemu_plugin_insn_haddr(const

Re: [PATCH] yank: Avoid linking into executables that don't want it

2021-03-16 Thread Eric Blake
On 3/16/21 8:59 AM, Markus Armbruster wrote: > util/yank.c and stubs/yank.c are both in libqemuutil.a, even though > their external symbols conflict. The linker happens to pick the > former. This links a bunch of unneeded code into the executables that > actually want the latter: qemu-io,

Re: [PATCH] yank: Avoid linking into executables that don't want it

2021-03-16 Thread Eric Blake
On 3/16/21 8:59 AM, Markus Armbruster wrote: > util/yank.c and stubs/yank.c are both in libqemuutil.a, even though > their external symbols conflict. The linker happens to pick the > former. This links a bunch of unneeded code into the executables that > actually want the latter: qemu-io,

Re: [PATCH v1 08/14] plugins: add qemu_plugin_cb_flags to kernel-doc

2021-03-16 Thread Aaron Lindsay via
On Mar 16 13:40, Alex Bennée wrote: > > Aaron Lindsay writes: > > > On Mar 12 17:28, Alex Bennée wrote: > >> Also add a note to explain currently they are unused. > >> > >> Signed-off-by: Alex Bennée > > > > I'm personally interested in one clarification below, but don't think > > that

Re: [PATCH v3 1/3] edid: move timing generation into a separate function

2021-03-16 Thread m...@knazarov.com
I've based my work on Akihiko Odaki's previous patchset that introduced dynamic refresh rate (see "Based-on" in the description). Should I rebase it to master? > On 16 Mar 2021, at 16:32, Gerd Hoffmann wrote: > > On Mon, Mar 15, 2021 at 02:46:37PM +0300, Konstantin Nazarov wrote: >> The timing

[PATCH] yank: Avoid linking into executables that don't want it

2021-03-16 Thread Markus Armbruster
util/yank.c and stubs/yank.c are both in libqemuutil.a, even though their external symbols conflict. The linker happens to pick the former. This links a bunch of unneeded code into the executables that actually want the latter: qemu-io, qemu-img, qemu-nbd, and several tests. Amazingly, none of

Re: [PATCH v1 12/14] plugins: expand kernel-doc for memory query and instrumentation

2021-03-16 Thread Alex Bennée
Aaron Lindsay writes: > On Mar 12 17:28, Alex Bennée wrote: >> Signed-off-by: Alex Bennée > > Small comment below, but otherwise: > > Reviewed-by: Aaron Lindsay > >> --- >> include/qemu/qemu-plugin.h | 35 --- >> 1 file changed, 28 insertions(+), 7

Re: [PATCH v2 1/1] docs/devel: Add VFIO device migration documentation

2021-03-16 Thread Tarun Gupta (SW-GPU)
On 3/12/2021 8:43 AM, Tian, Kevin wrote: From: Tarun Gupta Sent: Thursday, March 11, 2021 3:20 AM Document interfaces used for VFIO device migration. Added flow of state changes during live migration with VFIO device. Tested by building docs with the new vfio-migration.rst file. v2: -

Re: [PATCH v1 11/14] plugins: expand kernel-doc for instruction query and instrumentation

2021-03-16 Thread Alex Bennée
Aaron Lindsay writes: > A few clarifications inline: > > On Mar 12 17:28, Alex Bennée wrote: >> Signed-off-by: Alex Bennée >> --- >> include/qemu/qemu-plugin.h | 52 -- >> 1 file changed, 50 insertions(+), 2 deletions(-) >> >> diff --git

[PATCH v2] util: fix use-after-free in module_load_one

2021-03-16 Thread marcandre . lureau
From: Marc-André Lureau g_hash_table_add always retains ownership of the pointer passed in as the key. Its return status merely indicates whether the added entry was new, or replaced an existing entry. Thus key must never be freed after this method returns. Spotted by ASAN: ==2407186==ERROR:

Re: [PATCH v1 08/14] plugins: add qemu_plugin_cb_flags to kernel-doc

2021-03-16 Thread Alex Bennée
Aaron Lindsay writes: > On Mar 12 17:28, Alex Bennée wrote: >> Also add a note to explain currently they are unused. >> >> Signed-off-by: Alex Bennée > > I'm personally interested in one clarification below, but don't think > that affects my: > > Reviewed-by: Aaron Lindsay > >> --- >>

Re: [RFC v2 04/13] vhost: Add x-vhost-enable-shadow-vq qmp

2021-03-16 Thread Eric Blake
On 3/15/21 2:48 PM, Eugenio Pérez wrote: > Command to enable shadow virtqueue looks like: > > { "execute": "x-vhost-enable-shadow-vq", "arguments": { "name": "dev0", > "enable": true } } > > Signed-off-by: Eugenio Pérez > --- > qapi/net.json | 22 ++ >

Re: [PATCH] sockets: update SOCKET_ADDRESS_TYPE_FD listen(2) backlog

2021-03-16 Thread Eric Blake
On 3/16/21 4:10 AM, Stefan Hajnoczi wrote: > On Wed, Mar 10, 2021 at 05:30:04PM +, Stefan Hajnoczi wrote: >> socket_get_fd() fails with the error "socket_get_fd: too many >> connections" if the given listen backlog value is not 1. >> >> Not all callers set the backlog to 1. For example, commit

Re: [PATCH v3 1/3] edid: move timing generation into a separate function

2021-03-16 Thread Gerd Hoffmann
On Mon, Mar 15, 2021 at 02:46:37PM +0300, Konstantin Nazarov wrote: > The timing generation is currently performed inside the function that > fills in the DTD. The DisplayID generation needs it as well, so moving > it out to a separate function. > > Based-on:

Re: [PATCH 2/9] block: Replaced qemu_mutex_lock calls with QEMU_LOCK_GUARD

2021-03-16 Thread Eric Blake
On 3/12/21 4:23 AM, Vladimir Sementsov-Ogievskiy wrote: > 11.03.2021 06:15, Mahmoud Mandour wrote: >> Replaced various qemu_mutex_lock/qemu_mutex_unlock calls with >> lock guard macros (QEMU_LOCK_GUARD() and WITH_QEMU_LOCK_GUARD). >> This slightly simplifies the code by eliminating calls to >>

"make check" broken with everything but tools disabled

2021-03-16 Thread Markus Armbruster
Watch this: $ mkdir bld-tools $ cd bld-tools $ ../configure --disable-system --disable-user --enable-tools $ make check [...] make: *** No rule to make target 'tests/qemu-iotests/socket_scm_helper', needed by 'check-block'. Stop.

Re: [PATCH v29 17/17] qapi: Add VFIO devices migration stats in Migration stats

2021-03-16 Thread Eric Blake
On 10/26/20 4:36 AM, Kirti Wankhede wrote: > Added amount of bytes transferred to the VM at destination by all VFIO > devices > > Signed-off-by: Kirti Wankhede > Reviewed-by: Dr. David Alan Gilbert > --- > +++ b/qapi/migration.json > @@ -147,6 +147,18 @@ > 'active',

Re: [PATCH v29 17/17] qapi: Add VFIO devices migration stats in Migration stats

2021-03-16 Thread Eric Blake
On 3/16/21 8:22 AM, Eric Blake wrote: > On 10/26/20 4:36 AM, Kirti Wankhede wrote: Hmm, just now realizing this is an old thread... >> Added amount of bytes transferred to the VM at destination by all VFIO >> devices >> >> Signed-off-by: Kirti Wankhede >> Reviewed-by: Dr. David Alan Gilbert >>

Re: [PULL v2 00/42] Block layer patches and object-add QAPIfication

2021-03-16 Thread Peter Maydell
On Mon, 15 Mar 2021 at 12:35, Kevin Wolf wrote: > > The following changes since commit 6157b0e19721aadb4c7fdcfe57b2924af6144b14: > > Merge remote-tracking branch > 'remotes/vivier2/tags/linux-user-for-6.0-pull-request' into staging > (2021-03-14 17:47:49 +) > > are available in the Git

[PATCH] target/mips/mxu_translate.c: Fix array overrun for D16MIN/D16MAX

2021-03-16 Thread Peter Maydell
Coverity reported (CID 1450831) an array overrun in gen_mxu_D16MAX_D16MIN(): 1103 } else if (unlikely((XRb == 0) || (XRa == 0))) { 1112 if (opc == OPC_MXU_D16MAX) { 1113 tcg_gen_smax_i32(mxu_gpr[XRa - 1], t0, t1); 1114 } else { 1115

Re: Windows 10 won't run on default x86_64 machine anymore

2021-03-16 Thread Igor Mammedov
On Tue, 16 Mar 2021 13:49:57 +0100 Paolo Bonzini wrote: > On 16/03/21 13:13, Igor Mammedov wrote: > >>> Surprisingly without accelerator ie with tcg the default machine does > >>> seem to > >>> get to the login prompt. Is the ACPI data tailored to indicate an > >>> accelerator/VM or is it

Re: [PATCH] include/sysemu: Poison all accelerator CONFIG switches in common code

2021-03-16 Thread Peter Maydell
On Tue, 16 Mar 2021 at 12:54, Thomas Huth wrote: > > We are already poisoning CONFIG_KVM since this switch is not working > in common code. Do the same with the other accelerator switches, too > (except for CONFIG_TCG, which is special, since it is also defined in > config-host.h). > >

Re: [PATCH v7 0/8] Pegasos2 emulation

2021-03-16 Thread BALATON Zoltan
On Tue, 16 Mar 2021, Laurent Vivier wrote: Le 16/03/2021 à 13:24, BALATON Zoltan a écrit : On Tue, 16 Mar 2021, Laurent Vivier wrote: Le 16/03/2021 à 12:49, Philippe Mathieu-Daudé a écrit : On 3/16/21 10:01 AM, Laurent Vivier wrote: Le 15/03/2021 à 13:33, BALATON Zoltan a écrit : On Sat, 13

Re: Windows 10 won't run on default x86_64 machine anymore

2021-03-16 Thread Igor Mammedov
On Tue, 16 Mar 2021 12:40:28 + Daniel P. Berrangé wrote: > On Tue, Mar 16, 2021 at 01:33:54PM +0100, Igor Mammedov wrote: > > On Mon, 15 Mar 2021 15:05:26 -0700 > > Isaku Yamahata wrote: > > > > > On Mon, Mar 15, 2021 at 05:58:04PM +0100, > > > Reinoud Zandijk wrote: > > > > > > > I

[PATCH v4 2/2] migration/ram: Optimize ram_save_host_page()

2021-03-16 Thread Kunkun Jiang
Starting from pss->page, ram_save_host_page() will check every page and send the dirty pages up to the end of the current host page or the boundary of used_length of the block. If the host page size is a huge page, the step "check" will take a lot of time. It will improve performance to use

[PATCH v4 1/2] migration/ram: Reduce unnecessary rate limiting

2021-03-16 Thread Kunkun Jiang
When the host page is a huge page and something is sent in the current iteration, migration_rate_limit() should be executed. If not, it can be omitted. Signed-off-by: Keqian Zhu Signed-off-by: Kunkun Jiang Reviewed-by: David Edmondson --- migration/ram.c | 9 +++-- 1 file changed, 7

[PATCH v4 0/2] Some modification about ram_save_host_page()

2021-03-16 Thread Kunkun Jiang
Hi all, This series include patches as below: Patch 1: - reduce unnecessary rate limiting in ram_save_host_page() Patch 2: - optimized ram_save_host_page() by using migration_bitmap_find_dirty() to find dirty pages History: v3 -> v4: - Remove the modification to ram_save_host_page() comment

Re: [PATCH v7 0/8] Pegasos2 emulation

2021-03-16 Thread Laurent Vivier
Le 16/03/2021 à 13:24, BALATON Zoltan a écrit : > On Tue, 16 Mar 2021, Laurent Vivier wrote: >> Le 16/03/2021 à 12:49, Philippe Mathieu-Daudé a écrit : >>> On 3/16/21 10:01 AM, Laurent Vivier wrote: Le 15/03/2021 à 13:33, BALATON Zoltan a écrit : > On Sat, 13 Mar 2021, BALATON Zoltan

Re: Windows 10 won't run on default x86_64 machine anymore

2021-03-16 Thread Igor Mammedov
On Mon, 15 Mar 2021 23:27:29 +0100 Reinoud Zandijk wrote: > On Mon, Mar 15, 2021 at 06:53:02PM +0100, Igor Mammedov wrote: > > Windows 10 1607x64 boots fine when I test it with default machine. > > > > So > > 1) can you provide full QEMU command line used > > 2) What Windows build do you

[PATCH] include/sysemu: Poison all accelerator CONFIG switches in common code

2021-03-16 Thread Thomas Huth
We are already poisoning CONFIG_KVM since this switch is not working in common code. Do the same with the other accelerator switches, too (except for CONFIG_TCG, which is special, since it is also defined in config-host.h). Signed-off-by: Thomas Huth --- include/exec/poison.h | 4

Re: Windows 10 won't run on default x86_64 machine anymore

2021-03-16 Thread Paolo Bonzini
On 16/03/21 13:13, Igor Mammedov wrote: Surprisingly without accelerator ie with tcg the default machine does seem to get to the login prompt. Is the ACPI data tailored to indicate an accelerator/VM or is it static? Could it be that the CPU reported by my machine is causing the issue? With the

Re: [PATCH 1/6] accel: Introduce 'query-accels' QMP command

2021-03-16 Thread Thomas Huth
On 16/03/2021 13.41, Markus Armbruster wrote: Philippe Mathieu-Daudé writes: On 3/16/21 11:26 AM, Philippe Mathieu-Daudé wrote: On 3/16/21 10:02 AM, Philippe Mathieu-Daudé wrote: On 3/16/21 7:51 AM, Markus Armbruster wrote: Eric Blake writes: On 3/11/21 5:11 PM, Philippe Mathieu-Daudé

[PATCH] docs: Remove obsolete paragraph about config-target.mak

2021-03-16 Thread Thomas Huth
$TARGET-NAME/config-target.mak has been removed a while ago. Remove it now from the documentation, too. Fixes: fdb75aeff7 ("configure: remove target configuration") Signed-off-by: Thomas Huth --- docs/devel/build-system.rst | 8 1 file changed, 8 deletions(-) diff --git

Re: [PATCH 1/6] accel: Introduce 'query-accels' QMP command

2021-03-16 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > On 3/16/21 11:26 AM, Philippe Mathieu-Daudé wrote: >> On 3/16/21 10:02 AM, Philippe Mathieu-Daudé wrote: >>> On 3/16/21 7:51 AM, Markus Armbruster wrote: Eric Blake writes: > On 3/11/21 5:11 PM, Philippe Mathieu-Daudé wrote: [...] >> diff

Re: Windows 10 won't run on default x86_64 machine anymore

2021-03-16 Thread Daniel P . Berrangé
On Tue, Mar 16, 2021 at 01:33:54PM +0100, Igor Mammedov wrote: > On Mon, 15 Mar 2021 15:05:26 -0700 > Isaku Yamahata wrote: > > > On Mon, Mar 15, 2021 at 05:58:04PM +0100, > > Reinoud Zandijk wrote: > > > > > I think its better to revert this and fix Linux ;) or make it a selectable > > >

Re: Windows 10 won't run on default x86_64 machine anymore

2021-03-16 Thread Igor Mammedov
On Mon, 15 Mar 2021 15:05:26 -0700 Isaku Yamahata wrote: > On Mon, Mar 15, 2021 at 05:58:04PM +0100, > Reinoud Zandijk wrote: > > > I think its better to revert this and fix Linux ;) or make it a selectable > > feature as a workaround that's by default OFF :) > > Anyway here is a patch to

[RFC PATCH 0/2] hw/s390x: modularize virtio-gpu-ccw

2021-03-16 Thread Halil Pasic
This series explores Daniels idea he proposed in [1], and is a successor to the v3. I decided to go with the RFC tag because there are several things I have doubts about, and I hope somebody more familiar with the topic can help me out. I kept running into situations where meson felt like

Re: [PULL V2 00/20] Net patches

2021-03-16 Thread Peter Maydell
On Mon, 15 Mar 2021 at 09:14, Jason Wang wrote: > > The following changes since commit 6157b0e19721aadb4c7fdcfe57b2924af6144b14: > > Merge remote-tracking branch > 'remotes/vivier2/tags/linux-user-for-6.0-pull-request' into staging > (2021-03-14 17:47:49 +) > > are available in the git

[RFC PATCH 1/2] modules: introduce target specific modules

2021-03-16 Thread Halil Pasic
After some back-and-forth in [1] Daniel suggested that we could/should make qemu modules per-target by introducing a dedicated modules directory for each target, which can symlink the modules that do work with and do make sense for the given target. That way we can avoid trying to load modules we

Re: [PATCH v7 0/8] Pegasos2 emulation

2021-03-16 Thread Laurent Vivier
Le 16/03/2021 à 12:49, Philippe Mathieu-Daudé a écrit : > On 3/16/21 10:01 AM, Laurent Vivier wrote: >> Le 15/03/2021 à 13:33, BALATON Zoltan a écrit : >>> On Sat, 13 Mar 2021, BALATON Zoltan wrote: On Wed, 10 Mar 2021, BALATON Zoltan wrote: > Hello, I've started posting this

[RFC PATCH 2/2] hw/s390x: modularize virtio-gpu-ccw

2021-03-16 Thread Halil Pasic
Since the virtio-gpu-ccw device depends on the hw-display-virtio-gpu module, which provides the type virtio-gpu-device, packaging the hw-display-virtio-gpu module as a separate package that may or may not be installed along with the qemu package leads to problems. Namely if the

Re: [PATCH v3 6/6] block/qcow2: use seqcache for compressed writes

2021-03-16 Thread Max Reitz
On 15.03.21 15:40, Vladimir Sementsov-Ogievskiy wrote: 15.03.2021 12:58, Max Reitz wrote: [...] The question is whether it really makes sense to even have a seqcache_read() path when in reality it’s probably never accessed.  I mean, besides the fact that it seems based purely on chance

Re: [PATCH v7 0/8] Pegasos2 emulation

2021-03-16 Thread BALATON Zoltan
On Tue, 16 Mar 2021, Laurent Vivier wrote: Le 16/03/2021 à 12:49, Philippe Mathieu-Daudé a écrit : On 3/16/21 10:01 AM, Laurent Vivier wrote: Le 15/03/2021 à 13:33, BALATON Zoltan a écrit : On Sat, 13 Mar 2021, BALATON Zoltan wrote: On Wed, 10 Mar 2021, BALATON Zoltan wrote: Hello, I've

Re: [PATCH v7 0/8] Pegasos2 emulation

2021-03-16 Thread BALATON Zoltan
On Tue, 16 Mar 2021, Laurent Vivier wrote: Le 15/03/2021 à 13:33, BALATON Zoltan a écrit : On Sat, 13 Mar 2021, BALATON Zoltan wrote: On Wed, 10 Mar 2021, BALATON Zoltan wrote: Hello, I've started posting this series well in advance to get it into 6.0 and yet it seems like it may be

[Bug 1880518] Re: issue while installing docker inside s390x container

2021-03-16 Thread Nayana
Also same issue observed with docker version 19.03. docker pull command failing with an error "failed to register layer: Error processing tar file(exit status 1):" -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: Windows 10 won't run on default x86_64 machine anymore

2021-03-16 Thread Igor Mammedov
On Mon, 15 Mar 2021 18:55:03 -0700 Isaku Yamahata wrote: > On Mon, Mar 15, 2021 at 11:27:29PM +0100, > Reinoud Zandijk wrote: > > > On Mon, Mar 15, 2021 at 06:53:02PM +0100, Igor Mammedov wrote: > > > Windows 10 1607x64 boots fine when I test it with default machine. > > > > > > So > > >

[PATCH v4 09/12] hw/net: pcnet: Remove the logic of padding short frames in the receive path

2021-03-16 Thread Bin Meng
Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng --- (no changes since v1) hw/net/pcnet.c | 9 - 1 file changed, 9 deletions(-) diff --git a/hw/net/pcnet.c b/hw/net/pcnet.c index

Re: [PULL v2 0/5] Meson version update

2021-03-16 Thread Paolo Bonzini
On 16/03/21 11:59, Peter Maydell wrote: This kind of "breaks the build tree such that you can't just 'git reset' back to master" bug is irritating. Doesn't meson have an "is this the right version" check on the cached data it's loading out of the build tree ? It does, but it doesn't expect a

[PATCH v4 12/12] hw/net: sunhme: Remove the logic of padding short frames in the receive path

2021-03-16 Thread Bin Meng
Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng --- (no changes since v1) hw/net/sunhme.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/hw/net/sunhme.c b/hw/net/sunhme.c

[PATCH v4 08/12] hw/net: ne2000: Remove the logic of padding short frames in the receive path

2021-03-16 Thread Bin Meng
Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng --- (no changes since v1) hw/net/ne2000.c | 12 1 file changed, 12 deletions(-) diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c

[PATCH v4 11/12] hw/net: sungem: Remove the logic of padding short frames in the receive path

2021-03-16 Thread Bin Meng
Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng --- (no changes since v1) hw/net/sungem.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/hw/net/sungem.c

[PATCH v4 06/12] hw/net: vmxnet3: Remove the logic of padding short frames in the receive path

2021-03-16 Thread Bin Meng
Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. This actually reverts commit 40a87c6c9b11ef9c14e0301f76abf0eb2582f08e. Signed-off-by: Bin Meng --- (no changes since v1) hw/net/vmxnet3.c | 10 -- 1 file

[PATCH v4 10/12] hw/net: rtl8139: Remove the logic of padding short frames in the receive path

2021-03-16 Thread Bin Meng
Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng --- (no changes since v1) hw/net/rtl8139.c | 12 1 file changed, 12 deletions(-) diff --git a/hw/net/rtl8139.c

[PATCH v4 05/12] hw/net: e1000: Remove the logic of padding short frames in the receive path

2021-03-16 Thread Bin Meng
Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. This actually reverts commit 78aeb23eded2d0b765bf9145c71f80025b568acd. Signed-off-by: Bin Meng --- (no changes since v1) hw/net/e1000.c | 11 +-- 1 file

[PATCH v4 04/12] hw/net: virtio-net: Initialize nc->do_not_pad to true

2021-03-16 Thread Bin Meng
For virtio-net, there is no need to pad the Ethernet frame size to 60 bytes before sending to it. Signed-off-by: Bin Meng --- (no changes since v1) hw/net/virtio-net.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index

[PATCH v4 03/12] net: Pad short frames to minimum size before sending from SLiRP/TAP

2021-03-16 Thread Bin Meng
The minimum Ethernet frame length is 60 bytes. For short frames with smaller length like ARP packets (only 42 bytes), on a real world NIC it can choose either padding its length to the minimum required 60 bytes, or sending it out directly to the wire. Such behavior can be hardcoded or controled by

[PATCH v4 07/12] hw/net: i82596: Remove the logic of padding short frames in the receive path

2021-03-16 Thread Bin Meng
Now that we have implemented unified short frames padding in the QEMU networking codes, remove the same logic in the NIC codes. Signed-off-by: Bin Meng --- (no changes since v1) hw/net/i82596.c | 18 -- 1 file changed, 18 deletions(-) diff --git a/hw/net/i82596.c

[PATCH v4 02/12] net: Add a 'do_not_pad" to NetClientState

2021-03-16 Thread Bin Meng
This adds a flag in NetClientState, so that a net client can tell its peer that the packets do not need to be padded to the minimum size of an Ethernet frame (60 bytes) before sending to it. Signed-off-by: Bin Meng Reviewed-by: Philippe Mathieu-Daudé --- (no changes since v3) Changes in v3:

[PATCH v4 00/12] net: Pad short frames for network backends

2021-03-16 Thread Bin Meng
The minimum Ethernet frame length is 60 bytes. For short frames with smaller length like ARP packets (only 42 bytes), on a real world NIC it can choose either padding its length to the minimum required 60 bytes, or sending it out directly to the wire. Such behavior can be hardcoded or controled by

[PATCH v4 01/12] net: eth: Add a helper to pad a short Ethernet frame

2021-03-16 Thread Bin Meng
Add a helper to pad a short Ethernet frame to the minimum required length, which can be used by backend codes. Signed-off-by: Bin Meng --- Changes in v4: - change 'ethernet' to 'Ethernet' - do not inline the helper - check the padded buffer size to avoid buffer overflow Changes in v3: - use

Re: [PATCH] target/mips/mxu: Rewrite D16MIN / D16MAX opcodes

2021-03-16 Thread Philippe Mathieu-Daudé
On 3/16/21 11:51 AM, Peter Maydell wrote: > On Mon, 15 Mar 2021 at 22:39, Philippe Mathieu-Daudé wrote: >> >> Coverity reported (CID 1450831) an array overrun in >> gen_mxu_D16MAX_D16MIN(): >> >> 1103 } else if (unlikely((XRb == 0) || (XRa == 0))) { >> >> 1112 if (opc ==

[Bug 1880518] Re: issue while installing docker inside s390x container

2021-03-16 Thread Nayana
Any pointers about this issue? Any other steps needs to be followed to resolve the issue? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1880518 Title: issue while installing docker inside s390x

Re: [PATCH v7 0/8] Pegasos2 emulation

2021-03-16 Thread Philippe Mathieu-Daudé
On 3/16/21 10:01 AM, Laurent Vivier wrote: > Le 15/03/2021 à 13:33, BALATON Zoltan a écrit : >> On Sat, 13 Mar 2021, BALATON Zoltan wrote: >>> On Wed, 10 Mar 2021, BALATON Zoltan wrote: Hello, >>> >>> I've started posting this series well in advance to get it into 6.0 and yet >>> it seems

[PULL 1/1] hw/9pfs/9p-synth: Replaced qemu_mutex_lock with QEMU_LOCK_GUARD

2021-03-16 Thread Christian Schoenebeck
From: Mahmoud Mandour Replaced a call to qemu_mutex_lock and its respective call to qemu_mutex_unlock and used QEMU_LOCK_GUARD macro in their place. This simplifies the code by removing the call required to unlock and also eliminates goto paths. Signed-off-by: Mahmoud Mandour Acked-by: Greg

[PULL 0/1] 9p queue 2021-03-16

2021-03-16 Thread Christian Schoenebeck
-9p-20210316 for you to fetch changes up to e4fd889f51094a8e76274ca1e9e0ed70375166f0: hw/9pfs/9p-synth: Replaced qemu_mutex_lock with QEMU_LOCK_GUARD (2021-03-16 11:41:49 +0100) 9pfs: code cleanup * Use lock-guard design pattern

Re: [PATCH] migration: Move populate_vfio_info() into a separate file

2021-03-16 Thread Dr. David Alan Gilbert
* Thomas Huth (th...@redhat.com) wrote: > On 15/03/2021 22.05, Philippe Mathieu-Daudé wrote: > > Hi Thomas, > > > > +Alex > > > > On 3/15/21 8:07 PM, Thomas Huth wrote: > > > The CONFIG_VFIO switch only works in target specific code. Since > > > migration/migration.c is common code, the #ifdef

[PATCH v2] hw/isa/Kconfig: Add missing dependency VIA VT82C686 -> APM

2021-03-16 Thread Philippe Mathieu-Daudé
TYPE_VIA_PM calls apm_init() in via_pm_realize(), so requires APM to be selected. Reported-by: BALATON Zoltan Signed-off-by: Philippe Mathieu-Daudé --- Rebased on usb-20210315-pull-request Based-on: <20210315180240.1597240-1-kra...@redhat.com> --- hw/isa/Kconfig | 1 + 1 file changed, 1

Re: [PULL v2 0/5] Meson version update

2021-03-16 Thread Peter Maydell
On Mon, 15 Mar 2021 at 22:04, Peter Maydell wrote: > > On Mon, 15 Mar 2021 at 17:47, Paolo Bonzini wrote: > > > > The following changes since commit 51204c2f188ec1e2a38f14718d38a3772f850a4b: > > > > Merge remote-tracking branch > > 'remotes/bkoppelmann2/tags/pull-tricore-20210314' into

Re: [PULL 0/3] Audio 20210316 patches

2021-03-16 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20210316104745.2196286-1-kra...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20210316104745.2196286-1-kra...@redhat.com Subject: [PULL 0/3] Audio 20210316 patches

Re: [PATCH 1/6] accel: Introduce 'query-accels' QMP command

2021-03-16 Thread Philippe Mathieu-Daudé
On 3/16/21 11:26 AM, Philippe Mathieu-Daudé wrote: > On 3/16/21 10:02 AM, Philippe Mathieu-Daudé wrote: >> On 3/16/21 7:51 AM, Markus Armbruster wrote: >>> Eric Blake writes: >>> On 3/11/21 5:11 PM, Philippe Mathieu-Daudé wrote: >>> [...] > diff --git a/accel/accel-qmp.c

Re: [PATCH] target/mips/mxu: Rewrite D16MIN / D16MAX opcodes

2021-03-16 Thread Peter Maydell
On Mon, 15 Mar 2021 at 22:39, Philippe Mathieu-Daudé wrote: > > Coverity reported (CID 1450831) an array overrun in > gen_mxu_D16MAX_D16MIN(): > > 1103 } else if (unlikely((XRb == 0) || (XRa == 0))) { > > 1112 if (opc == OPC_MXU_D16MAX) { > 1113

Re: [PATCH] hw/core: Only build guest-loader if libfdt is available

2021-03-16 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Add a Kconfig entry for guest-loader so we can optionally deselect > it (default is built in), and add a Meson dependency on libfdt. > > This fixes when building with --disable-fdt: > > /usr/bin/ld: libcommon.fa.p/hw_core_guest-loader.c.o: in function >

[PULL 1/3] coreaudio: Drop support for macOS older than 10.6

2021-03-16 Thread Gerd Hoffmann
From: Akihiko Odaki Mac OS X 10.6 was released in 2009. Signed-off-by: Akihiko Odaki Reviewed-by: Peter Maydell Message-Id: <20210311151512.22096-1-akihiko.od...@gmail.com> Signed-off-by: Gerd Hoffmann --- audio/coreaudio.c | 103 -- 1 file

[PULL 0/3] Audio 20210316 patches

2021-03-16 Thread Gerd Hoffmann
The following changes since commit 2615a5e433aeb812c300d3a48e1a88e1303e2339: Merge remote-tracking branch 'remotes/stefanha-gitlab/tags/block-pull-reque= st' into staging (2021-03-15 19:23:00 +) are available in the Git repository at: git://git.kraxel.org/qemu tags/audio-20210316-pull

[PULL 2/3] coreaudio: Extract device operations

2021-03-16 Thread Gerd Hoffmann
From: Akihiko Odaki This change prepare to support dynamic device changes, which requires to perform device initialization/deinitialization multiple times. Signed-off-by: Akihiko Odaki Message-Id: <20210311151512.22096-2-akihiko.od...@gmail.com> Signed-off-by: Gerd Hoffmann ---

[PULL 3/3] coreaudio: Handle output device change

2021-03-16 Thread Gerd Hoffmann
From: Akihiko Odaki An output device change can occur when plugging or unplugging an earphone. Signed-off-by: Akihiko Odaki Message-Id: <20210311151512.22096-3-akihiko.od...@gmail.com> Signed-off-by: Gerd Hoffmann --- audio/coreaudio.c | 206 -- 1

Re: [RFC v2 10/13] vhost: add vhost_kernel_set_vring_enable

2021-03-16 Thread Eugenio Perez Martin
On Tue, Mar 16, 2021 at 8:30 AM Jason Wang wrote: > > > 在 2021/3/16 上午3:48, Eugenio Pérez 写道: > > This method is already present in vhost-user. This commit adapts it to > > vhost-net, so SVQ can use. > > > > vhost_kernel_set_enable stops the device, so qemu can ask for its status > > (next

Re: [PATCH 1/6] accel: Introduce 'query-accels' QMP command

2021-03-16 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > On 3/16/21 10:02 AM, Philippe Mathieu-Daudé wrote: >> On 3/16/21 7:51 AM, Markus Armbruster wrote: >>> Eric Blake writes: >>> On 3/11/21 5:11 PM, Philippe Mathieu-Daudé wrote: >>> [...] > diff --git a/accel/accel-qmp.c b/accel/accel-qmp.c > new file

[PULL 09/11] qapi: Implement deprecated-input=reject for QMP commands

2021-03-16 Thread Markus Armbruster
This policy rejects deprecated input, and thus permits "testing the future". Implement it for QMP commands: make deprecated ones fail. Example: when QEMU is run with -compat deprecated-input=reject, then {"execute": "query-cpus"} fails like this {"error": {"class": "CommandNotFound",

[PULL 08/11] test-util-sockets: Add stub for monitor_set_cur()

2021-03-16 Thread Markus Armbruster
Without this stub, the next commit fails to link. I suspect the real cause is 947e47448d "monitor: Use getter/setter functions for cur_mon". Cc: Kevin Wolf Signed-off-by: Markus Armbruster Message-Id: <20210312153210.2810514-8-arm...@redhat.com> Reviewed-by: Eric Blake ---

[PULL 00/11] QAPI patches patches for 2021-03-16

2021-03-16 Thread Markus Armbruster
The following changes since commit 2615a5e433aeb812c300d3a48e1a88e1303e2339: Merge remote-tracking branch 'remotes/stefanha-gitlab/tags/block-pull-request' into staging (2021-03-15 19:23:00 +) are available in the Git repository at: git://repo.or.cz/qemu/armbru.git

[PULL 10/11] qapi: Implement deprecated-input=reject for QMP command arguments

2021-03-16 Thread Markus Armbruster
This policy rejects deprecated input, and thus permits "testing the future". Implement it for QMP command arguments: reject commands with deprecated ones. Example: when QEMU is run with -compat deprecated-input=reject, then {"execute": "eject", "arguments": {"device": "cd"}} fails like

[PULL 07/11] qapi: Implement deprecated-output=hide for QMP introspection

2021-03-16 Thread Markus Armbruster
This policy suppresses deprecated bits in output, and thus permits "testing the future". Implement it for QMP command query-qmp-schema: suppress information on deprecated commands, events and object type members, i.e. anything that has the special feature flag "deprecated". Signed-off-by: Markus

<    1   2   3   4   5   6   >