[PATCH] i386/cpu: Expand MAX_FIXED_COUNTERS from 3 to 4 to for Icelake

2020-03-16 Thread Like Xu
In the Intel SDM, "Table 18-2. Association of Fixed-Function Performance Counters with Architectural Performance Events", we may have a new fixed counter 'TOPDOWN.SLOTS' (since Icelake), which counts the number of available slots for an unhalted logical processor. Check commit 6017608936 in the

Re: [PATCH] hw/net/i82596: Correct command bitmask (CID 1419392)

2020-03-16 Thread Jason Wang
On 2020/3/13 下午7:01, Peter Maydell wrote: On Fri, 14 Feb 2020 at 00:48, Philippe Mathieu-Daudé wrote: The command is 32-bit, but we are loading the 16 upper bits with the 'get_uint16(s->scb + 2)' call. Once shifted by 16, the command bits match the status bits: - Command Bit 31 ACK-CX

[PATCH v3 2/2] target/ppc: Add support for scv and rfscv instructions

2020-03-16 Thread Nicholas Piggin
POWER9 adds scv and rfscv instructions and the system call vectored interrupt. Linux does not support this instruction yet but it has been tested with a modified kernel that runs on real hardware. Signed-off-by: Nicholas Piggin --- Since v2: - Rebased on top of FWNMI series

Re: [PATCH v3 2/2] net: tulip: add .can_recieve routine

