RE: [PATCH v16 00/10] VIRTIO-IOMMU device

2020-03-04 Thread Tian, Kevin
> From: Jean-Philippe Brucker > Sent: Thursday, March 5, 2020 3:34 PM > > On Thu, Mar 05, 2020 at 02:56:20AM +, Tian, Kevin wrote: > > > From: Jean-Philippe Brucker > > > Sent: Thursday, March 5, 2020 12:47 AM > > > > > [...] > > > > > > > > > > * We can't use DVM in nested mode unless the

Re: [PATCH v2] hw/char/pl011: Enable TxFIFO and async transmission

2020-03-04 Thread Gavin Shan
On 2/24/20 2:13 PM, Gavin Shan wrote: The depth of TxFIFO can be 1 or 16 depending on LCR[4]. The TxFIFO is disabled when its depth is 1. It's nice to have TxFIFO enabled if possible because more characters can be piled and transmitted at once, which would have less overhead. Besides, we can be

Re: [PATCH v16 00/10] VIRTIO-IOMMU device

2020-03-04 Thread Jean-Philippe Brucker
On Thu, Mar 05, 2020 at 02:56:20AM +, Tian, Kevin wrote: > > From: Jean-Philippe Brucker > > Sent: Thursday, March 5, 2020 12:47 AM > > > [...] > > > > > > > > * We can't use DVM in nested mode unless the VMID is shared with the > > > > CPU. For that we'll need the host SMMU driver to hook

Re: [PATCH v4 2/3] mac_via: fix incorrect creation of mos6522 device in mac_via

2020-03-04 Thread Pan Nengyuan
On 3/5/2020 2:54 PM, Pan Nengyuan wrote: > This patch fix a bug in mac_via where it failed to actually realize devices > it was using. > And move the init codes which inits the mos6522 objects and properties on > them from realize() > into init(). However, we keep qdev_set_parent_bus in

Re: [PATCH v4 2/3] mac_via: fix incorrect creation of mos6522 device in mac_via

2020-03-04 Thread Pan Nengyuan
On 3/5/2020 2:54 PM, Pan Nengyuan wrote: > This patch fix a bug in mac_via where it failed to actually realize devices > it was using. > And move the init codes which inits the mos6522 objects and properties on > them from realize() > into init(). However, we keep qdev_set_parent_bus in

Re: [RFC] QEMU Gating CI

2020-03-04 Thread Cleber Rosa
On Mon, Mar 02, 2020 at 03:27:42PM +, Peter Maydell wrote: > > Hi -- any progress on this front? (Maybe I missed an email; if > so, sorry about that...) > > thanks > -- PMM > Hi Peter, Yes, I've made some progress on some of the points raised on the last email exchanges: 1) Jobs on

Re: [PATCH 5/5] hw/scsi/spapr_vscsi: Do not mix SRP IU size with DMA buffer size

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/5/20 1:43 AM, David Gibson wrote: On Wed, Mar 04, 2020 at 04:33:11PM +0100, Philippe Mathieu-Daudé wrote: The 'union srp_iu' is meant as a pointer to any SRP Information Unit type, it is not related to the size of a VIO DMA buffer. Use a plain buffer for the VIO DMA read/write calls. We

Re: [PATCH v4 0/3] delay timer_new from init to realize to fix memleaks.

2020-03-04 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200305065422.12707-1-pannengy...@huawei.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH v4 0/3] delay timer_new from init to realize to fix memleaks. Message-id:

[PATCH v4 2/3] mac_via: fix incorrect creation of mos6522 device in mac_via

2020-03-04 Thread Pan Nengyuan
This patch fix a bug in mac_via where it failed to actually realize devices it was using. And move the init codes which inits the mos6522 objects and properties on them from realize() into init(). However, we keep qdev_set_parent_bus in realize(), otherwise it will cause device-introspect-test

[PATCH v4 3/3] hw/misc/mos6522: move timer_new from init() into realize() to avoid memleaks

2020-03-04 Thread Pan Nengyuan
There are some memleaks when we call 'device_list_properties'. This patch move timer_new from init into realize to fix it. Reported-by: Euler Robot Signed-off-by: Pan Nengyuan --- Cc: Laurent Vivier Cc: Mark Cave-Ayland Cc: David Gibson Cc: qemu-...@nongnu.org --- v2->v1: - no changes in

[PATCH v4 1/3] s390x: fix memleaks in cpu_finalize

2020-03-04 Thread Pan Nengyuan
This patch fix memleaks when we call tests/qtest/cpu-plug-test on s390x. The leak stack is as follow: Direct leak of 48 byte(s) in 1 object(s) allocated from: #0 0x7fb43c7cd970 in __interceptor_calloc (/lib64/libasan.so.5+0xef970) #1 0x7fb43be2149d in g_malloc0

[PATCH v4 0/3] delay timer_new from init to realize to fix memleaks.

2020-03-04 Thread Pan Nengyuan
This series delay timer_new from init into realize to avoid memleaks when we call 'device_list_properties'. And do timer_free only in s390x_cpu_finalize because it's hotplugable. However, mos6522_realize is never called at all due to the incorrect creation of it. So we aslo fix the incorrect

