Re: [Qemu-devel] [PATCH v3 27/32] s390x/tcg: Provide probe_write_access helper

2019-03-07 Thread David Hildenbrand
On 07.03.19 15:10, Richard Henderson wrote: > On 3/7/19 4:15 AM, David Hildenbrand wrote: >> +void probe_write_access(CPUS390XState *env, uint64_t addr, uint64_t len, >> +uintptr_t ra) >> +{ >> +#ifdef CONFIG_USER_ONLY >> +if (!h2g_valid(addr) || !h2g_valid(addr + len -

[Qemu-devel] [PATCH v4 3/4] qemu-iotests: Improve portability by searching bash in the $PATH

2019-03-07 Thread Philippe Mathieu-Daudé
Bash is not always installed as /bin/bash. In particular on OpenBSD, the package installs it in /usr/local/bin. Use the 'env' shebang to search bash in the $PATH. Patch created mechanically by running: $ git grep -lE '#! ?/bin/bash' -- tests/qemu-iotests \ | while read f; do \ sed -i

Re: [Qemu-devel] [PATCH v5 2/2] Add Nios II semihosting support.

2019-03-07 Thread Peter Maydell
On Wed, 13 Feb 2019 at 04:02, Sandra Loosemore wrote: > > This patch adds support for libgloss semihosting to Nios II bare-metal > emulation. > > Signed-off-by: Sandra Loosemore > Signed-off-by: Julian Brown Do you have a link to the spec that defines this semihosting ABI, please ? thanks --

[Qemu-devel] [PATCH v4 2/4] tests/bios-tables: Improve portability by searching bash in the $PATH

2019-03-07 Thread Philippe Mathieu-Daudé
Bash is not always installed as /bin/bash. In particular on OpenBSD, the package installs it in /usr/local/bin. Use the 'env' shebang to search bash in the $PATH. Reviewed-by: Kamil Rytarowski Reviewed-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Philippe Mathieu-Daudé ---

Re: [Qemu-devel] [PATCH v3 0/2] OpenBSD: Let QEMU 4.0 be usable from OpenBSD 6.0 and onwards

2019-03-07 Thread Daniel P . Berrangé
On Thu, Mar 07, 2019 at 03:28:20PM +0100, Philippe Mathieu-Daudé wrote: > Since OpenBSD 6.0, the W^X protection is enforced by default. > TCG is incompatible with this protection, to be able to use the > QEMU binary, this protection has to be disabled. > The OpenBSD ports seens to have downstream

[Qemu-devel] [PATCH 8/9] target/arm: Use extract2 for EXTR

2019-03-07 Thread Richard Henderson
This is, after all, how we implement extract2 in tcg/aarc64. Cc: qemu-...@nongnu.org Cc: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 38 -- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git

[Qemu-devel] [PATCH v4 0/4] tests: Allow use of Ports bash and GNU sed extensions

2019-03-07 Thread Philippe Mathieu-Daudé
Hi Thomas, This series contains few script cleanups which help to run tests on OpenBSD. Note, this is a split of the previous series, here restricted to tests/. Since v3: - Do not use space in shebang (21st century update from Thomas) - Added R-b Since v2: - Addressed Eric's comments (in code

[Qemu-devel] [PATCH v3 1/2] oslib-posix: Ignore fcntl("/dev/null", F_SETFL, O_NONBLOCK) failure

2019-03-07 Thread Philippe Mathieu-Daudé
Previous to OpenBSD 6.3 [1], fcntl(F_SETFL) is not permitted on memory devices. Trying this call sets errno to ENODEV ("not a memory device"): 19 ENODEV Operation not supported by device. An attempt was made to apply an inappropriate function to a device, for example, trying to read a

Re: [Qemu-devel] [multiprocess RFC PATCH 36/37] multi-process: add the concept description to docs/devel/qemu-multiprocess

2019-03-07 Thread Thomas Huth
On 07/03/2019 15.40, Konrad Rzeszutek Wilk wrote: > On Thu, Mar 07, 2019 at 03:21:47PM +0100, Thomas Huth wrote: >> On 07/03/2019 15.16, Kevin Wolf wrote: >>> Am 07.03.2019 um 09:14 hat Thomas Huth geschrieben: On 07/03/2019 08.22, elena.ufimts...@oracle.com wrote: > From: Elena Ufimtseva

[Qemu-devel] [PATCH 9/9] target/arm: Simplify BFXIL expansion

2019-03-07 Thread Richard Henderson
The mask implied by the extract is redundant with the one implied by the deposit. Also, fix spelling of BFXIL. Cc: qemu-...@nongnu.org Cc: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH v4 29/29] hw/arm: Remove hard-enablement of the remaining PCI devices

2019-03-07 Thread Thomas Huth
The PCI devices should be pulled in by default if PCI_DEVICES is set, so there is no need anymore to enforce them in the configs file. Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 8 1 file changed, 8 deletions(-) diff --git a/default-configs/arm-softmmu.mak

[Qemu-devel] [PATCH 6/9] tcg/arm: Support INDEX_op_extract2_i32

2019-03-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/arm/tcg-target.h | 2 +- tcg/arm/tcg-target.inc.c | 25 + 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h index 4ee6c98958..17e771374d 100644 ---

Re: [Qemu-devel] [multiprocess RFC PATCH 36/37] multi-process: add the concept description to docs/devel/qemu-multiprocess