2020-03-16 Thread Jason Wang
On 2020/3/17 上午2:01, P J P wrote: Hello Stefan, Jason, +-- On Fri, 6 Mar 2020, Stefan Hajnoczi wrote --+ | > +static int | > +tulip_can_receive(NetClientState *nc) | > +{ | > +TULIPState *s = qemu_get_nic_opaque(nc); | > + | > +if (s->rx_frame_len || tulip_rx_stopped(s)) { | > +

[PATCH v3 1/2] target/ppc: Improve syscall exception logging

2020-03-16 Thread Nicholas Piggin
system calls (at least in Linux) use registers r3-r8 for inputs, so include those registers in the dump. This also adds a mode for PAPR hcalls, which have a different calling convention. Signed-off-by: Nicholas Piggin --- Since v2: - Rebased on top of FWNMI series target/ppc/excp_helper.c |

Re: [PATCH v4 6/6] virtio-net: add migration support for RSS and hash report

2020-03-16 Thread Yuri Benditovich
On Tue, Mar 17, 2020 at 1:05 AM Michael S. Tsirkin wrote: > On Mon, Mar 16, 2020 at 12:09:33PM +0200, Yuri Benditovich wrote: > > Save and restore RSS/hash report configuration. > > > > Signed-off-by: Yuri Benditovich > > --- > > hw/net/virtio-net.c | 26 ++ > > 1 file

Re: [PATCH v3 12/34] qapi: Add feature flags to remaining definitions

2020-03-16 Thread Markus Armbruster
Eric Blake writes: > On 3/15/20 9:46 AM, Markus Armbruster wrote: >> In v4.1.0, we added feature flags just to struct types (commit >> 6a8c0b5102^..f3ed93d545), to satisfy an immediate need (commit >> c9d4070991 "file-posix: Add dynamic-auto-read-only QAPI feature"). In >> v4.2.0, we added them

Re: [PATCH v3 28/34] qapi: Implement deprecated-output=hide for QMP command results

2020-03-16 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Sun, Mar 15, 2020 at 4:11 PM Markus Armbruster wrote: >> >> This policy suppresses deprecated bits in output, and thus permits >> "testing the future". Implement it for QMP command results. Example: >> when QEMU is run with -compat deprecated-output=hide,

Re: [PATCH v3 05/34] tests/test-qmp-cmds: Factor out qmp_dispatch() test helpers

2020-03-16 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Sun, Mar 15, 2020 at 3:48 PM Markus Armbruster wrote: >> >> Checking the value of qmp_dispatch() is repetitive. Factor out >> helpers do_qmp_dispatch() and do_qmp_dispatch_error(). Without this, >> the next commit would make things even more repetitive.

Re: [PATCH v3 30/34] qapi: Implement deprecated-output=hide for QMP event data

2020-03-16 Thread Markus Armbruster
Markus Armbruster writes: > This policy suppresses deprecated bits in output, and thus permits > "testing the future". Implement it for QMP event data: suppress > deprecated members. > > No QMP event data is deprecated right now. > > Signed-off-by: Markus Armbruster Needs a fixup: diff --git

[PATCH 5/5] target/ppc: Implement simple monitor mce injection

2020-03-16 Thread Nicholas Piggin
This enables the mce monitor command for ppc, and adds a spapr facility to inject machine check exception to a CPU by setting low level registers. (qemu) mce 0 0x20 0x80 0xdeadbeef 1 Disabling lock debugging due to kernel taint MCE: CPU0: machine check (Severe) Host SLB Multihit

[PATCH 4/5] ppc/spapr: Don't kill the guest if a recovered FWNMI machine check delivery fails

2020-03-16 Thread Nicholas Piggin
Try to be tolerant of errors if the machine check had been recovered by the host. Signed-off-by: Nicholas Piggin --- hw/ppc/spapr_events.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/hw/ppc/spapr_events.c b/hw/ppc/spapr_events.c index

[PATCH 3/5] ppc/spapr: Add FWNMI machine check delivery warnings

2020-03-16 Thread Nicholas Piggin
Add some messages which explain problems and guest misbehaviour that may be difficult to diagnose in rare cases of machine checks. Signed-off-by: Nicholas Piggin --- hw/ppc/spapr_events.c | 4 hw/ppc/spapr_rtas.c | 4 2 files changed, 8 insertions(+) diff --git

[PATCH 2/5] ppc/spapr: Improve FWNMI machine check delivery corner case comments

2020-03-16 Thread Nicholas Piggin
Some of the conditions are not as clearly documented as they could be. Also the non-FWNMI case does not need a large comment. Signed-off-by: Nicholas Piggin --- hw/ppc/spapr_events.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/hw/ppc/spapr_events.c

[PATCH 1/5] ppc/spapr: KVM FWNMI should not be enabled until guest requests it

2020-03-16 Thread Nicholas Piggin
The KVM FWNMI capability should be enabled with the "ibm,nmi-register" rtas call. Although MCEs from KVM will be delivered as architected interrupts to the guest before "ibm,nmi-register" is called, KVM has different behaviour depending on whether the guest has enabled FWNMI (it attempts to do

[PATCH 0/5] FWNMI follow up patches

2020-03-16 Thread Nicholas Piggin
Here's a bunch of other patches remaining after the last round, for some less critical issues. Take these before or after the 5.0 freeze as you like. Patch 1 is the main thing I think should be considered as a fix: without it, non-FWNMI guests under KVM see behaviour change with the FWNMI

Re: [PATCH 0/5] QEMU Gating CI

2020-03-16 Thread Cleber Rosa
- Original Message - > From: "Peter Maydell" > To: "Cleber Rosa" > Cc: "Fam Zheng" , "Thomas Huth" , "Beraldo > Leal" , "Erik > Skultety" , "Alex Bennée" , > "Wainer Moschetta" , > "QEMU Developers" , "Wainer dos Santos Moschetta" > , "Willian Rampazzo" > , "Philippe Mathieu-Daudé"

[PULL 10/10] block/qcow2-bitmap: use bdrv_dirty_bitmap_next_dirty

2020-03-16 Thread John Snow
From: Vladimir Sementsov-Ogievskiy store_bitmap_data() loop does bdrv_set_dirty_iter() on each iteration, which means that we actually don't need iterator itself and we can use simpler bitmap API. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz Reviewed-by: John Snow

[PULL 06/10] block/dirty-bitmap: add _next_dirty API

2020-03-16 Thread John Snow
From: Vladimir Sementsov-Ogievskiy We have bdrv_dirty_bitmap_next_zero, let's add corresponding bdrv_dirty_bitmap_next_dirty, which is more comfortable to use than bitmap iterators in some cases. For test modify test_hbitmap_next_zero_check_range to check both next_zero and next_dirty and add

[PULL 04/10] hbitmap: drop meta bitmaps as they are unused

2020-03-16 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz Reviewed-by: John Snow Message-id: 20200205112041.6003-5-vsement...@virtuozzo.com Signed-off-by: John Snow --- include/qemu/hbitmap.h | 21 tests/test-hbitmap.c | 115

[PULL 09/10] nbd/server: use bdrv_dirty_bitmap_next_dirty_area

2020-03-16 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Use bdrv_dirty_bitmap_next_dirty_area for bitmap_to_extents. Since bdrv_dirty_bitmap_next_dirty_area is very accurate in its interface, we'll never exceed requested region with last chunk. So, we don't need dont_fragment, and bitmap_to_extents() interface

[PULL 07/10] block/dirty-bitmap: improve _next_dirty_area API

2020-03-16 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Firstly, _next_dirty_area is for scenarios when we may contiguously search for next dirty area inside some limited region, so it is more comfortable to specify "end" which should not be recalculated on each iteration. Secondly, let's add a possibility to limit

[PULL 03/10] hbitmap: unpublish hbitmap_iter_skip_words

2020-03-16 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Function is internal and even commented as internal. Drop its definition from .h file. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz Reviewed-by: John Snow Message-id: 20200205112041.6003-4-vsement...@virtuozzo.com Signed-off-by: John

[PULL 01/10] hbitmap: assert that we don't create bitmap larger than INT64_MAX

2020-03-16 Thread John Snow
From: Vladimir Sementsov-Ogievskiy We have APIs which returns signed int64_t, to be able to return error. Therefore we can't handle bitmaps with absolute size larger than (INT64_MAX+1). Still, keep maximum to be INT64_MAX which is a bit safer. Note, that bitmaps are used to represent disk

[PULL 05/10] block/dirty-bitmap: switch _next_dirty_area and _next_zero to int64_t

2020-03-16 Thread John Snow
From: Vladimir Sementsov-Ogievskiy We are going to introduce bdrv_dirty_bitmap_next_dirty so that same variable may be used to store its return value and to be its parameter, so it would int64_t. Similarly, we are going to refactor hbitmap_next_dirty_area to use hbitmap_next_dirty together with

[PULL 08/10] nbd/server: introduce NBDExtentArray

2020-03-16 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Introduce NBDExtentArray class, to handle extents list creation in more controlled way and with fewer OUT parameters in functions. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-id: 20200205112041.6003-9-vsement...@virtuozzo.com

[PULL 02/10] hbitmap: move hbitmap_iter_next_word to hbitmap.c

2020-03-16 Thread John Snow
From: Vladimir Sementsov-Ogievskiy The function is definitely internal (it's not used by third party and it has complicated interface). Move it to .c file. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz Reviewed-by: John Snow Message-id:

[PULL 00/10] Bitmaps patches

2020-03-16 Thread John Snow
The following changes since commit 6e8a73e911f066527e775e04b98f31ebd19db600: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2020-03-11 14:41:27 +) are available in the Git repository at: https://github.com/jnsnow/qemu.git tags/bitmaps-pull-request

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

2020-03-16 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

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

2020-03-16 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 v3 1/3] qmp.py: change event_wait to use a dict

2020-03-16 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 v3 0/3] iotests: add JobRunner framework

2020-03-16 Thread John Snow
Requires: 20200317004105.27059-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

Re: [PATCH 0/8] Misc hw/ide legacy clean up

2020-03-16 Thread John Snow
On 3/16/20 9:41 AM, BALATON Zoltan wrote: > On Mon, 16 Mar 2020, BALATON Zoltan wrote: >> On Mon, 16 Mar 2020, Markus Armbruster wrote: >>> BALATON Zoltan writes: These are some clean ups to remove more legacy init functions and lessen dependence on include/hw/ide.h with some

Re: [PATCH 0/7] via-ide: fixes and improvements

2020-03-16 Thread John Snow
On 3/14/20 5:15 AM, Mark Cave-Ayland wrote: > On 13/03/2020 17:57, John Snow wrote: > >> On 3/13/20 4:24 AM, Mark Cave-Ayland wrote: >>> Following on from the earlier thread "Implement "non 100% native mode" >>> in via-ide", here is an updated patchset based upon the test cases >>> sent to me

[PULL 5/6] gitlab-ci.yml: Add jobs to build OpenSBI firmware binaries

2020-03-16 Thread Palmer Dabbelt
From: Bin Meng Add two GitLab jobs to build the OpenSBI firmware binaries. The first job builds a Docker image with the packages requisite to build OpenSBI, and stores this image in the GitLab registry. The second job pulls the image from the registry and builds the OpenSBI firmware binaries.

[PULL 3/6] roms: opensbi: Add 32-bit firmware image for sifive_u machine

2020-03-16 Thread Palmer Dabbelt
From: Bin Meng Although the real world SiFive HiFive Unleashed board is a 64-bit hardware configuration, with QEMU it is possible to test 32-bit configuration with the same hardware features. This updates the roms Makefile to add the build rules for creating the 32-bit OpenSBI firmware image

[PULL 2/6] roms: opensbi: Upgrade from v0.5 to v0.6

2020-03-16 Thread Palmer Dabbelt
From: Bin Meng Upgrade OpenSBI from v0.5 to v0.6 and the pre-built bios images. The v0.6 release includes the following commits: dd8ef28 firmware: Fix compile error for FW_PAYLOAD with latest GCC binutils 98f4a20 firmware: Introduce relocation lottery f728a0b include: Sync-up encoding with

[PULL 4/6] riscv: sifive_u: Update BIOS_FILENAME for 32-bit

2020-03-16 Thread Palmer Dabbelt
From: Bin Meng Update BIOS_FILENAME to consider 32-bit bios image file name. Tested booting Linux v5.5 32-bit image (built from rv32_defconfig plus CONFIG_SOC_SIFIVE) with the default 32-bit bios image. Signed-off-by: Bin Meng Reviewed-by: Alistair Francis Signed-off-by: Palmer Dabbelt ---

[PULL 6/6] target/riscv: Fix VS mode interrupts forwarding.

2020-03-16 Thread Palmer Dabbelt
From: Rajnesh Kanwal Currently riscv_cpu_local_irq_pending is used to find out pending interrupt and VS mode interrupts are being shifted to represent S mode interrupts in this function. So when the cause returned by this function is passed to riscv_cpu_do_interrupt to actually forward the

[PULL 1/6] target/riscv: Correctly implement TSR trap

2020-03-16 Thread Palmer Dabbelt
From: Alistair Francis As reported in: https://bugs.launchpad.net/qemu/+bug/1851939 we weren't correctly handling illegal instructions based on the value of MSTATUS_TSR and the current privledge level. This patch fixes the issue raised in the bug by raising an illegal instruction if TSR is set

[PULL] RISC-V Patches for the 5.0 Soft Freeze, Part 5

2020-03-16 Thread Palmer Dabbelt
The following changes since commit a98135f727595382e200d04c2996e868b7925a01: Merge remote-tracking branch 'remotes/kraxel/tags/vga-20200316-pull-request' into staging (2020-03-16 14:55:59 +) are available in the Git repository at: g...@github.com:palmer-dabbelt/qemu.git tags/riscv

Re: [PATCH v2 5/8] ppc/spapr: Allow FWNMI on TCG

2020-03-16 Thread David? Gibson
On Tue, Mar 17, 2020 at 09:26:15AM +1000, Nicholas Piggin wrote: > Greg Kurz's on March 17, 2020 4:01 am: > > On Tue, 17 Mar 2020 00:26:10 +1000 > > Nicholas Piggin wrote: > > > >> There should no longer be a reason to prevent TCG providing FWNMI. > >> System Reset interrupts are generated to

[Bug 1824344] Re: x86: retf or iret pagefault sets wrong error code

2020-03-16 Thread Robert Henry
This appears to be similar to https://bugs.launchpad.net/qemu/+bug/1866892 (and much simpler) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1824344 Title: x86: retf or iret pagefault sets wrong

[Bug 1866892] Re: guest OS catches a page fault bug when running dotnet

2020-03-16 Thread Robert Henry
A simpler case seems to produce the same error. See https://bugs.launchpad.net/qemu/+bug/1824344 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1866892 Title: guest OS catches a page fault bug

Re: [PATCH V2] vhost: correctly turn on VIRTIO_F_IOMMU_PLATFORM

2020-03-16 Thread Jason Wang
On 2020/3/17 上午2:14, Peter Xu wrote: On Mon, Mar 16, 2020 at 01:19:54PM -0400, Michael S. Tsirkin wrote: On Fri, Mar 13, 2020 at 12:31:22PM -0400, Peter Xu wrote: On Fri, Mar 13, 2020 at 11:29:59AM -0400, Michael S. Tsirkin wrote: On Fri, Mar 13, 2020 at 01:44:46PM +0100, Halil Pasic wrote:

Re: [PULL 00/38] Linux user for 5.0 patches

2020-03-16 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200316161550.336150-1-laur...@vivier.eu/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL 00/38] Linux user for 5.0 patches Message-id: 20200316161550.336150-1-laur...@vivier.eu Type: series