Re: [kvm-unit-tests PATCH v3 08/14] arm/arm64: ITS: its_enable_defaults

2020-03-04 Thread Zenghui Yu
Hi Eric, On 2020/3/4 22:26, Auger Eric wrote: Hi Zenghui, On 2/7/20 4:20 AM, Zenghui Yu wrote: Hi Eric, On 2020/1/28 18:34, Eric Auger wrote: its_enable_defaults() is the top init function that allocates the command queue and all the requested tables (device, collection, lpi config and

Re: [PATCH v2 4/4] qapi: Brush off some (py)lint

2020-03-04 Thread Markus Armbruster
John Snow writes: > On 3/4/20 10:59 AM, Markus Armbruster wrote: >> Signed-off-by: Markus Armbruster >> --- >> scripts/qapi/commands.py | 2 +- >> scripts/qapi/expr.py | 3 +-- >> scripts/qapi/gen.py| 9 ++--- >> scripts/qapi/introspect.py | 2 -- >>

Re: [PATCH v6 9/9] iotests: add pylintrc file

2020-03-04 Thread Markus Armbruster
John Snow writes: > On 3/4/20 2:22 AM, Markus Armbruster wrote: >> John Snow writes: >> >>> Repeatable results. run `pylint iotests.py` and you should get a pass. >> >> Start your sentences with a capital letter, please. >> > > The German complains about the capitalization, but not the

Re: [PATCH 4/4] qapi: Brush off some (py)lint

2020-03-04 Thread Markus Armbruster
John Snow writes: > On 3/4/20 3:01 AM, Markus Armbruster wrote: >> John Snow writes: >> >>> On 2/27/20 9:45 AM, Markus Armbruster wrote: Signed-off-by: Markus Armbruster >>> >>> I wrote some pylint cleanup for iotests recently, too. Are you targeting >>> a subset of pylint errors to

Re: vmx=on with -accel hax

2020-03-04 Thread Markus Armbruster
Cc'ing people listed by "scripts/get_maintainer.pl -f target/i386/hax*". Rui Prior writes: > Dear qemu developers, > > I found a bug/limitation of qemu on windows (qemu-w64-setup-20200201.exe > from https://qemu.weilnetz.de/w64/ ) that makes qemu terminate > immediately with "VCPU shutdown

[PATCH v3 1/2] spapr: Disable legacy virtio devices for pseries-5.0 and later

2020-03-04 Thread David Gibson
PAPR specifies a kind of odd, paravirtualized PCI bus, which looks to the guess mostly like classic PCI, even if some of the individual devices on the bus are PCI Express. One consequence of that is that virtio-pci devices still default to being in transitional mode, though legacy mode is now

[PATCH v3 0/2] spapr: Use vIOMMU translation for virtio by default

2020-03-04 Thread David Gibson
Upcoming Secure VM support for pSeries machines introduces some complications for virtio, since the transfer buffers need to be explicitly shared so that the hypervisor can access them. While it's not strictly speaking dependent on it, the fact that virtio devices bypass normal platform IOMMU

[PATCH v3 2/2] spapr: Enable virtio iommu_platform=on by default

2020-03-04 Thread David Gibson
Traditionally, virtio devices don't do DMA by the usual path on the guest platform. In particular they usually bypass any virtual IOMMU the guest has, using hypervisor magic to access untranslated guest physical addresses. There's now the optional iommu_platform flag which can tell virtio

Re: [PATCH] virtio-serial-bus: do cleanup on the error path in realize() to avoid memleaks

2020-03-04 Thread Pan Nengyuan
On 3/4/2020 5:23 PM, Markus Armbruster wrote: > Pan Nengyuan writes: > >> port->bh forgot to delete on the error path, this patch add it to fix >> memleaks. It's easy to reproduce as follow(add a same nr port): >> {'execute': 'device_add', 'arguments': {'id': 'virtio_serial_pci0', >>

RE: [PATCH v16 00/10] VIRTIO-IOMMU device

2020-03-04 Thread Tian, Kevin
> From: Jean-Philippe Brucker > Sent: Thursday, March 5, 2020 12:47 AM > [...] > > > > > > * We can't use DVM in nested mode unless the VMID is shared with the > > > CPU. For that we'll need the host SMMU driver to hook into the KVM > VMID > > > allocator, just like we do for the ASID allocator.

Re: [PATCH 5/5] hw/scsi/spapr_vscsi: Do not mix SRP IU size with DMA buffer size

2020-03-04 Thread David Gibson
On Wed, Mar 04, 2020 at 04:33:11PM +0100, Philippe Mathieu-Daudé wrote: > The 'union srp_iu' is meant as a pointer to any SRP Information > Unit type, it is not related to the size of a VIO DMA buffer. > > Use a plain buffer for the VIO DMA read/write calls. > We can remove the reserved buffer

Re: [PATCH 4/5] hw/scsi/spapr_vscsi: Introduce req_ui() helper

2020-03-04 Thread David Gibson
On Wed, Mar 04, 2020 at 04:33:10PM +0100, Philippe Mathieu-Daudé wrote: > Introduce the req_ui() helper which returns a pointer to > the viosrp_iu union held in the vscsi_req structure. > This simplifies the next patch. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/scsi/spapr_vscsi.c |

Re: [PATCH 1/5] hw/scsi/viosrp: Add missing 'hw/scsi/srp.h' include

2020-03-04 Thread David Gibson
On Wed, Mar 04, 2020 at 04:33:07PM +0100, Philippe Mathieu-Daudé wrote: > This header use the srp_* structures declared in "hw/scsi/srp.h". > > Signed-off-by: Philippe Mathieu-Daudé Applied to ppc-for-5.0. > --- > hw/scsi/viosrp.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [PATCH 3/5] hw/scsi/spapr_vscsi: Simplify a bit

2020-03-04 Thread David Gibson
On Wed, Mar 04, 2020 at 04:33:09PM +0100, Philippe Mathieu-Daudé wrote: > We already have a ui pointer, use it (to simplify the next commit). > > Signed-off-by: Philippe Mathieu-Daudé Applied to ppc-for-5.0. > --- > hw/scsi/spapr_vscsi.c | 6 +++--- > 1 file changed, 3 insertions(+), 3

Re: [PATCH 4/5] hw/scsi/spapr_vscsi: Introduce req_ui() helper

2020-03-04 Thread David Gibson
On Thu, Mar 05, 2020 at 11:41:37AM +1100, David Gibson wrote: > On Wed, Mar 04, 2020 at 04:33:10PM +0100, Philippe Mathieu-Daudé wrote: > > Introduce the req_ui() helper which returns a pointer to > > the viosrp_iu union held in the vscsi_req structure. > > This simplifies the next patch. > > > >

Re: [PATCH 2/5] hw/scsi/spapr_vscsi: Use SRP_MAX_IU_LEN instead of sizeof flexible array

2020-03-04 Thread David Gibson
On Wed, Mar 04, 2020 at 04:33:08PM +0100, Philippe Mathieu-Daudé wrote: > Replace sizeof() flexible arrays union srp_iu/viosrp_iu by the > SRP_MAX_IU_LEN definition, which is what this code actually meant > to use. > > Signed-off-by: Philippe Mathieu-Daudé Applied to ppc-for-5.0 > --- >

[PATCH 2/3] hw/net/e1000: Move macreg[] arrays to .rodata to save 1MiB of .data

2020-03-04 Thread Philippe Mathieu-Daudé
Each array consumes 256KiB of .data. As we do not reassign entries, we can move it to the .rodata section, and save a total of 1MiB of .data (size reported on x86_64 host). Signed-off-by: Philippe Mathieu-Daudé --- hw/net/e1000.c | 4 ++-- hw/net/e1000e_core.c | 4 ++-- 2 files changed, 4

[PATCH 3/3] virtfs-proxy-helper: Make the helper_opts[] array const

2020-03-04 Thread Philippe Mathieu-Daudé
Reduce a bit the memory footprint by making the helper_opts[] array const. Signed-off-by: Philippe Mathieu-Daudé --- fsdev/virtfs-proxy-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index

[PATCH 0/3] hw/net,virtfs-proxy-helper: Reduce .data footprint

2020-03-04 Thread Philippe Mathieu-Daudé
More memory footprint reduction, similar to: https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg00984.html The elf-dissector tool [1] [2] helped to notice the big array. [1] https://phabricator.kde.org/source/elf-dissector/ [2]

[PATCH 1/3] hw/net/e1000: Add readops/writeops typedefs

2020-03-04 Thread Philippe Mathieu-Daudé
Express the macreg[] arrays using typedefs. No logical changes introduced here. Signed-off-by: Philippe Mathieu-Daudé --- hw/net/e1000.c | 6 -- hw/net/e1000e_core.c | 6 -- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/net/e1000.c b/hw/net/e1000.c index

[PATCH 2/2] Makefile: Let the 'help' target list the tools targets

2020-03-04 Thread Philippe Mathieu-Daudé
List the name of the tool targets when calling 'make help': $ make help [...] Tools targets: qemu-ga- Build qemu-ga tool qemu-keymap- Build qemu-keymap tool elf2dmp- Build elf2dmp tool ivshmem-client

[PATCH 1/2] Makefile: Align 'help' target output

2020-03-04 Thread Philippe Mathieu-Daudé
The 'help' target is displayed unaligned. Add a print-help function and use it. Now if someone want to change the indentation, there is a single place to modify. Signed-off-by: Philippe Mathieu-Daudé --- Makefile | 44 +++- 1 file changed, 23

[PATCH 0/2] Makefile: Re-indent 'help' target and list tools

2020-03-04 Thread Philippe Mathieu-Daudé
This series improves the 'make help' output: - re-indent current output - list tools targets: $ make help [...] Architecture specific targets: x86_64-softmmu/all - Build for x86_64-softmmu Tools targets: qemu-ga- Build qemu-ga tool

[PATCH] linux-user: do prlimit selectively

2020-03-04 Thread Tobias Koch
Analogous to what commit 5dfa88f7 did for setrlimit, this commit selectively ignores limits for memory-related resources in prlimit64 calls. This is to prevent too restrictive limits from causing QEMU itself to malfunction. Signed-off-by: Tobias Koch ---  linux-user/syscall.c | 16

Re: [PATCH] hw/ide: Remove status register read side effect

2020-03-04 Thread jasper.lowell
> Yes, that's correct. However I'm quite confident from booting other > non-Solaris OSs > under qemu-system-sparc64 that PCI native mode is being used, > particularly as it is > possible to see the related PCI sabre IRQ routing configuration > changes. Considering that Solaris 10 is accessing CFR

Re: [PATCH v3 12/20] hw/ide: Let the DMAIntFunc prototype use a boolean 'is_write' argument

2020-03-04 Thread John Snow
On 2/20/20 8:05 AM, Philippe Mathieu-Daudé wrote: > The 'is_write' argument is either 0 or 1. > Convert it to a boolean type. > > Signed-off-by: Philippe Mathieu-Daudé > --- > include/hw/ide/internal.h | 2 +- > hw/dma/rc4030.c | 6 +++--- > hw/ide/ahci.c | 2 +- >

Re: [PATCH v3 11/20] hw/ide/internal: Remove unused DMARestartFunc typedef

2020-03-04 Thread John Snow
On 2/20/20 8:05 AM, Philippe Mathieu-Daudé wrote: > The IDE DMA restart callback has been removed in commit fe09c7c9f0. > > Fixes: fe09c7c9f0 > Signed-off-by: Philippe Mathieu-Daudé > --- > include/hw/ide/internal.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git

[PATCH v2 3/3] iotests: modify test 040 to use JobRunner

2020-03-04 Thread John Snow
Instead of having somewhat reproduced it for itself. Signed-off-by: John Snow --- tests/qemu-iotests/040 | 51 +- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/tests/qemu-iotests/040 b/tests/qemu-iotests/040 index 90b59081ff..e2ef3bb812

[PATCH v2 1/3] qmp.py: change event_wait to use a dict

2020-03-04 Thread John Snow
It's easier to work with than a list of tuples, because we can check the keys for membership. Signed-off-by: John Snow --- python/qemu/machine.py| 10 +- tests/qemu-iotests/040| 12 ++-- tests/qemu-iotests/260| 5 +++-- tests/qemu-iotests/iotests.py | 16

[PATCH v2 0/3] iotests: add JobRunner framework

2020-03-04 Thread John Snow
Requires: 20200304213818.15341-1-js...@redhat.com (This requires the iotests pylint & logging series.) The basic idea is to make a generic job runtime manager and allow callers to subclass the manager. Then, instead of adding callback arguments to the function all the time, we have à la carte

[PATCH v2 2/3] iotests: add JobRunner class

2020-03-04 Thread John Snow
The idea is that instead of increasing the arguments to job_run all the time, create a more general-purpose job runner that can be subclassed to do interesting things with. pylint note: the 'callbacks' option guards against unused warning arguments in functions designated as callbacks. It does

Re: [PATCH v1 1/3] riscv/sifive_u: Fix up file ordering

2020-03-04 Thread Alistair Francis
On Wed, Mar 4, 2020 at 6:10 AM Bin Meng wrote: > > On Wed, Mar 4, 2020 at 9:37 AM Alistair Francis > wrote: > > > > Split the file into clear machine and SoC sections. > > > > Yep, I found functions in this file are a little bit confusing as well .. > > > Signed-off-by: Alistair Francis > > ---

Re: [PATCH v2 0/3] hw/riscv: Add a serial property to the sifive_u machine

2020-03-04 Thread no-reply
Patchew URL: https://patchew.org/QEMU/cover.1583362888.git.alistair.fran...@wdc.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT

Re: [PULL 1/1] qxl: introduce hardware revision 5

2020-03-04 Thread Laszlo Ersek
Hi Gerd, On 02/13/20 10:06, Gerd Hoffmann wrote: > The only difference to hardware revision 4 is that the device doesn't > switch to VGA mode in case someone happens to touch a VGA register, > which should make things more robust in configurations with multiple > vga devices. > > Swtiching back

Re: [PATCH v2] riscv: sifive_u: Add a "serial" property for board serial number

2020-03-04 Thread Alistair Francis
On Wed, Mar 4, 2020 at 3:00 PM Palmer Dabbelt wrote: > > On Sun, 16 Feb 2020 05:55:17 PST (-0800), bmeng...@gmail.com wrote: > > At present the board serial number is hard-coded to 1, and passed > > to OTP model during initialization. Firmware (FSBL, U-Boot) uses > > the serial number to generate

Re: [PATCH v7 06/10] iotests: limit line length to 79 chars

2020-03-04 Thread John Snow
On 3/4/20 4:58 PM, Philippe Mathieu-Daudé wrote: > Do we want to indent Python like C and align argument below opening > parenthesis? Except when using sys.stderr.write() you seem to do it. This isn't an argument to write, it's an argument to the format string, so I will say "no." For *where*

Re: [PATCH v1 2/3] riscv/sifive_u: Add a serial property to the sifive_u SoC

2020-03-04 Thread Alistair Francis
On Wed, Mar 4, 2020 at 6:47 AM Bin Meng wrote: > > Hi Alistair, > > On Wed, Mar 4, 2020 at 9:37 AM Alistair Francis > wrote: > > > > At present the board serial number is hard-coded to 1, and passed > > to OTP model during initialization. Firmware (FSBL, U-Boot) uses > > the serial number to

[PATCH v2 3/3] riscv/sifive_u: Add a serial property to the sifive_u machine

2020-03-04 Thread Alistair Francis
From: Bin Meng At present the board serial number is hard-coded to 1, and passed to OTP model during initialization. Firmware (FSBL, U-Boot) uses the serial number to generate a unique MAC address for the on-chip ethernet controller. When multiple QEMU 'sifive_u' instances are created and

[PATCH v2 1/3] riscv/sifive_u: Fix up file ordering

2020-03-04 Thread Alistair Francis
Split the file into clear machine and SoC sections. Signed-off-by: Alistair Francis --- hw/riscv/sifive_u.c | 107 ++-- 1 file changed, 54 insertions(+), 53 deletions(-) diff --git a/hw/riscv/sifive_u.c b/hw/riscv/sifive_u.c index 156a003642..9a0145b5b4

[PATCH v2 0/3] hw/riscv: Add a serial property to the sifive_u machine

2020-03-04 Thread Alistair Francis
At present the board serial number is hard-coded to 1, and passed to OTP model during initialization. Firmware (FSBL, U-Boot) uses the serial number to generate a unique MAC address for the on-chip ethernet controller. When multiple QEMU 'sifive_u' instances are created and connected to the same

[PATCH v2 2/3] riscv/sifive_u: Add a serial property to the sifive_u SoC

2020-03-04 Thread Alistair Francis
At present the board serial number is hard-coded to 1, and passed to OTP model during initialization. Firmware (FSBL, U-Boot) uses the serial number to generate a unique MAC address for the on-chip ethernet controller. When multiple QEMU 'sifive_u' instances are created and connected to the same

Re: [PATCH v2] riscv: sifive_u: Add a "serial" property for board serial number

2020-03-04 Thread Palmer Dabbelt
On Sun, 16 Feb 2020 05:55:17 PST (-0800), bmeng...@gmail.com wrote: At present the board serial number is hard-coded to 1, and passed to OTP model during initialization. Firmware (FSBL, U-Boot) uses the serial number to generate a unique MAC address for the on-chip ethernet controller. When

Re: [EXTERNAL] Re: PATCH] WHPX: TSC get and set should be dependent on VM state

