Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform

2020-05-04 Thread Bin Meng
Hi Anup, On Sun, May 3, 2020 at 12:38 PM Anup Patel wrote: > > On Fri, May 1, 2020 at 9:26 PM Bin Meng wrote: > > > > From: Bin Meng > > > > The RISC-V generic platform is a flattened device tree (FDT) based > > platform where all platform specific functionality is provided based > > on FDT pas

[PATCH 0/4] hw/arm/nrf51: Extend tracing

2020-05-04 Thread Philippe Mathieu-Daudé
Few patches while playing with the Zephyr Project. - better display of unimplemented peripheral accesses, - better display of timers use. Philippe Mathieu-Daudé (4): hw/arm/nrf51: Add NRF51_PERIPHERAL_SIZE definition hw/arm/nrf51_soc: Mark some peripherals as unimplemented hw/timer/nrf51_ti

[PATCH 2/4] hw/arm/nrf51_soc: Mark some peripherals as unimplemented

2020-05-04 Thread Philippe Mathieu-Daudé
Map some peripherals used by Zephyr Project: https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.2.0/dts/arm/nordic/nrf51822.dtsi Signed-off-by: Philippe Mathieu-Daudé --- include/hw/arm/nrf51.h | 4 hw/arm/nrf51_soc.c | 11 +++ 2 files changed, 15 insertions(+) diff

[PATCH 1/4] hw/arm/nrf51: Add NRF51_PERIPHERAL_SIZE definition

2020-05-04 Thread Philippe Mathieu-Daudé
On the NRF51 series, all peripherals have a fixed I/O size of 4KiB. Define NRF51_PERIPHERAL_SIZE and use it. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/arm/nrf51.h| 3 +-- include/hw/i2c/microbit_i2c.h | 2 +- hw/arm/nrf51_soc.c| 4 ++-- hw/i2c/microbit_i2c.c

[PATCH 4/4] hw/timer/nrf51_timer: Add trace event of counter value update

2020-05-04 Thread Philippe Mathieu-Daudé
Add trace event to display timer's counter value updates. Signed-off-by: Philippe Mathieu-Daudé --- hw/timer/nrf51_timer.c | 1 + hw/timer/trace-events | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/timer/nrf51_timer.c b/hw/timer/nrf51_timer.c index 38cea0542e..42be79c736 100644 --- a

[PATCH 3/4] hw/timer/nrf51_timer: Display timer ID in trace events

2020-05-04 Thread Philippe Mathieu-Daudé
The NRF51 series SoC have 3 timer peripherals, each having 4 counters. To help differentiate which peripheral is accessed, display the timer ID in the trace events. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/timer/nrf51_timer.h | 1 + hw/arm/nrf51_soc.c | 5 + hw/time

[Bug 1805256] Re: qemu-img hangs on rcu_call_ready_event logic in Aarch64 when converting images

2020-05-04 Thread Ike Panhc
PPA created with temporarily workaround in comment #34. https://launchpad.net/~ikepanhc/+archive/ubuntu/lp1805256 This PPA can solve temporarily but is not acceptable for offical release. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QE

Re: [PATCH 5/8] pc-bios: s390x: Move panic() into header and add infinite loop

2020-05-04 Thread David Hildenbrand
On 04.05.20 08:46, Janosch Frank wrote: > On 4/30/20 5:42 PM, David Hildenbrand wrote: >> On 24.03.20 16:08, Janosch Frank wrote: >>> panic() was defined for the ccw and net bios, i.e. twice, so it's >>> cleaner to rather put it into the header. >>> >>> Also let's add an infinite loop into the asse

Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform

2020-05-04 Thread Anup Patel
On Mon, May 4, 2020 at 12:46 PM Bin Meng wrote: > > Hi Anup, > > On Sun, May 3, 2020 at 12:38 PM Anup Patel wrote: > > > > On Fri, May 1, 2020 at 9:26 PM Bin Meng wrote: > > > > > > From: Bin Meng > > > > > > The RISC-V generic platform is a flattened device tree (FDT) based > > > platform wher

Re: [PATCH v22 3/4] qcow2: add zstd cluster compression

2020-05-04 Thread Max Reitz
On 30.04.20 15:56, Denis Plotnikov wrote: > > > On 30.04.2020 14:47, Max Reitz wrote: >> On 30.04.20 11:48, Denis Plotnikov wrote: >>> >>> On 30.04.2020 11:26, Max Reitz wrote: On 29.04.20 15:02, Vladimir Sementsov-Ogievskiy wrote: > 29.04.2020 15:17, Max Reitz wrote: >> On 29.04.20

Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform

2020-05-04 Thread Bin Meng
Hi Anup, On Mon, May 4, 2020 at 3:52 PM Anup Patel wrote: > > On Mon, May 4, 2020 at 12:46 PM Bin Meng wrote: > > > > Hi Anup, > > > > On Sun, May 3, 2020 at 12:38 PM Anup Patel wrote: > > > > > > On Fri, May 1, 2020 at 9:26 PM Bin Meng wrote: > > > > > > > > From: Bin Meng > > > > > > > > Th

Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform

2020-05-04 Thread Bin Meng
On Mon, May 4, 2020 at 4:00 PM Bin Meng wrote: > > Hi Anup, > > On Mon, May 4, 2020 at 3:52 PM Anup Patel wrote: > > > > On Mon, May 4, 2020 at 12:46 PM Bin Meng wrote: > > > > > > Hi Anup, > > > > > > On Sun, May 3, 2020 at 12:38 PM Anup Patel wrote: > > > > > > > > On Fri, May 1, 2020 at 9:26