Re: [PULL 00/38] Linux user for 5.0 patches

2020-03-16 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200316161550.336150-1-laur...@vivier.eu/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL 00/38] Linux user for 5.0 patches Message-id: 20200316161550.336150-1-laur...@vivier.eu Type: series

Re: [PULL SUBSYSTEM qemu-pseries] pseries: Update SLOF firmware image

2020-03-16 Thread David Gibson
On Tue, Mar 17, 2020 at 10:33:06AM +1100, Alexey Kardashevskiy wrote: > The following changes since commit 33dead675695e596b7f32c72e6f6a20390e86d8a: > > pseries: Update SLOF firmware image (2020-03-13 17:50:44 +1100) > > are available in the Git repository at: > >

Re: [PULL 00/38] Linux user for 5.0 patches

2020-03-16 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200316161550.336150-1-laur...@vivier.eu/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL 00/38] Linux user for 5.0 patches Message-id: 20200316161550.336150-1-laur...@vivier.eu Type: series

Re: [PATCH v2 6/8] target/ppc: allow ppc_cpu_do_system_reset to take an alternate vector

2020-03-16 Thread David Gibson
On Tue, Mar 17, 2020 at 09:28:24AM +1000, Nicholas Piggin wrote: > Cédric Le Goater's on March 17, 2020 4:15 am: > > On 3/16/20 3:26 PM, Nicholas Piggin wrote: > >> Provide for an alternate delivery location, -1 defaults to the > >> architected address. > > > > I don't know what is the best