2020-03-04 Thread Paolo Bonzini
On 04/03/20 23:44, Sunil Muthuswamy wrote: >> You don't need the "git config --local commit.gpgsign true" command, but >> you will then create a signed tag with >> >> git tag -s -f qemu-for-upstream >> # let's say "mirror" is your github repo >> git push mirror +tags/for-upstream >>

RE: [EXTERNAL] Re: PATCH] WHPX: TSC get and set should be dependent on VM state

2020-03-04 Thread Sunil Muthuswamy
> -Original Message- > From: Paolo Bonzini On Behalf Of Paolo Bonzini > Sent: Tuesday, March 3, 2020 9:53 AM > To: Sunil Muthuswamy ; Richard Henderson > ; Eduardo Habkost > Cc: qemu-devel@nongnu.org; Stefan Weil > Subject: Re: [EXTERNAL] Re: PATCH] WHPX: TSC get and set should be

Re: [PATCH v7 01/10] iotests: do a light delinting

2020-03-04 Thread John Snow
On 3/4/20 4:45 PM, Philippe Mathieu-Daudé wrote: > I don't understand the rational for this change, but the result is > correct anyway, so thanks for this nice cleanup! Leftover from when 'no-else-return' was enabled. It's mostly harmless.

Re: [PATCH v5 14/50] mutli-process: build remote command line args