Re: [PULL 0/6] virtiofs queue

2020-05-04 Thread Dr. David Alan Gilbert
* Peter Maydell (peter.mayd...@linaro.org) wrote: > On Fri, 1 May 2020 at 20:16, Dr. David Alan Gilbert (git) > wrote: > > > > From: "Dr. David Alan Gilbert" > > > > The following changes since commit 1c47613588ccff44422d4bdeea0dc36a0a308ec7: > > > > Merge remote-tracking branch 'remotes/kevin/

[PATCH 2/3] hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h'

2020-05-04 Thread Philippe Mathieu-Daudé
Extract timer definitions to 'hw/timer/tmu012.h'. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/sh4/sh.h | 9 - include/hw/timer/tmu012.h | 23 +++ hw/sh4/sh7750.c | 1 + hw/timer/sh_timer.c | 2 ++ 4 files changed, 26 insertions(+), 9

[PATCH 0/3] hw/sh4: Trivial cleanups

2020-05-04 Thread Philippe Mathieu-Daudé
Some SH4 patches worth salvaging while doing housekeeping. Philippe Mathieu-Daudé (3): hw/sh4: Use MemoryRegion typedef hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h' hw/timer/sh_timer: Remove unused 'qemu/timer.h' include include/hw/sh4/sh.h | 12 +--- include/hw/t

[PATCH 1/3] hw/sh4: Use MemoryRegion typedef

2020-05-04 Thread Philippe Mathieu-Daudé
Use the MemoryRegion type defined in "qemu/typedefs.h", to keep the repository style consistent. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/sh4/sh.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/hw/sh4/sh.h b/include/hw/sh4/sh.h index 767a2df7e2..fe77

Re: [PATCH 1/5] roms/opensbi: Update to support building bios images for generic platform

2020-05-04 Thread Anup Patel
On Mon, May 4, 2020 at 1:35 PM Bin Meng wrote: > > On Mon, May 4, 2020 at 4:00 PM Bin Meng wrote: > > > > Hi Anup, > > > > On Mon, May 4, 2020 at 3:52 PM Anup Patel wrote: > > > > > > On Mon, May 4, 2020 at 12:46 PM Bin Meng wrote: > > > > > > > > Hi Anup, > > > > > > > > On Sun, May 3, 2020 at

[PATCH 3/3] hw/timer/sh_timer: Remove unused 'qemu/timer.h' include

2020-05-04 Thread Philippe Mathieu-Daudé
Remove unused "qemu/timer.h" include. Signed-off-by: Philippe Mathieu-Daudé --- hw/timer/sh_timer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/timer/sh_timer.c b/hw/timer/sh_timer.c index b9cbacf5d0..bb0e1c8ee5 100644 --- a/hw/timer/sh_timer.c +++ b/hw/timer/sh_timer.c @@ -13,7 +13,6

Re: [PATCH v2] aspeed: Add boot stub for smp booting