[PATCH v8 07/11] iotests: limit line length to 79 chars

2020-03-16 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 | 64 +++ tests/qemu-iotests/pylintrc | 6 +++- 2 files changed, 47 insertions(+), 23

[PATCH v8 06/11] iotests: drop Python 3.4 compatibility code

2020-03-16 Thread John Snow
We no longer need to accommodate 3.4, drop this code. (Also, the line is over 79 characters, so drop it.) Touch up the docstring a little bit while we're here. Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff

[PATCH v8 08/11] iotests: add script_initialize

2020-03-16 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. Signed-off-by: John Snow Reviewed-by: Max Reitz --- tests/qemu-iotests/149| 3 +-

[PATCH v8 10/11] iotests: Mark verify functions as private

2020-03-16 Thread John Snow
Mark the verify functions as "private" with a leading underscore, to discourage their use. (Also, make pending patches not yet using the new entry points fail in a very obvious way.) Signed-off-by: John Snow Reviewed-by: Max Reitz --- tests/qemu-iotests/iotests.py | 20 ++-- 1

[PATCH v8 05/11] iotests: add pylintrc file

2020-03-16 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 v8 11/11] iotests: use python logging for iotests.log()

2020-03-16 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

[PATCH v8 04/11] iotests: replace mutable list default args