2020-03-04 Thread Elena Ufimtseva
On Wed, Mar 04, 2020 at 04:33:57PM +, Daniel P. Berrangé wrote: > On Wed, Mar 04, 2020 at 08:25:34AM -0800, Elena Ufimtseva wrote: > > On Wed, Mar 04, 2020 at 11:00:32AM +, Daniel P. Berrangé wrote: > > > On Mon, Mar 02, 2020 at 02:39:37PM -0800, Elena Ufimtseva wrote: > > > > On Mon, Mar

Re: [PATCH 2/2] via-ide: Also emulate non 100% native mode

2020-03-04 Thread BALATON Zoltan
On Wed, 4 Mar 2020, Mark Cave-Ayland wrote: On 04/03/2020 00:22, BALATON Zoltan wrote: So on that basis the best explanation as to what is happening is the comment in the link you provided here:

[PATCH 0/6] hw,ui: Reduce QEMU .rodata/.bss footprint

2020-03-04 Thread Philippe Mathieu-Daudé
This series reduce the footprint of the QEMU binary: .bss: 106KiB (moved to .heap) .rodata: 4.34MiB (sizes on x86_64 building with -Os) The elf-dissector tool [1] [2] helped to notice the big array. [1] https://phabricator.kde.org/source/elf-dissector/ [2]