2019-03-07 Thread Daniel P . Berrangé
On Thu, Mar 07, 2019 at 02:26:09PM +, Stefan Hajnoczi wrote: > On Wed, Mar 06, 2019 at 11:22:53PM -0800, elena.ufimts...@oracle.com wrote: > > diff --git a/docs/devel/qemu-multiprocess.txt > > b/docs/devel/qemu-multiprocess.txt > > new file mode 100644 > > index 000..e29c6c8 > > ---

[Qemu-devel] [PATCH 5/9] tcg/i386: Support INDEX_op_extract2_{i32, i64}

2019-03-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.h | 4 ++-- tcg/i386/tcg-target.inc.c | 11 +++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h index 2c58eaa9ed..241bf19413 100644 --- a/tcg/i386/tcg-target.h +++

[Qemu-devel] [PATCH v4 26/29] hw/arm: Express dependencies of the ZynqMP zcu102 machine with Kconfig

2019-03-07 Thread Thomas Huth
This cleans up most settings in default-configs/aarch64-softmmu.mak. Signed-off-by: Thomas Huth --- default-configs/aarch64-softmmu.mak | 4 hw/arm/Kconfig | 11 +++ hw/display/Kconfig | 1 + 3 files changed, 12 insertions(+), 4 deletions(-)

[Qemu-devel] [PATCH 1/9] tcg: Implement tcg_gen_extract2_{i32, i64}

2019-03-07 Thread Richard Henderson
From: David Hildenbrand Will be helpful for s390x. Input 128 bit and output 64 bit only, which is sufficient for now. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand Message-Id: <20190225154204.26751-1-da...@redhat.com> [rth: Add matching tcg_gen_extract2_i32.] Signed-off-by:

[Qemu-devel] [PATCH 4/9] tcg: Use extract2 in tcg_gen_deposit_{i32, i64}

2019-03-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/tcg-op.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/tcg/tcg-op.c b/tcg/tcg-op.c index 34e0dbc6e0..caee80235e 100644 --- a/tcg/tcg-op.c +++ b/tcg/tcg-op.c @@ -614,6 +614,18 @@ void

[Qemu-devel] [PATCH v4 24/29] hw/arm: Express dependencies for remaining IMX boards with Kconfig

2019-03-07 Thread Thomas Huth
IMX25, IMX7 and IMX6UL were still missing the Kconfig dependencies. Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 2 -- hw/arm/Kconfig | 18 ++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/default-configs/arm-softmmu.mak

[Qemu-devel] [PATCH 7/9] tcg/aarch64: Support INDEX_op_extract2_{i32, i64}

2019-03-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.h | 4 ++-- tcg/aarch64/tcg-target.inc.c | 11 +++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tcg/aarch64/tcg-target.h b/tcg/aarch64/tcg-target.h index 6600a54a02..ce2bb1f90b 100644 ---

[Qemu-devel] [PATCH v4 23/29] hw/arm: Express dependencies of the MSF2 / EMCRAFT_SF2 machine with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the emcraft-sf2 machine - we also distinguish between the machine (CONFIG_EMCRAFT_SF2) and the SoC (CONFIG_MSF2) now. Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 3 +-- hw/arm/Kconfig | 10 +- hw/arm/Makefile.objs

[Qemu-devel] [PATCH v3 2/2] configure: Disable W^X on OpenBSD

2019-03-07 Thread Philippe Mathieu-Daudé
Since OpenBSD 6.0 [1], W^X is enforced by default [2]. TCG requires WX access. Disable W^X if it is available. This fixes: # lm32-softmmu/qemu-system-lm32 Could not allocate dynamic translator buffer # sysctl kern.wxabort=1 kern.wxabort: 0 -> 1 # lm32-softmmu/qemu-system-lm32 mmap:

[Qemu-devel] [PATCH 0/9] tcg: Add tcg_gen_extract2_{i32,i64}

2019-03-07 Thread Richard Henderson
The primary motivator here is usage within s390x, but (as with any good primitive) the opcode has applications outside that. r~ David Hildenbrand (1): tcg: Implement tcg_gen_extract2_{i32,i64} Richard Henderson (8): tcg: Add INDEX_op_extract2_{i32,i64} tcg: Use extract2 in

[Qemu-devel] [PATCH 2/9] tcg: Add INDEX_op_extract2_{i32,i64}

2019-03-07 Thread Richard Henderson
This will let backends implement the double-word shift operation. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.h | 2 ++ tcg/arm/tcg-target.h | 1 + tcg/i386/tcg-target.h| 2 ++ tcg/mips/tcg-target.h| 2 ++ tcg/ppc/tcg-target.h | 2 ++ tcg/riscv/tcg-target.h

[Qemu-devel] [PATCH v3 0/2] OpenBSD: Let QEMU 4.0 be usable from OpenBSD 6.0 and onwards

2019-03-07 Thread Philippe Mathieu-Daudé
Since OpenBSD 6.0, the W^X protection is enforced by default. TCG is incompatible with this protection, to be able to use the QEMU binary, this protection has to be disabled. The OpenBSD ports seens to have downstream patches to be able to use QEMU, but these patches were never upstreamed. This

Re: [Qemu-devel] [PATCHv2 0/2] curses: Add support for wide output