2020-03-16 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 Reviewed-by: Philippe Mathieu-Daudé --- tests/qemu-iotests/iotests.py | 24

[PATCH v8 03/11] iotests: ignore import warnings from pylint

2020-03-16 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 v8 00/11] iotests: use python logging

2020-03-16 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

[PATCH v8 02/11] iotests: don't use 'format' for drive_add

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

[PATCH v8 09/11] iotest 258: use script_main

2020-03-16 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 v8 01/11] iotests: do a light delinting

2020-03-16 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. Signed-off-by: John Snow

Re: [PULL 00/61] Misc patches for soft freeze

2020-03-16 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1584394048-44994-1-git-send-email-pbonz...@redhat.com/ Hi, This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN ===

Re: [PULL 00/61] Misc patches for soft freeze

2020-03-16 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1584394048-44994-1-git-send-email-pbonz...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL 00/61] Misc patches for soft freeze Message-id:

Re: [PATCH v2] MAINTAINERS: Mark the LatticeMico32 target as orphan

2020-03-16 Thread Richard Henderson
On 3/16/20 7:28 AM, Philippe Mathieu-Daudé wrote: > Michael Walle expressed his desire to orphan the lm32 target [*]: > > I guess it is time to pull the plug. Mainly, because I have > no time for this anymore. I've always worked on this on my > spare time and life changed. And secondly, I

Re: [PULL 00/38] Linux user for 5.0 patches

2020-03-16 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200316161550.336150-1-laur...@vivier.eu/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL 00/38] Linux user for 5.0 patches Message-id: 20200316161550.336150-1-laur...@vivier.eu Type: series

Re: [PATCH v2 8/8] ppc/spapr: Ignore common "ibm,nmi-interlock" Linux bug

2020-03-16 Thread David Gibson
On Tue, Mar 17, 2020 at 12:26:13AM +1000, Nicholas Piggin wrote: > Linux kernels call "ibm,nmi-interlock" in their system reset handlers > contrary to PAPR. Returning an error because the CPU does not hold the > interlock here causes Linux to print warning messages. PowerVM returns > success in

Re: [PATCH v2 6/8] target/ppc: allow ppc_cpu_do_system_reset to take an alternate vector