2020-05-04 Thread Joel Stanley
On Thu, 16 Apr 2020 at 16:48, Peter Maydell wrote: > > On Thu, 9 Apr 2020 at 07:31, Joel Stanley wrote: > > > > This is a boot stub that is similar to the code u-boot runs, allowing > > the kernel to boot the secondary CPU. > > > +static void aspeed_write_smpboot(ARMCPU *cpu, > > +

[PATCH v3] aspeed: Add boot stub for smp booting

2020-05-04 Thread Joel Stanley
This is a boot stub that is similar to the code u-boot runs, allowing the kernel to boot the secondary CPU. u-boot works as follows: 1. Initialises the SMP mailbox area in the SCU at 0x1e6e2180 with default values 2. Copies a stub named 'mailbox_insn' from flash to the SCU, just above the

[PATCH 2/2] hw/display/edid: Add missing 'qdev-properties.h' header

2020-05-04 Thread Philippe Mathieu-Daudé
To use the DEFINE_EDID_PROPERTIES() macro we need the definitions from "hw/qdev-properties.h". Signed-off-by: Philippe Mathieu-Daudé --- include/hw/display/edid.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/hw/display/edid.h b/include/hw/display/edid.h index ff99dc0a05..23371ee82

[PATCH] hw/usb: Make "hcd-ehci.h" header public

2020-05-04 Thread Philippe Mathieu-Daudé
As target-specific code use this header, move it to the publicly accessible include/ folder. $ git grep hw/usb/hcd-ehci.h hw/arm/allwinner-h3.c:31:#include "hw/usb/hcd-ehci.h" hw/arm/exynos4210.c:38:#include "hw/usb/hcd-ehci.h" hw/ppc/sam460ex.c:38:#include "hw/usb/hcd-ehci.h" include/hw

[PATCH 1/2] hw/display: Include local 'framebuffer.h'

2020-05-04 Thread Philippe Mathieu-Daudé
The "framebuffer.h" header is not an exported include. Signed-off-by: Philippe Mathieu-Daudé --- hw/display/artist.c | 2 +- hw/display/next-fb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/display/artist.c b/hw/display/artist.c index 753dbb9a77..e1d5885fed 100644

[PATCH 0/2] hw/display: Trivial include cleanups

2020-05-04 Thread Philippe Mathieu-Daudé
Some 'display' patches worth salvaging while doing housekeeping. Philippe Mathieu-Daudé (2): hw/display: Include local 'framebuffer.h' hw/display/edid: Add missing 'qdev-properties.h' header include/hw/display/edid.h | 1 + hw/display/artist.c | 2 +- hw/display/next-fb.c | 2 +-

Re: [PATCH v4 00/34] Configurable policy for handling deprecated interfaces

2020-05-04 Thread Peter Krempa
On Tue, Mar 17, 2020 at 12:54:25 +0100, Markus Armbruster wrote: > This series extends QMP introspection to cover deprecation. > Additionally, new option -compat lets you configure what to do when > deprecated interfaces get used. This is intended for testing users of > the management interfaces.

[PATCH 4/4] hw/i386: Make vmmouse helpers static

2020-05-04 Thread Philippe Mathieu-Daudé
The vmmouse helpers are only used in hw/i386/vmmouse.c, make them static. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/i386/pc.h | 4 hw/i386/vmmouse.c| 22 +- hw/i386/vmport.c | 23 +-- 3 files changed, 22 insertions(+), 27 deletions

[PATCH 2/4] hw/i386/vmport: Remove unused 'hw/input/i8042.h' include

2020-05-04 Thread Philippe Mathieu-Daudé
Remove unused "hw/input/i8042.h" include. Signed-off-by: Philippe Mathieu-Daudé --- hw/i386/vmport.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/i386/vmport.c b/hw/i386/vmport.c index 1f31e27c8a..114141c6f3 100644 --- a/hw/i386/vmport.c +++ b/hw/i386/vmport.c @@ -24,7 +24,6 @@ #includ

[PATCH 0/4] hw/i386: Restrict vmport/vmmouse devices to x86 targets

2020-05-04 Thread Philippe Mathieu-Daudé
Some x86 patches worth salvaging while doing housekeeping: Restrict vmport/vmmouse devices to x86 targets. A step forward having "hw/i386/pc.h" target-specific... Philippe Mathieu-Daudé (4): hw/i386/pc: Create 'vmport' device in place hw/i386/vmport: Remove unused 'hw/input/i8042.h' include

Re: [PATCH 08/17] s390x/cpumodel: Fix UI to CPU features pcc-cmac-{aes,eaes}-256

2020-05-04 Thread Christian Borntraeger
On 02.05.20 07:15, Markus Armbruster wrote: > Christian Borntraeger writes: > >> On 29.04.20 10:54, Christian Borntraeger wrote: >>> >>> >>> On 28.04.20 19:13, David Hildenbrand wrote: On 28.04.20 18:34, Markus Armbruster wrote: > Both s390_features[S390_FEAT_PCC_CMAC_AES_256].name an

[PATCH 1/4] hw/i386/pc: Create 'vmport' device in place

2020-05-04 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/hw/i386/pc.h | 6 -- hw/i386/pc.c | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 6ab6eda046..26e2a3d92b 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc

[PATCH 3/4] hw/i386: Add 'vmport.h' local header

2020-05-04 Thread Philippe Mathieu-Daudé
Move 'vmport' related declarations in a target-specific header. Signed-off-by: Philippe Mathieu-Daudé --- hw/i386/vmport.h | 34 ++ include/hw/i386/pc.h | 3 --- hw/i386/pc.c | 1 + hw/i386/vmmouse.c| 1 + hw/i386/vmport.c | 1 + 5 files ch

[PATCH 0/3] qom: Few trivial patches

2020-05-04 Thread Philippe Mathieu-Daudé
Some QOM patches worth salvaging while doing housekeeping. Philippe Mathieu-Daudé (3): qom/object: Move Object typedef to 'qemu/typedefs.h' io/task: Move 'qom/object.h' header to source qom/object: Make reparenting error more verbose include/io/task.h | 2 -- include/qemu/typedefs.

[PATCH 3/3] qom/object: Make reparenting error more verbose

2020-05-04 Thread Philippe Mathieu-Daudé
Display child and parent names when reparenting occurs. Signed-off-by: Philippe Mathieu-Daudé --- qom/object.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qom/object.c b/qom/object.c index be700e831f..417fd90aa5 100644 --- a/qom/object.c +++ b/qom/object.c @@ -1683,

[PATCH 1/3] qom/object: Move Object typedef to 'qemu/typedefs.h'

2020-05-04 Thread Philippe Mathieu-Daudé
We use the Object type all over the place. Forward declare it in "qemu/typedefs.h". Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/typedefs.h | 1 + include/qom/object.h | 2 -- include/qom/qom-qobject.h | 2 -- include/sysemu/sysemu.h | 1 - 4 files changed, 1 insertion(+), 5 d

Re: [PATCH] hw/usb: Make "hcd-ehci.h" header public

2020-05-04 Thread BALATON Zoltan
On Mon, 4 May 2020, Philippe Mathieu-Daudé wrote: As target-specific code use this header, move it to the publicly accessible include/ folder. $ git grep hw/usb/hcd-ehci.h hw/arm/allwinner-h3.c:31:#include "hw/usb/hcd-ehci.h" hw/arm/exynos4210.c:38:#include "hw/usb/hcd-ehci.h" hw/ppc/sam460e

[PATCH 2/3] io/task: Move 'qom/object.h' header to source

2020-05-04 Thread Philippe Mathieu-Daudé
We need "qom/object.h" to call object_ref()/object_unref(). Signed-off-by: Philippe Mathieu-Daudé --- include/io/task.h | 2 -- io/task.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/io/task.h b/include/io/task.h index 1abbfb8b65..6818dfedd0 100644 --- a/i

Re: [PATCH v2 1/3] MAINTAINERS: Cover the GDB Python scripts in the gdbstub section

2020-05-04 Thread Philippe Mathieu-Daudé
On 4/30/20 9:59 AM, Kevin Wolf wrote: Am 30.04.2020 um 08:57 hat Philippe Mathieu-Daudé geschrieben: Keep an eye on these "same same, but different" files. Acked-by: Alex Bennée Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTA

Re: [PATCH] Makefile: Let the 'help' target list the helper targets

2020-05-04 Thread Philippe Mathieu-Daudé
Ping? On 4/23/20 12:43 PM, Philippe Mathieu-Daudé wrote: List the name of the helper targets when calling 'make help', along with the tool targets: $ make help [...] Helper targets: fsdev/virtfs-proxy-helper - Build virtfs-proxy-helper scsi/qemu-pr-helper- B

Re: [PATCH v3 0/9] misc: Trivial static code analyzer fixes

2020-05-04 Thread Philippe Mathieu-Daudé
On 4/22/20 3:31 PM, Philippe Mathieu-Daudé wrote: Fix trivial warnings reported by the Clang static code analyzer. Only patch #2 'blockdev: Remove dead assignment' misses review. Thanks to Max this series is now fully reviewed, so... ping? The official Clang static code analyzer documentati

Re: [PATCH] MAINTAINERS: Update Keith Busch's email address

2020-05-04 Thread Philippe Mathieu-Daudé
+block +trivial to raise the odds to get this patch merged. On 4/22/20 6:45 PM, Keith Busch wrote: On Tue, Apr 21, 2020 at 02:22:36PM +0200, Philippe Mathieu-Daudé wrote: keith.bu...@intel.com address is being rejected. Replace by the email address Keith is actively using. Signed-off-by: Phili

[Bug 1876678] [NEW] Ubuntu 20.04 QEMU Failure with nested FreeBSD bhyve

2020-05-04 Thread John Hartley
Public bug reported: BUG: Starting FreeBSD Layer 2 bhyve Guest within Layer 1 FreeBSD VM Host on Layer 0 Ubuntu 20.04 KVM / QEMU Host result in Layer 1 Guest / Host Pausing with "Emulation Failure" TESTING: My test scenario is nested virtualisation: Layer 0 - Ubuntu 20.04 Host Layer 1 - FreeBSD

Re: [RFC patch v1 2/3] qemu-file: add buffered mode

2020-05-04 Thread Daniel P . Berrangé
On Mon, Apr 27, 2020 at 01:14:33PM +0100, Dr. David Alan Gilbert wrote: > * Denis Plotnikov (dplotni...@virtuozzo.com) wrote: > > The patch adds ability to qemu-file to write the data > > asynchronously to improve the performance on writing. > > Before, only synchronous writing was supported. > >

Re: [PATCH v6 3/5] 9pfs: add new function v9fs_co_readdir_many()

2020-05-04 Thread Greg Kurz
On Fri, 01 May 2020 16:04:41 +0200 Christian Schoenebeck wrote: > On Donnerstag, 30. April 2020 15:30:49 CEST Greg Kurz wrote: > > > > I agree that a client that issues concurrent readdir requests on the > > > > same fid is probably asking for troubles, but this permitted by the > > > > spec. Whe

Re: [PATCH v2 02/14] qcrypto/luks: implement encryption key management

2020-05-04 Thread Daniel P . Berrangé
On Sun, May 03, 2020 at 11:55:35AM +0300, Maxim Levitsky wrote: > On Tue, 2020-04-28 at 14:16 +0100, Daniel P. Berrangé wrote: > > On Sun, Mar 08, 2020 at 05:18:51PM +0200, Maxim Levitsky wrote: > > > Next few patches will expose that functionality > > > to the user. > > > > > > Signed-off-by: Max

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

2020-05-04 Thread Laurent Vivier
Le 16/03/2020 à 15:28, Philippe Mathieu-Daudé a écrit : > 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

Re: [PATCH] Fix iotest 153

2020-05-04 Thread Max Reitz
On 03.05.20 18:49, Maxim Levitsky wrote: > Commit f62514b3def5fb2acbef64d0e053c0c31fa45aff made qemu-img reject -o "" > but this test uses it > > Since this test only tries to do a dry-run run of qemu-img amend, replace the > -o "" with > dummy -o "size=0" since due to the nature of the test, it

Re: [PATCH 0/2] hw/mem/pc-dimm: Trivial code changes

2020-05-04 Thread Laurent Vivier
Le 10/03/2020 à 19:05, Wainer dos Santos Moschetta a écrit : > Improve one error message and fix one code style warning. > > Wainer dos Santos Moschetta (2): > hw/mem/pc-dimm: Print slot number on error at pc_dimm_pre_plug() > hw/mem/pc-dimm: Fix line over 80 characters warning > > hw/mem/pc

Re: [PATCH v4 0/7] ARM virt: Add NVDIMM support

2020-05-04 Thread Peter Maydell
On Mon, 4 May 2020 at 06:13, Michael S. Tsirkin wrote: > > On Tue, Apr 21, 2020 at 01:59:27PM +0100, Shameer Kolothum wrote: > > This series adds NVDIMM support to arm/virt platform. > > The series reuses some of the patches posted by Eric > > in his earlier attempt here[1]. > > > > This series pr

Re: [PATCH 02/17] qom: Clean up inconsistent use of gchar * vs. char *

2020-05-04 Thread Daniel P . Berrangé
On Sat, May 02, 2020 at 07:06:38AM +0200, Markus Armbruster wrote: > Eric Blake writes: > > > On 4/28/20 11:34 AM, Markus Armbruster wrote: > >> Uses of gchar * in qom/object.h: > >> > > > > Nice audit. I don't know if we can blindly assume that 'gchar' is a > > (stupid) typedef to 'char', or if

Re: [PATCH] chardev: enable distinct input for -chardev file

2020-05-04 Thread Daniel P . Berrangé
On Fri, May 01, 2020 at 01:25:59PM -0400, Alexander Bulekov wrote: > char-file already supports distinct paths for input/output but it was > only possible to specify a distinct input through QMP. With this change, > we can also specify a distinct input with the -chardev file argument: > qemu -c

[PATCH] aspeed: Support AST2600A1 silicon revision

2020-05-04 Thread Joel Stanley
There are minimal differences from Qemu's point of view between the A0 and A1 silicon revisions. As the A1 exercises different code paths in u-boot it is desirable to emulate that instead. Signed-off-by: Joel Stanley --- hw/arm/aspeed.c | 8 hw/arm/aspeed_ast2600.c |

Re: [PATCH v3 04/18] accel/tcg: Add probe_access_flags

2020-05-04 Thread Peter Maydell
On Mon, 27 Apr 2020 at 17:00, Richard Henderson wrote: > > On 4/27/20 3:48 AM, Peter Maydell wrote: > > The old code passed size into cc->tlb_fill; the new version does not. > > The old code passed size into page_check_range(); the new version does not. > > This is the user-only version, and size

Re: [PATCH] Fix iotest 153

2020-05-04 Thread Maxim Levitsky
On Mon, 2020-05-04 at 11:22 +0200, Max Reitz wrote: > On 03.05.20 18:49, Maxim Levitsky wrote: > > Commit f62514b3def5fb2acbef64d0e053c0c31fa45aff made qemu-img reject -o "" > > but this test uses it > > > > Since this test only tries to do a dry-run run of qemu-img amend, replace > > the -o ""

Re: [PATCH v4 13/18] target/arm: Update contiguous first-fault and no-fault loads

2020-05-04 Thread Peter Maydell
On Thu, 30 Apr 2020 at 17:28, Richard Henderson wrote: > > With sve_cont_ldst_pages, the differences between first-fault and no-fault > are minimal, so unify the routines. With cpu_probe_watchpoint, we are able > to make progress through pages with TLB_WATCHPOINT set when the watchpoint > does no

Re: [PATCH v4 00/18] target/arm: sve load/store improvements

2020-05-04 Thread Peter Maydell
On Thu, 30 Apr 2020 at 17:28, Richard Henderson wrote: > > The goal here is to support MTE, but there's some cleanup to do. > > Technically, we have sufficient interfaces in cputlb.c now, but it > requires multiple tlb lookups on different interfaces to do so. > > Adding probe_access_flags() allow

Re: [PATCH v4 0/7] ARM virt: Add NVDIMM support

2020-05-04 Thread Auger Eric
Hi, On 5/4/20 11:29 AM, Peter Maydell wrote: > On Mon, 4 May 2020 at 06:13, Michael S. Tsirkin wrote: >> >> On Tue, Apr 21, 2020 at 01:59:27PM +0100, Shameer Kolothum wrote: >>> This series adds NVDIMM support to arm/virt platform. >>> The series reuses some of the patches posted by Eric >>> in h

Re: [PATCH] MAINTAINERS: Update Keith Busch's email address

2020-05-04 Thread Laurent Vivier
Le 04/05/2020 à 10:58, Philippe Mathieu-Daudé a écrit : > +block +trivial to raise the odds to get this patch merged. > > On 4/22/20 6:45 PM, Keith Busch wrote: >> On Tue, Apr 21, 2020 at 02:22:36PM +0200, Philippe Mathieu-Daudé wrote: >>> keith.bu...@intel.com address is being rejected. >>> Repla

Re: RFC: use VFIO over a UNIX domain socket to implement device offloading

2020-05-04 Thread Stefan Hajnoczi
On Fri, May 01, 2020 at 04:28:25PM +0100, Daniel P. Berrangé wrote: > On Fri, May 01, 2020 at 03:01:01PM +, Felipe Franciosi wrote: > > Hi, > > > > > On Apr 30, 2020, at 4:20 PM, Thanos Makatos > > > wrote: > > > > > More importantly, considering: > > a) Marc-André's comments abou