2019-03-07 Thread Samuel Thibault
Gerd Hoffmann, le jeu. 07 mars 2019 14:21:12 +0100, a ecrit: > On Mon, Mar 04, 2019 at 10:02:15PM +0100, Samuel Thibault wrote: > > This adds support for wide output in the curses frontend > > > > Difference with previous version: > > - Add more rationale in commit message > > - Move charset

[Qemu-devel] [PATCH v4 22/29] hw/arm: Express dependencies of sabrelite with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the Sabrelite / iMX6 machine. Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 4 +--- hw/arm/Kconfig | 7 +++ hw/arm/Makefile.objs| 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git

Re: [Qemu-devel] [PATCH v2 4/5] iothread: push gcontext earlier in the thread_fn

2019-03-07 Thread Stefan Hajnoczi
On Wed, Mar 06, 2019 at 07:55:31PM +0800, Peter Xu wrote: > +/* > + * We should do this as soon as we enter the thread, because the > + * function will silently fail if it fails to acquire the > + * gcontext. > + */ > +

[Qemu-devel] [PATCH v4 27/29] hw/arm: Express dependencies of the xlnx-versal-virt machine with Kconfig

2019-03-07 Thread Thomas Huth
Dependencies have been determined with trial-and-error and by looking at the xlnx-versal.c source file. Signed-off-by: Thomas Huth --- hw/arm/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index adc38d4..3a04def 100644 --- a/hw/arm/Kconfig +++

[Qemu-devel] [PATCH v4 21/29] hw/arm: Express dependencies of canon-a1100 with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the DIGIC / canon-a1100 machine. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 2 +- hw/arm/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v4 28/29] hw/arm: Express dependencies of the musca machines with Kconfig

2019-03-07 Thread Thomas Huth
Dependencies have been determined with trial-and-error and by looking at the musca.c source file. Signed-off-by: Thomas Huth --- hw/arm/Kconfig | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig index 3a04def..7a0e0ba 100644 ---

Re: [Qemu-devel] [multiprocess RFC PATCH 36/37] multi-process: add the concept description to docs/devel/qemu-multiprocess

2019-03-07 Thread Stefan Hajnoczi
On Wed, Mar 06, 2019 at 11:22:53PM -0800, elena.ufimts...@oracle.com wrote: > diff --git a/docs/devel/qemu-multiprocess.txt > b/docs/devel/qemu-multiprocess.txt > new file mode 100644 > index 000..e29c6c8 > --- /dev/null > +++ b/docs/devel/qemu-multiprocess.txt Thanks for this document and

[Qemu-devel] [PATCH v4 20/29] hw/arm: Express dependencies of the raspi machines with Kconfig

2019-03-07 Thread Thomas Huth
Most of the code is directly controlled by the CONFIG_RASPI switch, so not much to add here additionally. Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 4 +--- hw/arm/Kconfig | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH v4 19/29] hw/arm: Express dependencies of the MPS2 boards with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the mps2-an* machines. Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 20 +--- hw/arm/Kconfig | 18 ++ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/default-configs/arm-softmmu.mak

[Qemu-devel] [PATCH v4 25/29] hw/arm: Express dependencies of the microbit / nrf51 machine with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the NRF51 / microbit machine. Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 3 +-- hw/arm/Kconfig | 6 ++ hw/arm/Makefile.objs| 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH v4 17/29] hw/arm: Express dependencies of netduino / stm32f2xx with Kconfig

2019-03-07 Thread Thomas Huth
Netduino only depends on the stm32f205 SoC which in turn depends on its components. Reviewed-by: Alistair Francis Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 9 + hw/arm/Kconfig | 7 +++ 2 files changed, 8 insertions(+), 8 deletions(-) diff

[Qemu-devel] [PATCH v4 18/29] hw/arm: Express dependencies of allwinner / cubieboard with Kconfig

2019-03-07 Thread Thomas Huth
Add dependencies for the Cubitech Cubieboard. Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 6 +- hw/arm/Kconfig | 9 + 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/default-configs/arm-softmmu.mak

Re: [Qemu-devel] [multiprocess RFC PATCH 36/37] multi-process: add the concept description to docs/devel/qemu-multiprocess

2019-03-07 Thread Thomas Huth
On 07/03/2019 15.16, Kevin Wolf wrote: > Am 07.03.2019 um 09:14 hat Thomas Huth geschrieben: >> On 07/03/2019 08.22, elena.ufimts...@oracle.com wrote: >>> From: Elena Ufimtseva >>> >>> TODO: Make relevant changes to the doc. >>> >>> Signed-off-by: John G Johnson >>> Signed-off-by: Elena

[Qemu-devel] [PATCH v4 11/29] hw/arm: Express dependencies of realview, versatile and vexpress with Kconfig

2019-03-07 Thread Thomas Huth
This patch is slightly based on earlier work by Ákos Kovács (i.e. his "hw/arm/Kconfig: Add ARM Kconfig" patch). Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 21 +++--- hw/arm/Kconfig | 47 +

[Qemu-devel] [PATCH v4 14/29] hw/arm: Express dependencies of collie with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the Strongarm collie machine. This patch is based on earlier work by Ákos Kovács (i.e. his "hw/arm/Kconfig: Add ARM Kconfig" patch). Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 3 +-- hw/arm/Kconfig | 7 +++

[Qemu-devel] [PATCH v4 12/29] hw/arm: Express dependencies of the PXA2xx machines with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the PXA2xx machines (akita, borzoi, connex and verdex gumstix, tosa, mainstone, spitz, terrier and z2). This patch is based on earlier work by Ákos Kovács (i.e. his "hw/arm/Kconfig: Add ARM Kconfig" patch). Signed-off-by: Thomas Huth ---