2020-03-16 Thread David Gibson
On Mon, Mar 16, 2020 at 07:15:14PM +0100, Cédric Le Goater wrote: > On 3/16/20 3:26 PM, Nicholas Piggin wrote: > > Provide for an alternate delivery location, -1 defaults to the > > architected address. > > I don't know what is the best approach, to override the vector addr > computed by

[PULL SUBSYSTEM qemu-pseries] pseries: Update SLOF firmware image

2020-03-16 Thread Alexey Kardashevskiy
The following changes since commit 33dead675695e596b7f32c72e6f6a20390e86d8a: pseries: Update SLOF firmware image (2020-03-13 17:50:44 +1100) are available in the Git repository at: g...@github.com:aik/qemu.git tags/qemu-slof-20200317 for you to fetch changes up to

Re: [PATCH v2 4/8] ppc/spapr: Fix FWNMI machine check interrupt delivery

2020-03-16 Thread David Gibson
On Tue, Mar 17, 2020 at 09:19:57AM +1000, Nicholas Piggin wrote: > Cédric Le Goater's on March 17, 2020 3:59 am: > > On 3/16/20 3:26 PM, Nicholas Piggin wrote: > >> FWNMI machine check delivery misses a few things that will make it fail > >> with TCG at least (which we would like to allow in

Re: [PATCH v2 7/8] ppc/spapr: Implement FWNMI System Reset delivery

2020-03-16 Thread David Gibson
On Tue, Mar 17, 2020 at 12:26:12AM +1000, Nicholas Piggin wrote: > PAPR requires that if "ibm,nmi-register" succeeds, then the hypervisor > delivers all system reset and machine check exceptions to the registered > addresses. > > System Resets are delivered with registers set to the architected

Re: [PATCH v2 7/8] ppc/spapr: Implement FWNMI System Reset delivery

2020-03-16 Thread David Gibson
On Mon, Mar 16, 2020 at 06:52:54PM +0100, Greg Kurz wrote: > On Mon, 16 Mar 2020 23:05:00 +0530 > Mahesh J Salgaonkar wrote: > > > On 2020-03-17 00:26:12 Tue, Nicholas Piggin wrote: > > > PAPR requires that if "ibm,nmi-register" succeeds, then the hypervisor > > > delivers all system reset and

Re: [PATCH v2 6/8] target/ppc: allow ppc_cpu_do_system_reset to take an alternate vector

2020-03-16 Thread Nicholas Piggin
Cédric Le Goater's on March 17, 2020 4:15 am: > On 3/16/20 3:26 PM, Nicholas Piggin wrote: >> Provide for an alternate delivery location, -1 defaults to the >> architected address. > > I don't know what is the best approach, to override the vector addr > computed by powerpc_excp() or use a

Re: [PATCH v2 5/8] ppc/spapr: Allow FWNMI on TCG

2020-03-16 Thread Nicholas Piggin
Greg Kurz's on March 17, 2020 4:01 am: > On Tue, 17 Mar 2020 00:26:10 +1000 > Nicholas Piggin wrote: > >> There should no longer be a reason to prevent TCG providing FWNMI. >> System Reset interrupts are generated to the guest with nmi monitor >> command and H_SIGNAL_SYS_RESET. Machine Checks

Re: [PATCH v2 4/8] ppc/spapr: Fix FWNMI machine check interrupt delivery

2020-03-16 Thread Nicholas Piggin
Cédric Le Goater's on March 17, 2020 3:59 am: > On 3/16/20 3:26 PM, Nicholas Piggin wrote: >> FWNMI machine check delivery misses a few things that will make it fail >> with TCG at least (which we would like to allow in future to improve >> testing). > > I don't understand which issues are

Re: [PATCH v3 00/19] Support disabling TCG on ARM (part 2)

2020-03-16 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200316160634.3386-1-phi...@redhat.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 BEGIN ===

Re: [PATCH v2 3/8] ppc/spapr: Add FWNMI System Reset state

2020-03-16 Thread David Gibson
On Tue, Mar 17, 2020 at 12:26:08AM +1000, Nicholas Piggin wrote: > The FWNMI option must deliver system reset interrupts to their > registered address, and there are a few constraints on the handler > addresses specified in PAPR. Add the system reset address state and > checks. > > Signed-off-by:

Re: [PATCH v2 2/8] ppc/spapr: Change FWNMI names