Re: [PATCH v4 0/7] ARM virt: Add NVDIMM support

2020-05-04 Thread Michael S. Tsirkin
On Mon, May 04, 2020 at 10:29:18AM +0100, Peter Maydell wrote: > On Mon, 4 May 2020 at 06:13, Michael S. Tsirkin wrote: > > > > On Tue, Apr 21, 2020 at 01:59:27PM +0100, Shameer Kolothum wrote: > > > This series adds NVDIMM support to arm/virt platform. > > > The series reuses some of the patches

[PATCH 2/6] qemu/bitmap: Document bitmap_new() returned pointer

2020-05-04 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/bitmap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/qemu/bitmap.h b/include/qemu/bitmap.h index 82a1d2f41f..0b390ff576 100644 --- a/include/qemu/bitmap.h +++ b/include/qemu/bitmap.h @@ -90,12 +90,14 @@ int slow_bitmap_inter

[PATCH 0/6] block/nvme: Align block pages queue to host page size

2020-05-04 Thread Philippe Mathieu-Daudé
The most important patch of this series is 'Align block pages queue to host page size', it start fixing an issue on PowerPC hosts. It is not sufficient, but the rest is VFIO specific, so I prefer to send it separately. The other patches are documentation I was writing down while looking at the cod

Re: [PATCH] elf_ops: Don't try to g_mapped_file_unref(NULL)