[PATCH 5/6] ui/curses: Make control_characters[] array const

2020-03-04 Thread Philippe Mathieu-Daudé
As we only use this array as input, make it const. Signed-off-by: Philippe Mathieu-Daudé --- ui/curses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/curses.c b/ui/curses.c index 3a1b71451c..3bafc10c1c 100644 --- a/ui/curses.c +++ b/ui/curses.c @@ -529,7 +529,7 @@

[PATCH 6/6] ui/curses: Move arrays to .heap to save 74KiB of .bss

2020-03-04 Thread Philippe Mathieu-Daudé
We only need these arrays when using the curses display. Move them from the .bss to the .heap (sizes reported on x86_64 host: screen[] is 64KiB, vga_to_curses 7KiB). Signed-off-by: Philippe Mathieu-Daudé --- ui/curses.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH 1/6] hw/audio/fmopl: Fix a typo twice

2020-03-04 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/audio/fmopl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 9f50a89b4a..173a7521f2 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -1066,7 +1066,7 @@ static void

[PATCH 3/6] hw/usb/quirks: Use smaller types to reduce .rodata by 10KiB

2020-03-04 Thread Philippe Mathieu-Daudé
The USB descriptor sizes are specified as 16-bit for idVendor / idProduct, and 8-bit for bInterfaceClass / bInterfaceSubClass / bInterfaceProtocol. Doing so we reduce the usbredir_raw_serial_ids[] and usbredir_ftdi_serial_ids[] arrays from 16KiB to 6KiB (size reported on x86_64 host, building with

[PATCH 4/6] hw/audio/intel-hda: Use memory region alias to reduce .rodata by 4.34MB

2020-03-04 Thread Philippe Mathieu-Daudé
The intel-hda model uses an array of register indexed by the register address. This array also contains a pair of aliased registers at offset 0x2000. This creates a huge hole in the array, which ends up eating 4.6MiB of .rodata (size reported on x86_64 host, building with --extra-cflags=-Os). By

[PATCH 2/6] hw/audio/fmopl: Move ENV_CURVE to .heap to save 32KiB of .bss

2020-03-04 Thread Philippe Mathieu-Daudé
This buffer is only used by the adlib audio device. Move it to the .heap to release 32KiB of .bss (size reported on x86_64 host). Signed-off-by: Philippe Mathieu-Daudé --- hw/audio/fmopl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c

Re: [PATCH v7 04/10] iotests: replace mutable list default args

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 10:38 PM, John Snow wrote: It's bad hygiene: if we modify this list, it will be modified across all invocations. (Remaining bad usages are fixed in a subsequent patch which changes the function signature anyway.) Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 24

Re: [PATCH v7 06/10] iotests: limit line length to 79 chars

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 10:38 PM, John Snow wrote: 79 is the PEP8 recommendation. This recommendation works well for reading patch diffs in TUI email clients. Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 69 ++- tests/qemu-iotests/pylintrc | 6 ++- 2

Re: [PATCH v7 09/10] iotests: Mark verify functions as private

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 10:38 PM, John Snow wrote: Discourage their use. I recommend you to repeat the subject, else it is harder to review looking only at patch description. (Also, make pending patches not yet using the new entry points fail in a very obvious way.) Reviewed-by: Max Reitz

[PATCH v7 10/10] iotests: use python logging for iotests.log()

2020-03-04 Thread John Snow
We can turn logging on/off globally instead of per-function. Remove use_log from run_job, and use python logging to turn on diffable output when we run through a script entry point. iotest 245 changes output order due to buffering reasons. An extended note on python logging: A NullHandler is

Re: [PATCH v7 01/10] iotests: do a light delinting

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 10:38 PM, John Snow wrote: This doesn't fix everything in here, but it does help clean up the pylint report considerably. This should be 100% style changes only; the intent is to make pylint more useful by working on establishing a baseline for iotests that we can gate against in the

[PATCH v7 07/10] iotests: add script_initialize

2020-03-04 Thread John Snow
Like script_main, but doesn't require a single point of entry. Replace all existing initialization sections with this drop-in replacement. This brings debug support to all existing script-style iotests. Reviewed-by: Max Reitz Signed-off-by: John Snow --- tests/qemu-iotests/149| 3 +-

[PATCH v7 08/10] iotest 258: use script_main

2020-03-04 Thread John Snow
Since this one is nicely factored to use a single entry point, use script_main to run the tests. Signed-off-by: John Snow Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Max Reitz --- tests/qemu-iotests/258 | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git

[PATCH v7 09/10] iotests: Mark verify functions as private

2020-03-04 Thread John Snow
Discourage their use. (Also, make pending patches not yet using the new entry points fail in a very obvious way.) Reviewed-by: Max Reitz Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git

[PATCH v7 06/10] iotests: limit line length to 79 chars

2020-03-04 Thread John Snow
79 is the PEP8 recommendation. This recommendation works well for reading patch diffs in TUI email clients. Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 69 ++- tests/qemu-iotests/pylintrc | 6 ++- 2 files changed, 48 insertions(+), 27

[PATCH v7 04/10] iotests: replace mutable list default args

2020-03-04 Thread John Snow
It's bad hygiene: if we modify this list, it will be modified across all invocations. (Remaining bad usages are fixed in a subsequent patch which changes the function signature anyway.) Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 24 1 file changed, 12

[PATCH v7 03/10] iotests: ignore import warnings from pylint

2020-03-04 Thread John Snow
The right way to solve this is to come up with a virtual environment infrastructure that sets all the paths correctly, and/or to create installable python modules that can be imported normally. That's hard, so just silence this error for now. Signed-off-by: John Snow ---

[PATCH v7 01/10] iotests: do a light delinting

2020-03-04 Thread John Snow
This doesn't fix everything in here, but it does help clean up the pylint report considerably. This should be 100% style changes only; the intent is to make pylint more useful by working on establishing a baseline for iotests that we can gate against in the future. This will be important if

[PATCH v7 05/10] iotests: add pylintrc file

2020-03-04 Thread John Snow
This allows others to get repeatable results with pylint. If you run `pylint iotests.py`, you should see a 100% pass. Signed-off-by: John Snow --- tests/qemu-iotests/pylintrc | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 tests/qemu-iotests/pylintrc diff

[PATCH v7 02/10] iotests: don't use 'format' for drive_add

2020-03-04 Thread John Snow
It shadows (with a different type) the built-in format. Use something else. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Max Reitz Signed-off-by: John Snow --- tests/qemu-iotests/055| 3 ++- tests/qemu-iotests/iotests.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-)