2020-03-16 Thread David Gibson
On Tue, Mar 17, 2020 at 12:26:07AM +1000, Nicholas Piggin wrote: > The option is called "FWNMI", and it involves more than just machine > checks, also machine checks can be delivered without the FWNMI option, > so re-name various things to reflect that. > > Signed-off-by: Nicholas Piggin

Re: [PATCH qemu] spapr/rtas: Reserve space for RTAS blob and log

2020-03-16 Thread David Gibson
On Mon, Mar 16, 2020 at 05:10:56PM +0100, Greg Kurz wrote: > On Mon, 16 Mar 2020 12:18:41 +1100 > Alexey Kardashevskiy wrote: > > > At the moment SLOF reserves space for RTAS and instantiates the RTAS blob > > which is 20 bytes binary blob calling an hypercall. The rest of the RTAS > > area is a

Re: [PATCH v2 1/8] ppc/spapr: Fix FWNMI machine check failure handling

2020-03-16 Thread David Gibson
On Tue, Mar 17, 2020 at 12:26:06AM +1000, Nicholas Piggin wrote: > ppc_cpu_do_system_reset delivers a system rreset interrupt to the guest, > which is certainly not what is intended here. Panic the guest like other > failure cases here do. > > Signed-off-by: Nicholas Piggin Applied to

Re: [PATCH v4 6/6] virtio-net: add migration support for RSS and hash report

2020-03-16 Thread Michael S. Tsirkin
On Mon, Mar 16, 2020 at 12:09:33PM +0200, Yuri Benditovich wrote: > Save and restore RSS/hash report configuration. > > Signed-off-by: Yuri Benditovich > --- > hw/net/virtio-net.c | 26 ++ > 1 file changed, 26 insertions(+) > > diff --git a/hw/net/virtio-net.c

[PULL 06/61] util: add util function buffer_zero_avx512()

2020-03-16 Thread Paolo Bonzini
From: Robert Hoo And intialize buffer_is_zero() with it, when Intel AVX512F is available on host. This function utilizes Intel AVX512 fundamental instructions which is faster than its implementation with AVX2 (in my unit test, with 4K buffer, on CascadeLake SP, ~36% faster, buffer_zero_avx512()

Re: [PULL 06/61] util: add util function buffer_zero_avx512()

2020-03-16 Thread Paolo Bonzini
This breaks if AVX2 and AVX512 are both disabled but SSE2 isn't, because it calls buffer_is_zero_sse2 even with length < 64. Fix: diff --git a/util/bufferiszero.c b/util/bufferiszero.c index b6eab0c..6639035 100644 --- a/util/bufferiszero.c +++ b/util/bufferiszero.c @@ -247,23 +247,20 @@

Re: [PATCH v2 2/2] mmap-alloc: Include osdep.h before checking CONFIG_LINUX

2020-03-16 Thread Michael S. Tsirkin
On Mon, Mar 16, 2020 at 07:20:02PM +, Peter Maydell wrote: > On Mon, 16 Mar 2020 at 18:40, Eduardo Habkost wrote: > > > > On Mon, Mar 16, 2020 at 06:08:54PM +, Peter Maydell wrote: > > > The usual approach is that if you don't have the Linux-specific > > > feature available you quietly

[PATCH v2] checkpatch: enforce process for expected files

2020-03-16 Thread Michael S. Tsirkin
If the process documented in tests/qtest/bios-tables-test.c is followed, then same patch never touches both expected files and code. Teach checkpatch to enforce this rule. Tested-by: Igor Mammedov Reviewed-by: Stefan Hajnoczi Signed-off-by: Michael S. Tsirkin --- scripts/checkpatch.pl | 25

[PULL 55/61] hw/dma: Let devices own the MemoryRegion they create

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Avoid orphan memory regions being added in the /unattached QOM container. This commit was produced with the Coccinelle script scripts/coccinelle/memory-region-housekeeping.cocci. Signed-off-by: Philippe Mathieu-Daudé --- hw/dma/i8257.c | 2 +- hw/dma/rc4030.c |

[PULL v2 00/61] Misc patches for soft freeze

2020-03-16 Thread Paolo Bonzini
The following changes since commit a98135f727595382e200d04c2996e868b7925a01: Merge remote-tracking branch 'remotes/kraxel/tags/vga-20200316-pull-request' into staging (2020-03-16 14:55:59 +) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream

[PULL 54/61] hw/display: Let devices own the MemoryRegion they create

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Avoid orphan memory regions being added in the /unattached QOM container. This commit was produced with the Coccinelle script scripts/coccinelle/memory-region-housekeeping.cocci. Signed-off-by: Philippe Mathieu-Daudé --- hw/display/g364fb.c | 3 ++-

[PULL 61/61] hw/arm: Let devices own the MemoryRegion they create

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Avoid orphan memory regions being added in the /unattached QOM container. This commit was produced with the Coccinelle script scripts/coccinelle/memory-region-housekeeping.cocci. Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/exynos4210.c| 12 ++--

[PULL 57/61] hw/char: Let devices own the MemoryRegion they create

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Avoid orphan memory regions being added in the /unattached QOM container. This commit was produced with the Coccinelle script scripts/coccinelle/memory-region-housekeeping.cocci. Signed-off-by: Philippe Mathieu-Daudé --- hw/char/serial.c | 7 --- 1 file

[PULL 47/61] hw/riscv: Use memory_region_init_rom() with read-only regions

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé This commit was produced with the Coccinelle script scripts/coccinelle/memory-region-housekeeping.cocci. Signed-off-by: Philippe Mathieu-Daudé --- hw/riscv/sifive_e.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/riscv/sifive_e.c

[PULL 58/61] hw/arm/stm32: Use memory_region_init_rom() with read-only regions

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé The scripts/coccinelle/memory-region-housekeeping.cocci reported: * TODO [[view:./hw/arm/stm32f205_soc.c::face=ovl-face1::linb=96::colb=4::cole=26][potential use of memory_region_init_rom*() in ./hw/arm/stm32f205_soc.c::96]] * TODO

[PULL 46/61] hw/ppc: Use memory_region_init_rom() with read-only regions

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé This commit was produced with the Coccinelle script scripts/coccinelle/memory-region-housekeeping.cocci. Acked-by: David Gibson Signed-off-by: Philippe Mathieu-Daudé --- hw/ppc/mac_newworld.c | 3 +-- hw/ppc/mac_oldworld.c | 3 +-- 2 files changed, 2

Re: [PULL 00/38] Linux user for 5.0 patches

2020-03-16 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200316161550.336150-1-laur...@vivier.eu/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PULL 00/38] Linux user for 5.0 patches Message-id: 20200316161550.336150-1-laur...@vivier.eu Type: series