2020-05-04 Thread Laurent Vivier
Le 23/04/2020 à 22:20, Peter Maydell a écrit : > Calling g_mapped_file_unref() on a NULL pointer is not valid, and > glib will assert if you try it. > > $ qemu-system-arm -M virt -display none -device loader,file=/tmp/bad.elf > qemu-system-arm: -device loader,file=/tmp/bad.elf: GLib: g_mapped_file

[PATCH 4/6] block/block: Document BlockSizes fields

2020-05-04 Thread Philippe Mathieu-Daudé
As it is not obvious for a block neophyte what means the 'log' value, document it. Signed-off-by: Philippe Mathieu-Daudé --- include/block/block.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/block/block.h b/include/block/block.h index c57fdecf9a..94517c92b6 10

[PATCH 1/6] qemu/osdep: Document qemu_memalign() and friends

2020-05-04 Thread Philippe Mathieu-Daudé
Document allocator functions that require a specific de-allocator call. Signed-off-by: Philippe Mathieu-Daudé --- include/block/block.h | 4 include/qemu/osdep.h | 3 +++ include/sysemu/block-backend.h | 2 ++ 3 files changed, 9 insertions(+) diff --git a/include/block/b

[PATCH 5/6] block/nvme: Align block pages queue to host page size

2020-05-04 Thread Philippe Mathieu-Daudé
In nvme_create_queue_pair() we create a page list using qemu_blockalign(), then map it with qemu_vfio_dma_map(): q->prp_list_pages = qemu_blockalign0(bs, s->page_size * NVME_QUEUE_SIZE); r = qemu_vfio_dma_map(s->vfio, q->prp_list_pages, s->page_size * NVME_QUEUE_SIZE, .

[PATCH 3/6] sysemu/block-backend: Document blk_read()/blk_pwrite()

2020-05-04 Thread Philippe Mathieu-Daudé
The blk_read()/blk_pwrite() return value is not obvious, document it. Signed-off-by: Philippe Mathieu-Daudé --- include/sysemu/block-backend.h | 24 1 file changed, 24 insertions(+) diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index f2dcf

[RFC PATCH 6/6] hw/block/nvme: Make device target agnostic

2020-05-04 Thread Philippe Mathieu-Daudé
The NVMe device should not use target specific API. Use memory_region_do_writeback() (which was introduced in commit 61c490e25e0, after the NVMe emulated device was added) to replace qemu_ram_writeback(). Signed-off-by: Philippe Mathieu-Daudé --- RFC because I have no clue how dirty_log_mask work

Re: [PATCH] chardev: Add macOS to list of OSes that support -chardev serial

2020-05-04 Thread Laurent Vivier
Le 26/04/2020 à 23:09, Mikhail Gusarov a écrit : > macOS API for dealing with serial ports/ttys is identical to BSDs. > > Signed-off-by: Mikhail Gusarov > --- > > Note that the same file has a line >> #endif /* linux || sun */ > that is severely out of date. > > chardev/char-serial.c | 2 +- >

Re: [PATCH] virtiofsd: Use clone() and not unshare(), support non-root

2020-05-04 Thread Daniel P . Berrangé
On Fri, May 01, 2020 at 02:25:48PM -0400, Colin Walters wrote: > I'd like to make use of virtiofs as part of our tooling in > https://github.com/coreos/coreos-assembler > Most of the code runs as non-root today; qemu also runs as non-root. > We use 9p right now. > > virtiofsd's builtin sandboxing

[PATCH] hw/ide/ahci: Log lost IRQs

2020-05-04 Thread Philippe Mathieu-Daudé
One might find interesting to look at AHCI IRQs. Signed-off-by: Philippe Mathieu-Daudé --- hw/ide/ahci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 13d91e109a..fc82cbd5f1 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -1509,6 +1509,7 @@ static void

Re: [PATCH 1/2] hw/display: Include local 'framebuffer.h'

2020-05-04 Thread Thomas Huth
Am Mon, 4 May 2020 10:20:02 +0200 schrieb Philippe Mathieu-Daudé : > The "framebuffer.h" header is not an exported include. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/display/artist.c | 2 +- > hw/display/next-fb.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) Reviewed