[PATCH v7 00/10] iotests: use python logging

2020-03-04 Thread John Snow
This series uses python logging to enable output conditionally on iotests.log(). We unify an initialization call (which also enables debugging output for those tests with -d) and then make the switch inside of iotests. It will help alleviate the need to create logged/unlogged versions of all the

Re: [PATCH] hw/ide: Remove status register read side effect

2020-03-04 Thread Mark Cave-Ayland
On 04/03/2020 03:11, jasper.low...@bt.com wrote: >> cmd646_update_irq() only seems to raise PCI interrupt, should it also >> have >> an option to use INT 14 and 15 in legacy mode similar to what my >> patch >> does for via-ide? > > Looking through /qemu/hw/ide/cmd646.c it doesn't look like

Re: [PATCH 2/2] via-ide: Also emulate non 100% native mode

2020-03-04 Thread Mark Cave-Ayland
On 04/03/2020 00:22, BALATON Zoltan wrote: So on that basis the best explanation as to what is happening is the comment in the link you provided here: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/powerpc/platforms/chrp/pci.c?h=v4.14.172#n353

Re: [PATCH v6 18/18] docs: add Orange Pi PC document

2020-03-04 Thread Niek Linnenbank
Hello Alex, On Wed, Mar 4, 2020 at 11:35 AM Alex Bennée wrote: > > Niek Linnenbank writes: > > > The Xunlong Orange Pi PC machine is a functional ARM machine > > based on the Allwinner H3 System-on-Chip. It supports mainline > > Linux, U-Boot, NetBSD and is covered by acceptance tests. > > > >