[Qemu-devel] [PATCH v4 16/29] hw/arm: Express dependencies of the virt machine with Kconfig

2019-03-07 Thread Thomas Huth
Dependencies have been determined by looking at hw/arm/virt.c Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 11 +-- hw/arm/Kconfig | 18 ++ hw/arm/Makefile.objs| 3 ++- 3 files changed, 21 insertions(+), 11 deletions(-)

[Qemu-devel] [PATCH v4 06/29] hw/arm: Express dependencies of integratorcp with Kconfig

2019-03-07 Thread Thomas Huth
This patch is slightly based on earlier work by Ákos Kovács (i.e. his "hw/arm/Kconfig: Add ARM Kconfig" patch). Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 8 +--- hw/arm/Kconfig | 9 + hw/display/Kconfig | 1 + 3 files changed, 11

[Qemu-devel] [PATCH v4 15/29] hw/arm: Express dependencies of the aspeed boards with Kconfig

2019-03-07 Thread Thomas Huth
Dependencies have been determined by looking at hw/arm/aspeed.c Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 7 +-- hw/arm/Kconfig | 10 ++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/default-configs/arm-softmmu.mak

[Qemu-devel] [PATCH v4 10/29] hw/arm: Express dependencies of stellaris with Kconfig

2019-03-07 Thread Thomas Huth
This patch is slightly based on earlier work by Ákos Kovács (i.e. his "hw/arm/Kconfig: Add ARM Kconfig" patch). Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 7 +-- hw/arm/Kconfig | 10 ++ 2 files changed, 11 insertions(+), 6 deletions(-) diff

[Qemu-devel] [PATCH v4 03/29] hw/sd/sdhci: Move PCI-related code into a separate file

2019-03-07 Thread Thomas Huth
Some machines have an SDHCI device, but no PCI. To be able to compile hw/sd/sdhci.c without CONFIG_PCI, we must not call functions like pci_get_address_space() and pci_allocate_irq() there. Thus move the PCI-related code into a separate file. This is required for the new Kconfig-like build

[Qemu-devel] [PATCH v4 13/29] hw/arm: Express dependencies of xilinx-zynq with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the xilinx-zynq-a9 board. This patch is based on earlier work by Ákos Kovács (i.e. his "hw/arm/Kconfig: Add ARM Kconfig" patch). Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 7 +-- hw/arm/Kconfig | 14 ++ 2 files

[Qemu-devel] [PATCH v4 05/29] hw/arm: Express dependencies of the highbank machines with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the highbank machine (and the midway machine). This patch is slightly based on earlier work by Ákos Kovács (i.e. his "hw/arm/Kconfig: Add ARM Kconfig" patch). Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 9 + hw/arm/Kconfig

[Qemu-devel] [PATCH v4 04/29] hw/arm: Express dependencies of the exynos machines with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the Exynos-related boards (nuri and smdkc210). This patch is slightly based on earlier work by Ákos Kovács (i.e. his "hw/arm/Kconfig: Add ARM Kconfig" patch). Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 18 ++ hw/arm/Kconfig

[Qemu-devel] [PATCH v4 09/29] hw/arm: Express dependencies of the OMAP machines with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the OMAP machines (cheetah, n800, n810, sx1 and sx1-v1). This patch is slightly based on earlier work by Ákos Kovács (i.e. his "hw/arm/Kconfig: Add ARM Kconfig" patch). Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 17 -

[Qemu-devel] [PATCH v4 07/29] hw/arm: Express dependencies of the fsl-imx31 machine with Kconfig

2019-03-07 Thread Thomas Huth
Add Kconfig dependencies for the fsl-imx31 / kzm machine. This patch is slightly based on earlier work by Ákos Kovács (i.e. his "hw/arm/Kconfig: Add ARM Kconfig" patch). Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 3 +-- hw/arm/Kconfig | 5 +

Re: [Qemu-devel] Question about hardware cursor in VGA

2019-03-07 Thread BALATON Zoltan
On Thu, 7 Mar 2019, Gerd Hoffmann wrote: On Wed, Mar 06, 2019 at 02:50:36PM +0100, BALATON Zoltan wrote: On Wed, 6 Mar 2019, Gerd Hoffmann wrote: On Wed, Mar 06, 2019 at 12:48:59AM +0100, BALATON Zoltan wrote: On Tue, 5 Mar 2019, Gerd Hoffmann wrote: Use dpy_cursor_define(). I've done that

[Qemu-devel] [PATCH v4 02/29] hw/ide/ahci: Add a Kconfig switch for the AHDI-ICH9 device