Re: [PATCH v2] Compress lines for immediate return

2020-05-04 Thread Laurent Vivier
Le 03/04/2020 à 14:53, Stefan Hajnoczi a écrit : > On Wed, Apr 01, 2020 at 10:23:14PM +0530, Simran Singhal wrote: >> Compress two lines into a single line if immediate return statement is found. >> >> It also remove variables progress, val, data, ret and sock >> as they are no longer needed. >> >>

[PATCH] hw/char/parallel: Convert reset handler to DeviceReset

2020-05-04 Thread Philippe Mathieu-Daudé
As TYPE_ISA_PARALLEL inherits from TYPE_ISA_DEVICE, it also inherits from the DEVICE methods. Convert its reset handler into a proper DeviceReset method. Signed-off-by: Philippe Mathieu-Daudé --- hw/char/parallel.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hw/ch

Re: [PATCH v4 0/7] ARM virt: Add NVDIMM support

2020-05-04 Thread Peter Maydell
On Mon, 4 May 2020 at 10:46, Michael S. Tsirkin wrote: > > On Mon, May 04, 2020 at 10:29:18AM +0100, Peter Maydell wrote: > > I notice that checkpatch complains a lot about > > > > ERROR: Do not add expected files together with tests, follow > > instructions in tests/qtest/bios-tables-test.c: both

Re: [PATCH v4 0/7] ARM virt: Add NVDIMM support

2020-05-04 Thread Michael S. Tsirkin
On Tue, Apr 21, 2020 at 08:12:57AM -0700, no-re...@patchew.org wrote: > Patchew URL: > https://patchew.org/QEMU/20200421125934.14952-1-shameerali.kolothum.th...@huawei.com/ > > > > Hi, > > This series seems to have some coding style problems. See output below for > more information: > > Subje