Re: [PATCH v3 5/6] hw/misc/mos6522: move timer_new from init() into realize() to avoid memleaks

2020-03-04 Thread Mark Cave-Ayland
On 03/03/2020 01:36, Pan Nengyuan wrote: > On 3/3/2020 3:17 AM, Mark Cave-Ayland wrote: >> On 02/03/2020 13:21, Peter Maydell wrote: >> >>> On Thu, 27 Feb 2020 at 02:35, Pan Nengyuan wrote: There are some memleaks when we call 'device_list_properties'. This patch move timer_new

Re: [PATCH v2 4/4] qapi: Brush off some (py)lint

2020-03-04 Thread John Snow
On 3/4/20 10:59 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > scripts/qapi/commands.py | 2 +- > scripts/qapi/expr.py | 3 +-- > scripts/qapi/gen.py| 9 ++--- > scripts/qapi/introspect.py | 2 -- > scripts/qapi/parser.py | 6 ++ >

Re: [PATCH v2 3/4] qapi: Use super() now we have Python 3

2020-03-04 Thread John Snow
On 3/4/20 10:59 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > scripts/qapi/commands.py | 4 +-- > scripts/qapi/error.py | 4 +-- > scripts/qapi/events.py | 4 +-- > scripts/qapi/gen.py| 10 > scripts/qapi/introspect.py | 4 +-- >

Re: [PATCH v2 2/4] qapi: Drop conditionals for Python 2

2020-03-04 Thread John Snow
On 3/4/20 10:59 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > Reviewed-by: Philippe Mathieu-Daudé > --- > scripts/qapi/common.py | 6 +- > scripts/qapi/gen.py| 6 +- > scripts/qapi/parser.py | 6 +- > tests/qapi-schema/test-qapi.py