2019-03-07 Thread Thomas Huth
Some of our machines (like the ARM cubieboard) use CONFIG_AHCI for an AHCI sysbus device, but do not use CONFIG_PCI since they do not feature a PCI bus. With CONFIG_AHCI but without CONFIG_PCI, currently linking fails: ../hw/ide/ich.o: In function `pci_ich9_ahci_realize':

[Qemu-devel] [PATCH v4 08/29] hw/arm: Express dependencies of musicpal with Kconfig

2019-03-07 Thread Thomas Huth
This patch is slightly based on earlier work by Ákos Kovács (i.e. his "hw/arm/Kconfig: Add ARM Kconfig" patch). Signed-off-by: Thomas Huth --- default-configs/arm-softmmu.mak | 6 +- hw/arm/Kconfig | 6 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH v4 01/29] hw/pci/pci-stub: Add msi_enabled() and msi_notify() to the pci stubs

2019-03-07 Thread Thomas Huth
Some machines have an AHCI adapter, but no PCI. To be able to compile hw/ide/ahci.c without CONFIG_PCI, we still need the two functions msi_enabled() and msi_notify() for linking. This is required for the new Kconfig-like build system, if a user wants to compile a QEMU binary with just one machine

[Qemu-devel] [PATCH v4 00/29] Kconfig dependencies for ARM machines

2019-03-07 Thread Thomas Huth
This series reworks the default-configs/arm-softmmu.mak and default-configs/aarch64-softmmu.mak files to use the new Kconfig-style dependencies instead. Based-on: 1551723614-1823-1-git-send-email-pbonz...@redhat.com ("Support Kconfig in QEMU") Some of the patches are slightly based on

Re: [Qemu-devel] [multiprocess RFC PATCH 36/37] multi-process: add the concept description to docs/devel/qemu-multiprocess

2019-03-07 Thread Kevin Wolf
Am 07.03.2019 um 09:14 hat Thomas Huth geschrieben: > On 07/03/2019 08.22, elena.ufimts...@oracle.com wrote: > > From: Elena Ufimtseva > > > > TODO: Make relevant changes to the doc. > > > > Signed-off-by: John G Johnson > > Signed-off-by: Elena Ufimtseva > > Signed-off-by: Jagannathan Raman

[Qemu-devel] [PULL v2 26/54] tpm: express dependencies with Kconfig

2019-03-07 Thread Paolo Bonzini
This automatically removes the TPM backends from the binary altogether if no front-ends are selected. Signed-off-by: Paolo Bonzini --- configure | 24 hw/tpm/Kconfig | 10 +- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/configure

[Qemu-devel] [PULL v2 00/54] Kconfig conversion, excluding ARM and MIPS

2019-03-07 Thread Paolo Bonzini
The following changes since commit 1ba530a4ecba6015d52d8f392fd327cfa07bc37a: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20190304' into staging (2019-03-04 13:38:54 +) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream-kconfig for

Re: [Qemu-devel] [qemu-s390x] [PATCH v3 09/16] s390-bios: ptr2u32 and u32toptr

2019-03-07 Thread Jason J. Herne
On 3/5/19 2:22 AM, Thomas Huth wrote: On 01/03/2019 19.59, Jason J. Herne wrote: Introduce inline functions to convert between pointers and unsigned 32-bit ints. These are used to hide the ugliness required to avoid compiler warnings. Signed-off-by: Jason J. Herne Acked-by: Cornelia Huck

Re: [Qemu-devel] [multiprocess RFC PATCH 35/37] multi-process: QMP/HMP commands to resize block device on remote process

2019-03-07 Thread Kevin Wolf
Am 07.03.2019 um 08:22 hat elena.ufimts...@oracle.com geschrieben: > From: Jagannathan Raman > > Adds rblock_resize QMP/HMP commands to resize block devices on the remote > process. > > Signed-off-by: John G Johnson > Signed-off-by: Jagannathan Raman > Signed-off-by: Elena Ufimtseva Up to

Re: [Qemu-devel] [PATCH v3 27/32] s390x/tcg: Provide probe_write_access helper

2019-03-07 Thread Richard Henderson
On 3/7/19 4:15 AM, David Hildenbrand wrote: > +void probe_write_access(CPUS390XState *env, uint64_t addr, uint64_t len, > +uintptr_t ra) > +{ > +#ifdef CONFIG_USER_ONLY > +if (!h2g_valid(addr) || !h2g_valid(addr + len - 1)) { > +s390_program_interrupt(env,

Re: [Qemu-devel] [PULL 00/54] Kconfig conversion, excluding ARM and MIPS

2019-03-07 Thread Paolo Bonzini
On 07/03/19 14:47, Philippe Mathieu-Daudé wrote: > Paolo, we might need: > > -- >8 -- > diff --git a/Makefile b/Makefile > --- a/Makefile > +++ b/Makefile > @@ -336,6 +336,7 @@ MINIKCONF_ARGS = \ > CONFIG_SPICE=$(CONFIG_SPICE) \ > CONFIG_IVSHMEM=$(CONFIG_IVSHMEM) \ >

Re: [Qemu-devel] [PATCH v3 00/30] Kconfig dependencies for ARM machines

2019-03-07 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1550908162-22644-1-git-send-email-th...@redhat.com/ Hi, This series failed the docker-mingw@fedora 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: [Qemu-devel] PMON2000 compilation and kernel question

2019-03-07 Thread BALATON Zoltan
On Thu, 7 Mar 2019, Andrew Randrianasulu wrote: distorted screen was when I tried 800x600 or 32 bpp The screen resolution this binary tried to set was 640x480x16 but it used two screens, one at offset 0 which was not set up correctly due to flat panel registers not emulated and another

Re: [Qemu-devel] [PATCH v3 00/32] s390x/tcg: Vector Instruction Support Part 1

2019-03-07 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190307121539.12842-1-da...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20190307121539.12842-1-da...@redhat.com Subject: [Qemu-devel] [PATCH v3 00/32] s390x/tcg:

[Qemu-devel] [PATCH] mirror: Confirm we're quiesced only if the job is paused or cancelled

2019-03-07 Thread Sergio Lopez
While child_job_drained_begin() calls to job_pause(), the job doesn't actually transition between states until it runs again and reaches a pause point. This means bdrv_drained_begin() may return with some jobs using the node still having 'busy == true'. As a consequence,

[Qemu-devel] [Bug 1818880] Re: Deadlock when detaching network interface

2019-03-07 Thread Heitor R. Alves de Siqueira
** Patch added: "Debdiff for xenial" https://bugs.launchpad.net/cloud-archive/+bug/1818880/+attachment/5244384/+files/xenial.debdiff ** Description changed: [Impact] Qemu guests hang indefinitely [Description] When running a Qemu guest with VirtIO network interfaces, detaching an

Re: [Qemu-devel] [PATCH v3 03/32] s390x/tcg: Utilities for vector instruction helpers

2019-03-07 Thread Richard Henderson
On 3/7/19 4:15 AM, David Hildenbrand wrote: > We'll have to read/write vector elements quite frequently from helpers. > The tricky bit is properly taking care of endianess. Handle it similar > to aarch64. > > Signed-off-by: David Hildenbrand > --- > target/s390x/vec.h | 101

[Qemu-devel] egl: EGL_MESA_image_dma_buf_export not supported / Failed to initialize EGL render node for SPICE GL

2019-03-07 Thread manish jaggi
Hi List, I am trying to run qemu with spice gl=on with the below command line and getting errors. qemu-system-x86_64 -cdrom ubuntu-18.04.2-desktop-amd64.iso -hda u1.qcow2 -enable-kvm -m 1G -cpu host -smp 8 -machine vmport=off -boot order=dc -device virtio-vga,virgl=on -spice

Re: [Qemu-devel] [PATCH v5-resend 0/2] Basic ATI VGA emulation

2019-03-07 Thread BALATON Zoltan
Hello, On Thu, 7 Mar 2019, Andrew Randrianasulu wrote: Tried this with mac99 machine and lubuntu 16.04 ppc. Thanks for testing it. Do you want to add a Tested-by: tag? You can reply to the patch (or series cover letter for all patches) with your Tested-by: to declare that. After

Re: [Qemu-devel] [PULL 00/54] Kconfig conversion, excluding ARM and MIPS

2019-03-07 Thread Paolo Bonzini
On 07/03/19 14:25, Peter Maydell wrote: > In file included from > /home/petmay01/qemu-for-merges/hw/tpm/tpm_emulator.c:37:0: > /home/petmay01/qemu-for-merges/hw/tpm/tpm_ioctl.h:11:21: fatal error: > sys/uio.h: No such file or directory > > I'm not sure what's happened here. It looks like the

Re: [Qemu-devel] [PATCH 1/5] hw/mips/malta: Fix the DEBUG_BOARD_INIT code

2019-03-07 Thread Aleksandar Markovic
> > From: Markus Armbruster > > Subject: Re: [Qemu-devel] [PATCH 1/5] hw/mips/malta: Fix the > > DEBUG_BOARD_INIT code > > > > Philippe Mathieu-Daudé writes: > > > > > Commit fa1d36df746 missed to convert this ifdef'ed out code. > > > Introduce the pflash_blk variable. > > > > > > This

Re: [Qemu-devel] [PATCH v3 08/14] r2d: Fix flash memory size, sector size, width, device ID

2019-03-07 Thread Philippe Mathieu-Daudé
On 3/7/19 2:03 PM, Markus Armbruster wrote: > pflash_cfi02_register() takes a size in bytes, a block size in bytes > and a number of blocks. r2d_init() passes FLASH_SIZE, 16 * KiB, > FLASH_SIZE >> 16. Does not compute: size doesn't match block size * > number of blocks. The latter happens to

Re: [Qemu-devel] [PATCH 1/5] hw/mips/malta: Fix the DEBUG_BOARD_INIT code

2019-03-07 Thread Aleksandar Markovic
> From: Markus Armbruster > Subject: Re: [Qemu-devel] [PATCH 1/5] hw/mips/malta: Fix the DEBUG_BOARD_INIT > code > > Philippe Mathieu-Daudé writes: > > > Commit fa1d36df746 missed to convert this ifdef'ed out code. > > Introduce the pflash_blk variable. > > > > This fixes: > > > >

Re: [Qemu-devel] [PULL 00/54] Kconfig conversion, excluding ARM and MIPS

2019-03-07 Thread Philippe Mathieu-Daudé
On 3/7/19 2:25 PM, Peter Maydell wrote: > On Mon, 4 Mar 2019 at 19:25, Paolo Bonzini wrote: >> >> The following changes since commit 1ba530a4ecba6015d52d8f392fd327cfa07bc37a: >> >> Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20190304' into >> staging (2019-03-04 13:38:54 +) >>

Re: [Qemu-devel] [PATCH v3 08/12] docs: Provide separate conf.py for each manual we want

2019-03-07 Thread Peter Maydell
On Thu, 7 Mar 2019 at 13:41, Cleber Rosa wrote: > > On Thu, Mar 07, 2019 at 01:30:39PM +, Peter Maydell wrote: > > Well, I'm also a bit biased here, in that this is v3 of this > > patchset that's been on the list using this approach for > > a month, and I was planning to apply it to master

Re: [Qemu-devel] [PATCH v5-resend 2/2] mips_fulong2e: Add on-board graphics chip

2019-03-07 Thread Aleksandar Markovic
> From: BALATON Zoltan > Subject: Re: [PATCH v5-resend 2/2] mips_fulong2e: Add on-board graphics chip > > > On Thu, 7 Mar 2019, Philippe Mathieu-Daudé wrote: > > Aleksandar, if you take this series, do you mind fixing with: > > I think it should go via Gerd's tree together with the other patch.

[Qemu-devel] [PATCH v2 3/4] iotests: ask QEMU for supported formats

2019-03-07 Thread Andrey Shinkevich
Supported formats listed by 'qemu' may differ from those listed by 'qemu-img' due to whitelists. Some test cases require specific formats that may be used with qemu. They can be inquired directly by running 'qemu -drive format=help'. The response takes whitelists into account. The method

Re: [Qemu-devel] [PATCH v3 08/12] docs: Provide separate conf.py for each manual we want

2019-03-07 Thread Cleber Rosa
On Thu, Mar 07, 2019 at 01:30:39PM +, Peter Maydell wrote: > On Thu, 7 Mar 2019 at 13:18, Cleber Rosa wrote: > > > > On Thu, Mar 07, 2019 at 12:29:08PM +, Peter Maydell wrote: > > > I'm still not clear how this helps. Either the top level > > > index file has everything in it (in which

[Qemu-devel] [PATCH v2 0/4] iotests: check whitelisted formats

2019-03-07 Thread Andrey Shinkevich
Some test cases require specific formats to be supported by QEMU. The list of formats supported by the block layer doesn't take whitelists into account. This series manages this issue. The method decorator skip_if_unsupported() checks if requested formats are whitelisted. The sample output is

[Qemu-devel] [PATCH v2 1/4] iotests: open notrun files in text mode

2019-03-07 Thread Andrey Shinkevich
Replace the binary mode with the default text one when *.notrun files are opened for skipped tests. That change is made for the compatibility with Python 3 which returns error otherwise. Signed-off-by: Kevin Wolf Signed-off-by: Andrey Shinkevich --- tests/qemu-iotests/iotests.py | 2 +- 1 file

[Qemu-devel] [PATCH v2 2/4] block: iterate_format with account of whitelisting

2019-03-07 Thread Andrey Shinkevich
bdrv_iterate_format (which is currently only used for printing out the formats supported by the block layer) doesn't take format whitelisting into account. This creates a problem for tests: they enumerate supported formats to decide which tests to enable, but then discover that QEMU doesn't let

Re: [Qemu-devel] [PULL 00/54] Kconfig conversion, excluding ARM and MIPS

2019-03-07 Thread Peter Maydell
On Mon, 4 Mar 2019 at 19:25, Paolo Bonzini wrote: > > The following changes since commit 1ba530a4ecba6015d52d8f392fd327cfa07bc37a: > > Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20190304' into > staging (2019-03-04 13:38:54 +) > > are available in the git repository at: > > >

[Qemu-devel] [PATCH v2 4/4] iotests: check whitelisted formats

2019-03-07 Thread Andrey Shinkevich
Some test cases require specific formats. The method decorator skip_if_unsupported() checks if requested formats are whitelisted. The test #139 was selected for a sample output, after running $ ./check -qcow2 131-140 137 3s ... 138 0s ... 139 2s ... [case not run] testBlkDebug

Re: [Qemu-devel] [PATCH 0/2] ui: support for authorization control on TLS connections

2019-03-07 Thread Daniel P . Berrangé
On Thu, Mar 07, 2019 at 02:27:30PM +0100, Gerd Hoffmann wrote: > On Thu, Mar 07, 2019 at 12:23:58PM +, Daniel P. Berrangé wrote: > > ping - soft freeze is less than a week away & i'd like this to get into > > a ui queue pull request in time for 4.0 if there's no review objections > > I'm

Re: [Qemu-devel] [PATCH v3 08/12] docs: Provide separate conf.py for each manual we want

2019-03-07 Thread Peter Maydell
On Thu, 7 Mar 2019 at 13:18, Cleber Rosa wrote: > > On Thu, Mar 07, 2019 at 12:29:08PM +, Peter Maydell wrote: > > I'm still not clear how this helps. Either the top level > > index file has everything in it (in which case it's no good > > for 'make install'), or we just have separate manuals

[Qemu-devel] [PATCH 1/5] target/mips: Add tests for a variety of MSA integer average instructions

2019-03-07 Thread Mateja Marjanovic
From: Mateja Marjanovic Add tests for a variety of MSA integer average instructions. Signed-off-by: Mateja Marjanovic --- .../user/ase/msa/int-average/test_msa_ave_s_b.c| 151 + .../user/ase/msa/int-average/test_msa_ave_s_d.c| 151 +

Re: [Qemu-devel] [multiprocess RFC PATCH 00/37] Initial support of multi-process qemu

2019-03-07 Thread Marc-André Lureau
Hi On Thu, Mar 7, 2019 at 11:46 AM Stefan Hajnoczi wrote: > > On Wed, Mar 06, 2019 at 11:20:25PM -0800, elena.ufimts...@oracle.com wrote: > > From: Elena Ufimtseva > > > > Initial support of multi-process qemu > > Hi Elena, > Please use the following setting when sending future patch series: >

[Qemu-devel] [PATCH 2/5] target/mips: Add tests for a variety of MSA integer divide instructions

2019-03-07 Thread Mateja Marjanovic
From: Mateja Marjanovic Add tests for a variety of MSA integer divide instructions. Signed-off-by: Mateja Marjanovic --- .../user/ase/msa/int-divide/test_msa_div_s_b.c | 151 + .../user/ase/msa/int-divide/test_msa_div_s_d.c | 151 +

Re: [Qemu-devel] [PATCH 0/2] ui: support for authorization control on TLS connections

2019-03-07 Thread Gerd Hoffmann
On Thu, Mar 07, 2019 at 12:23:58PM +, Daniel P. Berrangé wrote: > ping - soft freeze is less than a week away & i'd like this to get into > a ui queue pull request in time for 4.0 if there's no review objections I'm aware, I'm busy preparing the pre-freeze pulls. USB is on the list already,

[Qemu-devel] [PATCH 4/5] target/mips: Add tests for a variety of MSA integer multiply instructions

2019-03-07 Thread Mateja Marjanovic
From: Mateja Marjanovic Add tests for a variety of MSA integer multiply instructions. Signed-off-by: Mateja Marjanovic --- .../user/ase/msa/int-multiply/test_msa_mul_q_h.c | 151 + .../user/ase/msa/int-multiply/test_msa_mul_q_w.c | 151 +

[Qemu-devel] [PATCH 3/5] target/mips: Add tests for a variety of MSA integer dot product instructions

2019-03-07 Thread Mateja Marjanovic
From: Mateja Marjanovic Add tests for a variety of MSA integer dot product instructions. Signed-off-by: Mateja Marjanovic --- .../ase/msa/int-dot-product/test_msa_dotp_s_d.c| 151 + .../ase/msa/int-dot-product/test_msa_dotp_s_h.c| 151 +

Re: [Qemu-devel] converting build system to Meson?

2019-03-07 Thread Daniel P . Berrangé
On Thu, Mar 07, 2019 at 01:09:52PM +, Peter Maydell wrote: > On Thu, 7 Mar 2019 at 12:56, Paolo Bonzini wrote: > > In any case, this wouldn't change; as you suggest below, configure could > > remain as a front-end (well, in-srcdir builds are not supported by > > Meson, so "../configure &&

Re: [Qemu-devel] [PATCH v3 00/32] s390x/tcg: Vector Instruction Support Part 1

2019-03-07 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190307121539.12842-1-da...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20190307121539.12842-1-da...@redhat.com Subject: [Qemu-devel] [PATCH v3 00/32] s390x/tcg:

[Qemu-devel] [PATCH 0/5] target/mips: Add tests for a variety of MSA int binary ops

2019-03-07 Thread Mateja Marjanovic
From: Mateja Marjanovic These are regression tests for MSA integer binary operations. Mateja Marjanovic (5): target/mips: Add tests for a variety of MSA integer average instructions target/mips: Add tests for a variety of MSA integer divide instructions target/mips: Add tests for

Re: [Qemu-devel] [PATCHv2 0/2] curses: Add support for wide output

2019-03-07 Thread Gerd Hoffmann
On Mon, Mar 04, 2019 at 10:02:15PM +0100, Samuel Thibault wrote: > Hello, > > This adds support for wide output in the curses frontend > > Difference with previous version: > - Add more rationale in commit message > - Move charset option to curses-only section. Added to UI patch queue (the

[Qemu-devel] [PATCH v3 08/14] r2d: Fix flash memory size, sector size, width, device ID

2019-03-07 Thread Markus Armbruster
pflash_cfi02_register() takes a size in bytes, a block size in bytes and a number of blocks. r2d_init() passes FLASH_SIZE, 16 * KiB, FLASH_SIZE >> 16. Does not compute: size doesn't match block size * number of blocks. The latter happens to win: FLASH_SIZE / 4, i.e. 8MiB. The best information

[Qemu-devel] [PATCH v3 05/14] hw: Use PFLASH_CFI0{1, 2} and TYPE_PFLASH_CFI0{1, 2}

2019-03-07 Thread Markus Armbruster
We have two open-coded copies of macro PFLASH_CFI01(). Move the macro to the header, so we can ditch the copies. Move PFLASH_CFI02() to the header for symmetry. We define macros TYPE_PFLASH_CFI01 and TYPE_PFLASH_CFI02 for type name strings, then mostly use the strings. If the macros are worth

Re: [Qemu-devel] [PATCH v3 08/12] docs: Provide separate conf.py for each manual we want

2019-03-07 Thread Cleber Rosa
On Thu, Mar 07, 2019 at 12:29:08PM +, Peter Maydell wrote: > On Thu, 7 Mar 2019 at 12:14, Cleber Rosa wrote: > > > > On Thu, Mar 07, 2019 at 09:49:44AM +, Peter Maydell wrote: > > > On Thu, 7 Mar 2019 at 01:40, Cleber Rosa wrote: > > > Thanks for pointing out the tags functionality. That

[Qemu-devel] [PATCH v3 07/14] ppc405_boards: Don't size flash memory to match backing image

2019-03-07 Thread Markus Armbruster
Machine "ref405ep" maps its flash memory at address 2^32 - image size. Image size is rounded up to the next multiple of 64KiB. Useless, because pflash_cfi02_realize() fails with "failed to read the initial flash content" unless the rounding is a no-op. If the image size exceeds 0x8 Bytes, we

<    1   2   3   4   5   6   7   >