Re: [PATCH v2 3/6] qemu-img: Add bitmap sub-command

2020-05-04 Thread Max Reitz
On 30.04.20 17:21, Eric Blake wrote: > On 4/30/20 9:55 AM, Max Reitz wrote: >> On 21.04.20 23:20, Eric Blake wrote: >>> Include actions for --add, --remove, --clear, --enable, --disable, and >>> --merge (note that --clear is a bit of fluff, because the same can be >>> accomplished by removing a bit

Re: An first try to improve PPC float simulation, not even compiled. Just ask question.

2020-05-04 Thread Alex Bennée
罗勇刚(Yonggang Luo) writes: > On Mon, May 4, 2020 at 7:40 AM BALATON Zoltan wrote: > >> Hello, >> >> On Mon, 4 May 2020, 罗勇刚(Yonggang Luo) wrote: >> > Hello Richard, Can you have a look at the following patch, and was that >> are >> > the right direction? >> >> Formatting of the patch is broken

Re: [PATCH v3 0/9] misc: Trivial static code analyzer fixes

2020-05-04 Thread Laurent Vivier
Le 22/04/2020 à 15:31, Philippe Mathieu-Daudé a écrit : > Fix trivial warnings reported by the Clang static code analyzer. > > Only patch #2 'blockdev: Remove dead assignment' misses review. > > The official Clang static code analyzer documentation is on: > https://clang-analyzer.llvm.org/ > > O

Re: [PATCH v4 0/7] ARM virt: Add NVDIMM support

2020-05-04 Thread Peter Maydell
On Mon, 4 May 2020 at 10:57, Michael S. Tsirkin wrote: > > ./scripts/checkpatch.pl --mailback base.. > > 2/7 Checking commit 5554e78b18ea (nvdimm: Use configurable ACPI IO base and > > size) > > ERROR: Do not add expected files together with tests, follow instructions > > in tests/qtest/bios-t

[PATCH v2 1/3] target: Remove unnecessary CPU() cast

2020-05-04 Thread Philippe Mathieu-Daudé
The CPU() macro is defined as: #define CPU(obj) ((CPUState *)(obj)) which expands to: ((CPUState *)object_dynamic_cast_assert((Object *)(obj), (name), __FILE__, __LINE__, __func__)) This assertion can only fail when @obj points to something other th

[PATCH v2 2/3] various: Remove unnecessary OBJECT() cast

2020-05-04 Thread Philippe Mathieu-Daudé
The OBJECT() macro is defined as: #define OBJECT(obj) ((Object *)(obj)) which expands to: ((Object *)object_dynamic_cast_assert((Object *)(obj), (name), __FILE__, __LINE__, __func__)) This assertion can only fail when @obj points to something other th

[PATCH v2 0/3] various: Remove unnecessary casts

2020-05-04 Thread Philippe Mathieu-Daudé
Remove unnecessary casts using coccinelle scripts. The CPU()/OBJECT() patches don't introduce logical change, The DEVICE() one removes various OBJECT_CHECK() calls. Since v2: - Add A-b/R-b tags - Reword description (Markus) Philippe Mathieu-Daudé (3): target: Remove unnecessary CPU() cast va

[PATCH v2 3/3] hw: Remove unnecessary DEVICE() cast

2020-05-04 Thread Philippe Mathieu-Daudé
The DEVICE() macro is defined as: #define DEVICE(obj) OBJECT_CHECK(DeviceState, (obj), TYPE_DEVICE) which expands to: ((DeviceState *)object_dynamic_cast_assert((Object *)(obj), (name), __FILE__, __LINE__,

Re: [PATCH] hw/usb: Make "hcd-ehci.h" header public

2020-05-04 Thread Philippe Mathieu-Daudé
On 5/4/20 10:48 AM, BALATON Zoltan wrote: On Mon, 4 May 2020, Philippe Mathieu-Daudé wrote: As target-specific code use this header, move it to the publicly accessible include/ folder.  $ git grep hw/usb/hcd-ehci.h  hw/arm/allwinner-h3.c:31:#include "hw/usb/hcd-ehci.h"  hw/arm/exynos4210.c:38:#

Re: [PATCH v1 00/11] hw/arm: versal: Add SD and the RTC

2020-05-04 Thread Peter Maydell
On Mon, 27 Apr 2020 at 19:16, Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > This series starts with some basic cleaning, continues with embedding > devices into the Versal SoC (as suggested by Peter in another review). > We then connect SD and the RTC to the Versal SoC and hook it al

[PATCH] xen: fix build without pci passthrough

2020-05-04 Thread Roger Pau Monne
has_igd_gfx_passthru is only available when QEMU is built with CONFIG_XEN_PCI_PASSTHROUGH, and hence shouldn't be used in common code without checking if it's available. Fixes: 46472d82322d0 ('xen: convert "-machine igd-passthru" to an accelerator property') Signed-off-by: Roger Pau Monné --- Cc

Re: [PATCH v3 00/14] LUKS: encryption slot management using amend interface

2020-05-04 Thread Daniel P . Berrangé
On Sun, May 03, 2020 at 09:43:10PM +0300, Maxim Levitsky wrote: > Hi! > Here is the updated series of my patches, incorporating all the feedback I > received. > > This implements the API interface that we agreed upon except that I merged the > LUKSKeyslotActive/LUKSKeyslotInactive union into a st

Re: [PATCH] hw/usb: Make "hcd-ehci.h" header public

2020-05-04 Thread Philippe Mathieu-Daudé
On 5/4/20 12:12 PM, Philippe Mathieu-Daudé wrote: On 5/4/20 10:48 AM, BALATON Zoltan wrote: On Mon, 4 May 2020, Philippe Mathieu-Daudé wrote: As target-specific code use this header, move it to the publicly accessible include/ folder.  $ git grep hw/usb/hcd-ehci.h  hw/arm/allwinner-h3.c:31:#in

Re: [PATCH v6 3/5] 9pfs: add new function v9fs_co_readdir_many()

2020-05-04 Thread Christian Schoenebeck
On Montag, 4. Mai 2020 11:18:34 CEST Greg Kurz wrote: > > > > > > +memcpy(e->dent, dent, sizeof(struct dirent)); > > > > > > + > > > > > > +/* perform a full stat() for directory entry if requested > > > > > > by > > > > > > caller */ +if (dostat) { > > > > > > +

Re: [PATCH v1 3/4] .cirrus.yml: bump FreeBSD to the current stable release

2020-05-04 Thread Li-Wen Hsu
On Fri, May 1, 2020 at 7:15 PM Alex Bennée wrote: > > Hopefully this will un-stick the test which has been broken for a long > time. > > Signed-off-by: Alex Bennée > --- > .cirrus.yml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/.cirrus.yml b/.cirrus.yml > index 90645

Re: [PATCH v3 00/14] LUKS: encryption slot management using amend interface

2020-05-04 Thread Maxim Levitsky
On Mon, 2020-05-04 at 11:19 +0100, Daniel P. Berrangé wrote: > On Sun, May 03, 2020 at 09:43:10PM +0300, Maxim Levitsky wrote: > > Hi! > > Here is the updated series of my patches, incorporating all the feedback I > > received. > > > > This implements the API interface that we agreed upon except

[PATCH v4 6/6] net/colo-compare.c: Correct ordering in complete and finalize

2020-05-04 Thread Lukas Straub
In colo_compare_complete, insert CompareState into net_compares only after everything has been initialized. In colo_compare_finalize, remove CompareState from net_compares before anything is deinitialized. Signed-off-by: Lukas Straub --- net/colo-compare.c | 45 +++---

[PATCH v4 1/6] net/colo-compare.c: Create event_bh with the right AioContext

2020-05-04 Thread Lukas Straub
qemu_bh_new will set the bh to be executed in the main loop. This causes crashes as colo_compare_handle_event assumes that it has exclusive access the queues, which are also concurrently accessed in the iothread. Create the bh with the AioContext of the iothread to fulfill these assumptions and fi

[PATCH v4 0/6] colo-compare bugfixes

2020-05-04 Thread Lukas Straub
Hello Everyone, Here are fixes for bugs that I found in my tests. Benchmark results: Client-to-server tcp: without patch: ~63 Mbit/s with patch: ~66 Mbit/s Server-to-client tcp: without patch: ~771 Kbit/s with patch: ~702 Kbit/s Regards, Lukas Straub Version changes: v4: -fix potential deadlock

Re: [PATCH v2] s390x/kvm: help valgrind in several places

2020-05-04 Thread Cornelia Huck
On Wed, 29 Apr 2020 03:42:01 -0400 Christian Borntraeger wrote: > We need some little help in the code to reduce the valgrind noise. > This patch does this with some designated initializers for the cpu > model features and subfunctions. > > Reviewed-by: Philippe Mathieu-Daudé > Signed-off-by: C

[PATCH v4 2/6] chardev/char.c: Use qemu_co_sleep_ns if in coroutine

2020-05-04 Thread Lukas Straub
This will be needed in the next patch. Signed-off-by: Lukas Straub Reviewed-by: Marc-André Lureau Reviewed-by: Zhang Chen --- chardev/char.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chardev/char.c b/chardev/char.c index e77564060d..5c8014199f 100644 --- a/chard

[PATCH v4 3/6] net/colo-compare.c: Fix deadlock in compare_chr_send

2020-05-04 Thread Lukas Straub
The chr_out chardev is connected to a filter-redirector running in the main loop. qemu_chr_fe_write_all might block here in compare_chr_send if the (socket-)buffer is full. If another filter-redirector in the main loop want's to send data to chr_pri_in it might also block if the buffer is full. Thi

Re: [PATCH] xen: fix build without pci passthrough

2020-05-04 Thread Philippe Mathieu-Daudé
Hi Roger, On 5/4/20 12:14 PM, Roger Pau Monne wrote: has_igd_gfx_passthru is only available when QEMU is built with CONFIG_XEN_PCI_PASSTHROUGH, and hence shouldn't be used in common code without checking if it's available. Fixes: 46472d82322d0 ('xen: convert "-machine igd-passthru" to an accele

[PATCH v4 5/6] net/colo-compare.c, softmmu/vl.c: Check that colo-compare is active

2020-05-04 Thread Lukas Straub
If the colo-compare object is removed before failover and a checkpoint happens, qemu crashes because it tries to lock the destroyed event_mtx in colo_notify_compares_event. Fix this by checking if everything is initialized by introducing a new variable colo_compare_active which is protected by a n

Re: [PATCH 2/4] device-core: use RCU for list of childs of a bus

2020-05-04 Thread Stefan Hajnoczi
On Thu, Apr 16, 2020 at 11:36:22PM +0300, Maxim Levitsky wrote: > @@ -90,9 +92,13 @@ static void bus_reset_child_foreach(Object *obj, > ResettableChildCallback cb, > BusState *bus = BUS(obj); > BusChild *kid; > > -QTAILQ_FOREACH(kid, &bus->children, sibling) { > +rcu_read_lock(

  1   2   3   4   5   6   >