Re: [PATCH v2 1/4] qapi: Inheriting from object is pointless with Python 3, drop

2020-03-04 Thread John Snow
On 3/4/20 10:59 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > Reviewed-by: Philippe Mathieu-Daudé adios, cowboy Reviewed-by: John Snow

Re: [PATCH v5 40/50] multi-process/mig: build migration module in the remote process

2020-03-04 Thread Jag Raman
On 3/4/2020 2:52 PM, Dr. David Alan Gilbert wrote: * Jag Raman (jag.ra...@oracle.com) wrote: On 3/4/2020 10:58 AM, Dr. David Alan Gilbert wrote: * Jagannathan Raman (jag.ra...@oracle.com) wrote: Add Makefile support to enable migration in remote process Signed-off-by: Elena Ufimtseva

Re: [PATCH v5 40/50] multi-process/mig: build migration module in the remote process

2020-03-04 Thread Dr. David Alan Gilbert
* Jag Raman (jag.ra...@oracle.com) wrote: > > > On 3/4/2020 10:58 AM, Dr. David Alan Gilbert wrote: > > * Jagannathan Raman (jag.ra...@oracle.com) wrote: > > > Add Makefile support to enable migration in remote process > > > > > > Signed-off-by: Elena Ufimtseva > > > Signed-off-by: John G

Re: [PATCH v5 08/50] multi-process: add functions to synchronize proxy and remote endpoints

2020-03-04 Thread Dr. David Alan Gilbert
* Jag Raman (jag.ra...@oracle.com) wrote: > > > On 3/3/2020 2:56 PM, Dr. David Alan Gilbert wrote: > > * Jagannathan Raman (jag.ra...@oracle.com) wrote: > > > In some cases, for example MMIO read, QEMU has to wait for the remote to > > > complete a command before proceeding. An eventfd based

Re: [PATCH v5 40/50] multi-process/mig: build migration module in the remote process

2020-03-04 Thread Jag Raman
On 3/4/2020 10:58 AM, Dr. David Alan Gilbert wrote: * Jagannathan Raman (jag.ra...@oracle.com) wrote: Add Makefile support to enable migration in remote process Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- Makefile.objs |

Re: [PATCH v5 16/50] multi-process: Synchronize remote memory

2020-03-04 Thread Jag Raman
On 3/4/2020 6:53 AM, Dr. David Alan Gilbert wrote: * Jagannathan Raman (jag.ra...@oracle.com) wrote: Add memory-listener object which is used to keep the view of the RAM in sync between QEMU and remote process. A MemoryListener is registered for system-memory AddressSpace. The listener sends

Re: [PATCH 4/4] qapi: Brush off some (py)lint

2020-03-04 Thread John Snow
On 3/4/20 3:01 AM, Markus Armbruster wrote: > John Snow writes: > >> On 2/27/20 9:45 AM, Markus Armbruster wrote: >>> Signed-off-by: Markus Armbruster >> >> I wrote some pylint cleanup for iotests recently, too. Are you targeting >> a subset of pylint errors to clean here? >> >> (Do any

Re: [PATCH v2 0/2] misc: Replace zero-length arrays with flexible array member

2020-03-04 Thread John Snow
On 3/4/20 10:38 AM, Philippe Mathieu-Daudé wrote: > v2: > - do not modify qed.h (structure with single member) > - based on hw/scsi/spapr_vscsi fix series: > 20200304153311.22959-1-philmd@redhat.com">https://mid.mail-archive.com/20200304153311.22959-1-philmd@redhat.com > > This is a

Re: [PATCH v6 9/9] iotests: add pylintrc file

2020-03-04 Thread John Snow
On 3/4/20 2:22 AM, Markus Armbruster wrote: > John Snow writes: > >> Repeatable results. run `pylint iotests.py` and you should get a pass. > > Start your sentences with a capital letter, please. > The German complains about the capitalization, but not the sentence fragment. >> >>

Re: [PATCH v6 17/18] docs: Add protvirt docs

2020-03-04 Thread David Hildenbrand
On 04.03.20 12:42, Janosch Frank wrote: > Lets add some documentation for the Protected VM functionality. > > Signed-off-by: Janosch Frank > --- > docs/system/index.rst| 1 + > docs/system/protvirt.rst | 57 > 2 files changed, 58 insertions(+) >

Re: [PATCH] configure: change a typo in zstd config

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/3/20 1:56 PM, Juan Quintela wrote: Denis Plotnikov wrote: Package manager --exist flag is used instead of --exists. Fix it. Signed-off-by: Denis Plotnikov Reviewed-by: Juan Quintela queued. It doesn't seem that trivial:

Re: [PATCH] configure: Fix pkg_config --exists parameter

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 6:42 PM, Dr. David Alan Gilbert wrote: * Liran Alon (liran.a...@oracle.com) wrote: pkg_config parameter should be "--exists", not "--exist". This is probably a typo. Fixes: 3a67848134d0 ("configure: Enable test and libs for zstd") Reviewed-by: Bhavesh Davda Signed-off-by: Liran Alon

  1   2   3   >