[PULL 41/61] hw/arm: Use memory_region_init_rom() with read-only regions

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé This commit was produced with the Coccinelle script scripts/coccinelle/memory-region-housekeeping.cocci. Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/exynos4210.c | 3 +-- hw/arm/mainstone.c | 3 +-- hw/arm/omap_sx1.c | 6 ++ hw/arm/palm.c | 3 +--

[PULL 51/61] scripts/cocci: Patch to remove unnecessary memory_region_set_readonly()

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Add a semantic patch to remove memory_region_set_readonly() calls on ROM memory regions. Signed-off-by: Philippe Mathieu-Daudé --- scripts/coccinelle/memory-region-housekeeping.cocci | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PULL 60/61] hw/arm: Remove unnecessary memory_region_set_readonly() on ROM alias

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé This commit was produced with the Coccinelle script scripts/coccinelle/memory-region-housekeeping.cocci. Signed-off-by: Philippe Mathieu-Daudé --- hw/arm/exynos4210.c| 1 - hw/arm/stm32f205_soc.c | 1 - hw/arm/stm32f405_soc.c | 1 - 3 files changed, 3

Re: [PATCH] linux-user: Update TASK_UNMAPPED_BASE for aarch64

2020-03-16 Thread Lirong Yuan
Thanks Laurent for the prompt responses! Yes that is exactly where the value is taken from. For anyone interested in detailed information of the change, here is the previous discussion thread: http://patchwork.ozlabs.org/patch/1242370/ Regards, Lirong On Sat, Mar 14, 2020 at 10:34 AM Laurent

[PULL 40/61] scripts/cocci: Patch to replace memory_region_init_{ram, readonly -> rom}

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Add a semantic patch to replace memory_region_init_ram(readonly) by memory_region_init_rom(). Signed-off-by: Philippe Mathieu-Daudé --- scripts/coccinelle/memory-region-housekeeping.cocci | 18 ++ 1 file changed, 18 insertions(+) diff --git

[PULL 50/61] scripts/cocci: Patch to detect potential use of memory_region_init_rom

2020-03-16 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Add a semantic patch to detect potential replacement of memory_region_init_ram(readonly) by memory_region_init_rom(). Signed-off-by: Philippe Mathieu-Daudé --- scripts/coccinelle/memory-region-housekeeping.cocci | 19 +++ 1 file changed, 19

  1   2   3   4   5   6   7   >