[Qemu-devel] [PATCH v2] dirty-bitmap: Expose persistent flag to 'query-block'

2019-02-04 Thread Eric Blake
Since qemu currently doesn't flush persistent bitmaps to disk until shutdown (which might be MUCH later), it's useful if 'query-block' at least shows WHICH bitmaps will (eventually) make it to persistent storage. Update affected iotests. Signed-off-by: Eric Blake Reviewed-by: Vladimir Sementsov-

Re: [Qemu-devel] [PATCH] hw/input/tsc210x: Fix building with no verbosity

2019-02-04 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190204204517.23698-1-phi...@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 BEGIN === #!

[Qemu-devel] [PATCH] hw/input/tsc210x: Fix building with no verbosity

2019-02-04 Thread Philippe Mathieu-Daudé
When building with TSC_VERBOSE not defined, we get: CC arm-softmmu/hw/input/tsc210x.o hw/input/tsc210x.c: In function ‘tsc2102_data_register_write’: hw/input/tsc210x.c:554:5: error: label at end of compound statement default: ^~~ hw/input/tsc210x.c: In f

[Qemu-devel] [PATCH v2 2/6] mips: Express dependencies of the Jazz machine with kconfig

2019-02-04 Thread Philippe Mathieu-Daudé
The Jazz use the RC4030 Asic to provide an EISA bus and DMA/IRQ. The framebuffer display is managed by a G364, the network card is a Sonic DP83932. A QLogic ESP216 provides a SCSI bus. Signed-off-by: Philippe Mathieu-Daudé --- default-configs/mips-softmmu-common.mak | 1 - default-configs/mips6

[Qemu-devel] [PATCH v2 5/6] hw/pci-host: Use CONFIG_PCI_BONITO to select the Bonito North Bridge

2019-02-04 Thread Philippe Mathieu-Daudé
Ease the kconfig selection by introducing CONFIG_PCI_BONITO to select the Bonito North Bridge. Signed-off-by: Philippe Mathieu-Daudé --- default-configs/mips64el-softmmu.mak | 1 + hw/pci-host/Kconfig | 4 hw/pci-host/Makefile.objs| 2 +- 3 files changed, 6 inse

[Qemu-devel] [PATCH v2 3/6] mips: Express dependencies of the r4k platform with kconfig

2019-02-04 Thread Philippe Mathieu-Daudé
This platform use standard PC devices connected to an ISA bus. Networking is provided by a ne2000 chipset. Signed-off-by: Philippe Mathieu-Daudé --- hw/mips/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/hw/mips/Kconfig b/hw/mips/Kconfig index ab006477c7..ee6290d497 1006

[Qemu-devel] [PATCH v2 6/6] mips: Express dependencies of the Loongson 2E machine with kconfig

2019-02-04 Thread Philippe Mathieu-Daudé
The Loongson 2E uses a Bonito64 system controller as North Bridge and a VT82C686 chipset as South Bridge. The network card chipset is a RTL8139D. Signed-off-by: Philippe Mathieu-Daudé --- default-configs/mips64el-softmmu.mak | 3 --- hw/isa/Kconfig | 13 + hw/m

[Qemu-devel] [PATCH v2 4/6] mips: Express dependencies of the Boston machine with kconfig

2019-02-04 Thread Philippe Mathieu-Daudé
Boston is built around a Xilinx FPGA, which includes a PCIe root port and an UART. An Intel EG20T PCH connects the I/O peripherals, but only the SATA bus is emulated. Signed-off-by: Philippe Mathieu-Daudé --- default-configs/mips64el-softmmu.mak | 4 hw/mips/Kconfig | 5

[Qemu-devel] [PATCH v2 0/6] Kconfig dependencies for MIPS machines (but Malta)

2019-02-04 Thread Philippe Mathieu-Daudé
Express the MIPS machine dependencies with Kconfig. Due to the complexity of the PIIX codebase being shared with the X86 machines, the Malta board fill follow in a different series (after some refactor cleanup). v2: - Do not remove machines from the default config (Thomas) - Corrected comment abo

[Qemu-devel] [PATCH v2 1/6] mips: Express dependencies of the MIPSsim machine with kconfig

2019-02-04 Thread Philippe Mathieu-Daudé
The MIPSsim machine only emulates an 8250 UART and a simple network controller, connected via an ISA bus. Signed-off-by: Philippe Mathieu-Daudé --- default-configs/mips-softmmu-common.mak | 1 - hw/mips/Kconfig | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) dif

Re: [Qemu-devel] [qemu-s390x] [PATCH v2 3/6] s390x/pci: Warn when adding PCI devices without the 'zpci' feature

2019-02-04 Thread Collin Walling
On 1/30/19 10:57 AM, David Hildenbrand wrote: We decided to always create the PCI host bridge, even if 'zpci' is not enabled (due to migration compatibility). This however right now allows to add zPCI/PCI devices to a VM although the guest will never actually see them, confusing people that are u

Re: [Qemu-devel] [PATCH 6/6] mips: Express dependencies of the Loongson 2E machine with kconfig

2019-02-04 Thread Philippe Mathieu-Daudé
Hi Thomas, On 2/4/19 9:46 AM, Thomas Huth wrote: > On 2019-02-03 23:07, Philippe Mathieu-Daudé wrote: >> The Loongson 2E uses a Bonito64 system controller as North Bridge and a >> VT82C686 chipset as South Bridge. The network card chipset is a RTL8139D. >> >> Signed-off-by: Philippe Mathieu-Daudé

Re: [Qemu-devel] [PATCH] dirty-bitmap: Expose persistent flag to 'query-block'

2019-02-04 Thread John Snow
On 2/4/19 11:09 AM, Eric Blake wrote: > Since qemu currently doesn't flush persistent bitmaps to disk until > shutdown (which might be MUCH later), it's useful if 'query-block' > at least shows WHICH bitmaps will (eventually) make it to persistent > storage. > > Signed-off-by: Eric Blake > ---

Re: [Qemu-devel] [PATCH 10/15] s390-bios: Support for running format-0/1 channel programs

2019-02-04 Thread Farhan Ali
On 02/04/2019 06:13 AM, Cornelia Huck wrote: On Thu, 31 Jan 2019 12:31:00 -0500 Farhan Ali wrote: On 01/29/2019 08:29 AM, Jason J. Herne wrote: Add struct for format-0 ccws. Support executing format-0 channel programs and waiting for their completion before continuing execution. This will

Re: [Qemu-devel] [PULL 50/77] build: actually use CONFIG_PAM

2019-02-04 Thread Philippe Mathieu-Daudé
Hi Paolo, On 2/4/19 7:35 PM, Paolo Bonzini wrote: > Do not link it unconditionally into all binaries. > > Signed-off-by: Paolo Bonzini > Signed-off-by: Yang Zhong > Reviewed-by: Thomas Huth > Message-Id: <20190202072456.6468-6-yang.zh...@intel.com> > Signed-off-by: Paolo Bonzini I did review

Re: [Qemu-devel] [PATCH v3 1/6] vfio-ccw: make it safe to access channel programs

2019-02-04 Thread Eric Farman
On 01/30/2019 08:22 AM, Cornelia Huck wrote: When we get a solicited interrupt, the start function may have been cleared by a csch, but we still have a channel program structure allocated. Make it safe to call the cp accessors in any case, so we can call them unconditionally. While at it, als

Re: [Qemu-devel] [PATCH] dirty-bitmap: Expose persistent flag to 'query-block'

2019-02-04 Thread John Snow
On 2/4/19 11:09 AM, Eric Blake wrote: > Since qemu currently doesn't flush persistent bitmaps to disk until > shutdown (which might be MUCH later), it's useful if 'query-block' > at least shows WHICH bitmaps will (eventually) make it to persistent > storage. > > Signed-off-by: Eric Blake Agre

Re: [Qemu-devel] [PATCH v3 4/5] tests/uefi-test-tools: add build scripts

2019-02-04 Thread Philippe Mathieu-Daudé
Hi Michael, On 2/4/19 8:32 PM, Michael S. Tsirkin wrote: > On Mon, Feb 04, 2019 at 07:41:38PM +0100, Laszlo Ersek wrote: >> On 02/04/19 18:47, Michael S. Tsirkin wrote: >>> On Mon, Feb 04, 2019 at 05:03:24PM +0100, Laszlo Ersek wrote: Introduce the following build scripts under "tests/uefi-t

[Qemu-devel] [PATCH 00/11] target/xtensa: SMP updates and various fixes

2019-02-04 Thread Max Filippov
) are available in the git repository at: git://github.com/OSLL/qemu-xtensa.git tags/20190204-xtensa for you to fetch changes up to 174e09b73ab1c47408dd29fb36c4dd9fbda54f97: hw/xtensa: xtfpga: raise CPU number limit (2019-01-28 11:5

Re: [Qemu-devel] [PATCH v2] block/dirty-bitmap: Documentation and Comment fixups

2019-02-04 Thread John Snow
On 2/4/19 10:00 AM, Eric Blake wrote: > On 2/1/19 7:10 PM, John Snow wrote: >> The meaning of the states has changed subtly over time, >> this should bring the understanding more in-line with the >> current, actual usages. >> >> Reported-by: Eric Blake >> Signed-off-by: John Snow >> >> --- >>

Re: [Qemu-devel] [PATCH v3 4/5] tests/uefi-test-tools: add build scripts

2019-02-04 Thread Michael S. Tsirkin
On Mon, Feb 04, 2019 at 07:41:38PM +0100, Laszlo Ersek wrote: > On 02/04/19 18:47, Michael S. Tsirkin wrote: > > On Mon, Feb 04, 2019 at 05:03:24PM +0100, Laszlo Ersek wrote: > >> Introduce the following build scripts under "tests/uefi-test-tools": > >> > >> * "build.sh" builds a single module (a U

[Qemu-devel] [PULL 59/77] hw/sparc/Makefile.objs: CONFIG_* for sun4m and leon3 created

2019-02-04 Thread Paolo Bonzini
From: Ákos Kovács CONFIG_LEON3 added to default-configs/sparc-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-15-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/sparc-softmmu.mak | 2 ++ hw

Re: [Qemu-devel] [PULL 00/25] pci, pc, virtio: fixes, cleanups, features

2019-02-04 Thread Michael S. Tsirkin
On Mon, Feb 04, 2019 at 05:59:16PM +, Peter Maydell wrote: > On Mon, 4 Feb 2019 at 14:43, Michael S. Tsirkin wrote: > > > > The following changes since commit b3fc0af1ff5e922d4dd7c875394dbd26dc7313b4: > > > > Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into > > staging (2

[Qemu-devel] [PULL 66/77] hw/cris/Makefile.objs: Create CONFIG_* for cris

2019-02-04 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/cris-sofmmu.mak. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-22-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/cris-softmmu.mak | 1 + hw/cris

[Qemu-devel] [PULL 73/77] i386: hvf: Fix smp boot hangs

2019-02-04 Thread Paolo Bonzini
From: Heiher The machine that with hvf accelerator and smp sometimes boot hangs because all processors are executing instructions at startup, including early I/O emulations. We should just allow the bootstrap processor to initialize the machine and then to wake up slave processors by interrupt.

[Qemu-devel] [PULL 77/77] queue: fix QTAILQ_FOREACH_REVERSE_SAFE

2019-02-04 Thread Paolo Bonzini
The iteration was stopping as soon as prev_var was set to NULL, and therefore it skipped the first element. Fortunately, or unfortunately, we have only one use of QTAILQ_FOREACH_REVERSE_SAFE. Thus this only showed up as incorrect register preferences on the very first translation block that was c

Re: [Qemu-devel] [Qemu-arm] [PATCH v10 10/14] target/arm: Finish implementation of PM[X]EVCNTR and PM[X]EVTYPER

2019-02-04 Thread Laurent Desnogues
Hello, On Tue, Dec 11, 2018 at 4:25 PM Aaron Lindsay wrote: > > Add arrays to hold the registers, the definitions themselves, access > functions, and logic to reset counters when PMCR.P is set. Update > filtering code to support counters other than PMCCNTR. Support migration > with raw read/write

[Qemu-devel] [PULL 58/77] hw/s390/Makefile.objs: Create new CONFIG_* variables for s390x boards and devices

2019-02-04 Thread Paolo Bonzini
Make hw/s390x configurable and add new CONFIG_* to the default-configs/s390x*-softmmu.mak. This will be used to enable/disable vfio-ccw. Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-14-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-conf

Re: [Qemu-devel] [PATCH 33/52] build: switch to Kconfig

2019-02-04 Thread Paolo Bonzini
On 04/02/19 16:45, Anthony PERARD wrote: > I've tested the series, and here is the first issue: > CC hw/9pfs/xen-9p-backend.o > LINKi386-softmmu/qemu-system-i386 > /usr/bin/ld: ../hw/xen/xen-legacy-backend.o: in function > `xen_be_register_common': > xen-legacy-backend.c:(.text+0x1cb6

[Qemu-devel] [PULL 63/77] hw/riscv/Makefile.objs: Create CONFIG_* for riscv boards

2019-02-04 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/riscv*-sofmmu.mak. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Alistair Francis Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-19-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-config

[Qemu-devel] [PULL 68/77] hw/moxie/Makefile.objs: Conditionally build moxie

2019-02-04 Thread Paolo Bonzini
From: Yang Zhong CONFIG_MOXIE added for moxiesim board. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-24-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/moxie-softmmu.mak | 1 + hw/moxie/Makefile.objs

[Qemu-devel] [PULL 61/77] hw/xtensa/Makefile.objs: Build xtensa_sim and xtensa_fpga conditionally

2019-02-04 Thread Paolo Bonzini
From: Ákos Kovács Add the new CONFIG_* values to default-config/xtensa*-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Acked-by: Max Filippov Message-Id: <20190202072456.6468-17-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-co

Re: [Qemu-devel] [PATCH v3 4/5] tests/uefi-test-tools: add build scripts

2019-02-04 Thread Laszlo Ersek
On 02/04/19 18:47, Michael S. Tsirkin wrote: > On Mon, Feb 04, 2019 at 05:03:24PM +0100, Laszlo Ersek wrote: >> Introduce the following build scripts under "tests/uefi-test-tools": >> >> * "build.sh" builds a single module (a UEFI application) from >> UefiTestToolsPkg, for a single QEMU emulation

[Qemu-devel] [PULL 57/77] hw/sh4/Makefile.objs: New CONFIG_* varibales created for sh4 boards and device

2019-02-04 Thread Paolo Bonzini
From: Ákos Kovács Make hw/sh4 configurable and add new CONFIG_* to the default-configs/sh4*-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-13-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-config

[Qemu-devel] [PULL 65/77] hw/alpha/Makefile.objs: Create CONFIG_* for alpha

2019-02-04 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/alpha-sofmmu.mak. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson Message-Id: <20190202072456.6468-21-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-config

[Qemu-devel] [PULL 74/77] pc: Use hotplug_handler_(plug|unplug|unplug_request)

2019-02-04 Thread Paolo Bonzini
From: David Hildenbrand Let's avoid manually looking up the hotplug handler class. Use the existing wrappers instead. Signed-off-by: David Hildenbrand Message-Id: <20181212095707.19358-1-da...@redhat.com> Signed-off-by: Paolo Bonzini --- hw/i386/pc.c | 30 -- 1 fil

[Qemu-devel] [PULL 71/77] hw/i2c/Makefile.objs: Create new CONFIG_* variables for EEPROM and ACPI controller

2019-02-04 Thread Paolo Bonzini
Create separate variables for these components, they are used in many boards but not all. This allows finer-grain selection of the included code with default-configs/*.mak. Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-27-yang.zh...@intel.com> Signed-off

[Qemu-devel] [PULL 53/77] hw/m68k/Makefile.objs: Conditionally build boards

2019-02-04 Thread Paolo Bonzini
From: Ákos Kovács CONFIG_AN5206, CONFIG_MCF5206 and CONFIG_MCF5208 make variables created for m68k boards, and added to default-configs/m86k-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-9-yang.zh...@intel.com> S

[Qemu-devel] [PULL 72/77] hw/vfio/Makefile.objs: Create new CONFIG_* variables for VFIO core and PCI

2019-02-04 Thread Paolo Bonzini
Make hw/vfio configurable and add new CONFIG_VFIO_* to the default-configs/s390x*-softmmu.mak. This allow a finer-grain selection of the various VFIO backends. Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-28-yang.zh...@intel.com> Signed-off-by: Paolo Bo

[Qemu-devel] [PULL 55/77] hw/mips/Makefile.objs: Create CONFIG_* for r4k, malta, mipssim boards

2019-02-04 Thread Paolo Bonzini
From: Ákos Kovács Add the new configs to default-configs/mips*-sofmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-11-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/m

[Qemu-devel] [PULL 54/77] hw/microblaze/Makefile.objs: Create configs for petalogix and xilinx boards

2019-02-04 Thread Paolo Bonzini
From: Ákos Kovács CONFIG_PETALOGIX_* and CONFIG_XLNX_* configs added to default-configs/microblaze-softmmu.mak and default-configs/microblazeel-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-10-yang.zh...@intel.c

[Qemu-devel] [PULL 64/77] hw/sparc64/Makefile.objs: Create CONFIG_* for sparc64

2019-02-04 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/sparc64-sofmmu.mak. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-20-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/sparc64-softmmu.mak | 2 ++

[Qemu-devel] [PULL 69/77] hw/openrisc/Makefile.objs: Create CONFIG_* for openrisc

2019-02-04 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/or1k-sofmmu.mak. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-25-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/or1k-softmmu.mak | 1 + hw/open

[Qemu-devel] [PULL 45/77] qemu-options: Remove deprecated "-virtioconsole" option

2019-02-04 Thread Paolo Bonzini
It's been deprecated since QEMU 3.0, and nobody complained so far, so it is time to remove this option now. Signed-off-by: Thomas Huth Message-Id: <1544684731-18828-1-git-send-email-th...@redhat.com> Signed-off-by: Paolo Bonzini --- docs/qdev-device-use.txt | 4 include/hw/boards.h |

[Qemu-devel] [PULL 56/77] hw/ppc/Makefile.objs: Build all boards conditinally with CONFIG_*

2019-02-04 Thread Paolo Bonzini
From: Ákos Kovács CONFIG_PPC405, CONFIG_PPC440, CONFIG_MAC_OLDWORLD, CONFIG_MAX_NEWWORLD and CONFIG_VIRTEX configuration options created for default-configs/ppc*-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth Message-Id

[Qemu-devel] [PULL 60/77] hw/lm32/Makefile.objs: Conditionally build lm32 and milkmyst

2019-02-04 Thread Paolo Bonzini
From: Ákos Kovács CONFIG_LM32 and CONFIG_MILKYMIST added for lm32 and milkmyst build. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-16-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- hw/lm32/Makefile.objs | 4 ++-- 1

[Qemu-devel] [PULL 48/77] vfio: move conditional up to hw/Makefile.objs

2019-02-04 Thread Paolo Bonzini
Instead of wrapping the entire Makefile.objs with an ifeq/endif, just include the directory only for Linux. Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-4-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 2 +- hw/vfio/Make

[Qemu-devel] [PULL 52/77] hw/arm/Makefile.objs: CONFIG_ARM_VIRT created for virt board

2019-02-04 Thread Paolo Bonzini
From: Yang Zhong Make ARM virt code configurable and the new CONFIG_ARM_VIRT definitions added to the default-configs/arm-softmmu.mak. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-8-yang.zh...@

[Qemu-devel] [PULL 62/77] hw/nios2/Makefile.objs: Conditionally build nios2

2019-02-04 Thread Paolo Bonzini
From: Yang Zhong CONFIG_NIOS2_10M50 added for 10m50 dev board. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-18-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/nios2-softmmu.mak | 1 + hw/nios2/Makefil

[Qemu-devel] [PULL 44/77] Remove deprecated -enable-hax option

2019-02-04 Thread Paolo Bonzini
From: Thomas Huth Our command line interface is really quite overcrowded, we should avoid duplicated options that do the same thing in just a slightly different way. "-accel hax" is shorter and more generic that "-enable-hax", so there is really no real usage for the latter option. "-enable-hax"

[Qemu-devel] [PULL 50/77] build: actually use CONFIG_PAM

2019-02-04 Thread Paolo Bonzini
Do not link it unconditionally into all binaries. Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-6-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/i386-softmmu.mak | 1 + hw/pci-host/Makefile.objs

[Qemu-devel] [PULL 67/77] hw/hppa/Makefile.objs: Create CONFIG_* for hppa

2019-02-04 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/hppa-sofmmu.mak. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Richard Henderson Message-Id: <20190202072456.6468-23-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/hppa-softmmu.mak | 1 + h

[Qemu-devel] [PULL 40/77] docker: adjust Xen repository for CentOS 7

2019-02-04 Thread Paolo Bonzini
The Xen repository is failing to install, pick the right name for the release package. Signed-off-by: Paolo Bonzini --- tests/docker/dockerfiles/centos7.docker | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/docker/dockerfiles/centos7.docker b/tests/docker/docker

[Qemu-devel] [PULL 35/77] ui: vnc: finish removing TABs

2019-02-04 Thread Paolo Bonzini
Suggested-by: Daniel P. Berrange Signed-off-by: Paolo Bonzini --- ui/vnc-enc-hextile-template.h | 268 ++-- ui/vnc-enc-zywrle.h | 394 +- 2 files changed, 331 insertions(+), 331 deletions(-) diff --git a/ui/vnc-enc-hextil

[Qemu-devel] [PULL 47/77] ide: split ioport registration to a separate file

2019-02-04 Thread Paolo Bonzini
This is not needed on ARM, and brings in ISA bus code which is otherwise not necessary. Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-3-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- hw/ide/Makefile.objs | 4 ++-- hw/ide/core.c| 25

[Qemu-devel] [PULL 39/77] i386: allow to load initrd below 4 GB for recent linux

2019-02-04 Thread Paolo Bonzini
From: Li Zhijian Since linux commit: cf8fa920cb42 ("i386: handle an initrd in highmem (version 2)") linux has supported initrd up to 4 GB, but the header field ramdisk_max is still set to 2 GB to avoid "possible bootloader bugs". When use '-kernel vmlinux -initrd initrd.cgz' to launch a VM, the

[Qemu-devel] [PULL 12/77] elf: Add optional function ptr to load_elf() to parse ELF notes

2019-02-04 Thread Paolo Bonzini
From: Liam Merwick This patch adds an optional function pointer, 'elf_note_fn', to load_elf() which causes load_elf() to additionally parse any ELF program headers of type PT_NOTE and check to see if the ELF Note is of the type specified by the 'translate_opaque' arg. If a matching ELF Note is fo

[Qemu-devel] [PULL 49/77] hw/pci-host/Makefile.objs: make CONFIGS clear for PCI EXPRESS

2019-02-04 Thread Paolo Bonzini
From: Yang Zhong Change the CONFIGs for PCI EXPRESS and make module name more clear for code files. Signed-off-by: Yang Zhong Cc: Michael S. Tsirkin Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-5-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --

[Qemu-devel] [PULL 75/77] scsi-disk: Convert from DPRINTF() macro to trace events

2019-02-04 Thread Paolo Bonzini
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-Id: <20181211163105.31834-2-lviv...@redhat.com> Signed-off-by: Paolo Bonzini --- hw/scsi/scsi-disk.c | 103 +-- hw

[Qemu-devel] [PULL 36/77] unify len and addr type for memory/address APIs

2019-02-04 Thread Paolo Bonzini
From: Li Zhijian Some address/memory APIs have different type between 'hwaddr/target_ulong addr' and 'int len'. It is very unsafe, especially some APIs will be passed a non-int len by caller which might cause overflow quietly. Below is an potential overflow case: dma_memory_read(uint32_t len)

[Qemu-devel] [PULL 32/77] configure: enable elf2dmp build for Windows hosts

2019-02-04 Thread Paolo Bonzini
From: Viktor Prutyanov After this patch contrib/elf2dmp can be built for Windows x86 and x86_64 hosts by mingw. Signed-off-by: Viktor Prutyanov Message-Id: <20181220012441.13694-7-viktor.prutya...@phystech.edu> Signed-off-by: Paolo Bonzini --- Makefile | 4 ++-- configure | 4 ++-- 2 files c

[Qemu-devel] [PULL 42/77] gdbstub: Fix i386/x86_64 machine description and add control registers

2019-02-04 Thread Paolo Bonzini
From: Doug Gale The machine description we send is being (silently) thrown on the floor by GDB and GDB silently uses the default machine description, because the xml parse fails on nested within . Changes to the xml in qemu source code have no effect. In addition, the default machine descriptio

[Qemu-devel] [PULL 70/77] hw/tricore/Makefile.objs: Create CONFIG_* for tricore

2019-02-04 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/tricore-sofmmu.mak. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-26-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/tricore-softmmu.mak | 1 + h

[Qemu-devel] [PULL 30/77] contrib/elf2dmp: fix structures definitions

2019-02-04 Thread Paolo Bonzini
From: Viktor Prutyanov Remove duplicate structures definitions in case of build for Windows hosts. Signed-off-by: Viktor Prutyanov Message-Id: <20181220012441.13694-5-viktor.prutya...@phystech.edu> Signed-off-by: Paolo Bonzini --- contrib/elf2dmp/kdbg.h | 12 contrib/elf2dmp/pdb.

[Qemu-devel] [PULL 38/77] i386: import & use bootparam.h

2019-02-04 Thread Paolo Bonzini
From: Li Zhijian it's from v4.20-rc5. CC: Stefano Garzarella CC: Michael S. Tsirkin Signed-off-by: Li Zhijian Reviewed-by: Michael S. Tsirkin Reviewed-by: Stefano Garzarella Signed-off-by: Paolo Bonzini --- hw/i386/pc.c | 8 +-- include/standard-header

[Qemu-devel] [PULL 51/77] hw/i386/Makefile.objs: Build pc_piix* and pc_q35 boards

2019-02-04 Thread Paolo Bonzini
CONFIG_PIIX and CONFIG_Q35 created for the pc board object files. These are enabled automatically at default-configs/i386-softmmu.mak and default-configs/x86_64-softmmu.mak Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190202072456.6468-7-yang.z

[Qemu-devel] [PULL 43/77] scsi-generic: avoid possible out-of-bounds access to r->buf

2019-02-04 Thread Paolo Bonzini
Whenever the allocation length of a SCSI request is shorter than the size of the VPD page list, page_idx is used blindly to index into r->buf. Even though the stores in the insertion sort are protected against overflows, the same is not true of the reads and the final store of 0xb0. This basical

[Qemu-devel] [PULL 25/77] Revert "i386: Add CPUID bit for PCONFIG"

2019-02-04 Thread Paolo Bonzini
From: Robert Hoo This reverts commit 5131dc433df54b37e8e918d8fba7fe10344e7a7b. For new instruction 'PCONFIG' will not be exposed to guest. Signed-off-by: Robert Hoo Message-Id: <1545227081-213696-3-git-send-email-robert...@linux.intel.com> Signed-off-by: Paolo Bonzini --- target/i386/cpu.c |

[Qemu-devel] [PULL 18/77] linuxboot_dma: move common functions in a new header

2019-02-04 Thread Paolo Bonzini
From: Stefano Garzarella In order to allow other option roms to use these common useful functions and definitions, this patch put them in two new C header files called optrom.h and optrom_fw_cfg.h. We also add useful out*() in*() functions for different size, and new fw_cfg functions to use when

[Qemu-devel] [PULL 46/77] arm: disable CONFIG_SERIAL_ISA

2019-02-04 Thread Paolo Bonzini
ARM should not have an ISA bus, this device should not be enabled. Kconfig allows to clean up the dependencies and remove CONFIG_ISA_BUS=y from ARM, and then catches a contradiction between the hardcoded CONFIG_SERIAL_ISA=y and CONFIG_ISA_BUS=n. Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Hu

[Qemu-devel] [PULL 41/77] i386: hvf: Don't miss 16-bit displacement

2019-02-04 Thread Paolo Bonzini
From: Roman Bolshakov In 16-bit addressing mode, when Mod = 0 and R/M = 6, decoded displacement doesn't reach decode_linear_addr and gets lost. Instructions that involve the combination of ModRM always get a pointer with zero offset from the beginning of DS segment. The change fixes drawing in F

[Qemu-devel] [PULL 05/77] vhost-user-test: skip if there is no memory at address 0

2019-02-04 Thread Paolo Bonzini
The virt machine cannot run the vhost-user qtests because they hardcode the presence of memory at address 0. Report the tests as a skip so that they can be converted to use qgraph. Reviewed-by: Marc-André Lureau Signed-off-by: Paolo Bonzini Message-Id: <1543851204-41186-11-git-send-email-pbonz.

[Qemu-devel] [PULL 26/77] target-i386: hvf: remove MPX support

2019-02-04 Thread Paolo Bonzini
MPX support is being phased out by Intel and actually I am not sure that OS X has ever enabled it in XCR0. Drop it from the Hypervisor.framework acceleration. Signed-off-by: Paolo Bonzini --- target/i386/hvf/x86_cpuid.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) d

[Qemu-devel] [PULL 34/77] crypto: finish removing TABs

2019-02-04 Thread Paolo Bonzini
Suggested-by: Daniel P. Berrange Signed-off-by: Paolo Bonzini --- crypto/aes.c| 414 +++ crypto/desrfb.c | 594 2 files changed, 504 insertions(+), 504 deletions(-) diff --git a/crypto/aes.c b/crypt

[Qemu-devel] [PULL 33/77] monitor: do not use QTAILQ_FOREACH_SAFE across critical sections

2019-02-04 Thread Paolo Bonzini
monitor_qmp_requests_pop_any_with_lock cannot modify the monitor list concurrently with monitor_cleanup, since the dispatch bottom half runs in the main thread, but anyway it is a bit ugly to keep "next" live across critical sections of monitor_lock and Coverity complains (CID 1397072). Replace QT

[Qemu-devel] [PULL 14/77] pvh: Add x86/HVM direct boot ABI header file

2019-02-04 Thread Paolo Bonzini
From: Liam Merwick The x86/HVM direct boot ABI permits Qemu to be able to boot directly into the uncompressed Linux kernel binary with minimal firmware involvement. https://xenbits.xen.org/docs/unstable/misc/pvh.html This commit adds the header file that defines the start_info struct th

[Qemu-devel] [PULL 22/77] hw/i386/pc: enable PVH only for machine type >= 4.0

2019-02-04 Thread Paolo Bonzini
From: Stefano Garzarella In order to avoid migration issues, we enable PVH only for machine type >= 4.0 Suggested-by: Michael S. Tsirkin Signed-off-by: Stefano Garzarella Signed-off-by: Paolo Bonzini --- hw/i386/pc.c | 4 +++- hw/i386/pc_piix.c| 3 +++ hw/i386/pc_q35.c | 3 ++

[Qemu-devel] [PULL 37/77] hw/core/loader.c: Read as long as possible in load_image_size()

2019-02-04 Thread Paolo Bonzini
From: Li Zhijian Don't expect read(2) can always read as many as it's told. CC: Richard Henderson CC: Stefano Garzarella Signed-off-by: Li Zhijian Reviewed-by: Richard Henderson Reviewed-by: Stefano Garzarella Signed-off-by: Paolo Bonzini --- hw/core/loader.c | 11 +-- 1 file chan

[Qemu-devel] [PULL 21/77] optionrom/pvh: load initrd from fw_cfg

2019-02-04 Thread Paolo Bonzini
From: Stefano Garzarella If we found initrd through fw_cfg, we can load it and use the first module of hvm_start_info to pass initrd address and size to the kernel. Signed-off-by: Stefano Garzarella Reviewed-by: Stefan Hajnoczi Reviewed-by: Liam Merwick Based-on: <1547554687-12687-1-git-send-

[Qemu-devel] [PULL 28/77] contrib/elf2dmp: use GLib in ELF processing

2019-02-04 Thread Paolo Bonzini
From: Viktor Prutyanov Replace POSIX mmap with GLib g_mapped_file_new in ELF processing module to make elf2dmp cross-platform. Signed-off-by: Viktor Prutyanov Message-Id: <20181220012441.13694-3-viktor.prutya...@phystech.edu> Signed-off-by: Paolo Bonzini --- contrib/elf2dmp/qemu_elf.c | 27 ++

[Qemu-devel] [PULL 20/77] hw/i386/pc: use PVH option rom

2019-02-04 Thread Paolo Bonzini
From: Stefano Garzarella Use pvh.bin option rom when we are booting an uncompressed kernel using the x86/HVM direct boot ABI. Signed-off-by: Stefano Garzarella Reviewed-by: Stefan Hajnoczi Reviewed-by: Liam Merwick Based-on: <1547554687-12687-1-git-send-email-liam.merw...@oracle.com> Signed-o

[Qemu-devel] [PULL 16/77] pvh: load initrd and expose it through fw_cfg

2019-02-04 Thread Paolo Bonzini
From: Stefano Garzarella When initrd is specified, load and expose it to the guest firmware through fw_cfg. The firmware will fill the hvm_start_info for the kernel. Signed-off-by: Stefano Garzarella Based-on: <1545422632-2-5-git-send-email-liam.merw...@oracle.com> Signed-off-by: Liam Merwi

[Qemu-devel] [PULL 29/77] contrib/elf2dmp: use GLib in PDB processing

2019-02-04 Thread Paolo Bonzini
From: Viktor Prutyanov Replace POSIX mmap with GLib g_mapped_file_new in PDB processing stage to make elf2dmp cross-platform. There are no direct POSIX in elf2dmp after this patch. Signed-off-by: Viktor Prutyanov Message-Id: <20181220012441.13694-4-viktor.prutya...@phystech.edu> Signed-off-by:

[Qemu-devel] [PULL 15/77] pvh: Boot uncompressed kernel using direct boot ABI

2019-02-04 Thread Paolo Bonzini
From: Liam Merwick These changes (along with corresponding Linux kernel and qboot changes) enable a guest to be booted using the x86/HVM direct boot ABI. This commit adds a load_elfboot() routine to pass the size and location of the kernel entry point to qboot (which will fill in the start_info

[Qemu-devel] [PULL 13/77] elf-ops.h: Add get_elf_note_type()

2019-02-04 Thread Paolo Bonzini
From: Liam Merwick Introduce a routine which, given a pointer to a range of ELF Notes, searches through them looking for a note matching the type specified and returns a pointer to the matching ELF note. get_elf_note_type() is used by elf_load[32|64]() to find the specified note type required by

[Qemu-devel] [PULL 24/77] i386: remove the 'INTEL_PT' CPUID bit from named CPU models

2019-02-04 Thread Paolo Bonzini
Processor tracing is not yet implemented for KVM and it will be an opt in feature requiring a special module parameter. Disable it, because it is wrong to enable it by default and it is impossible that no one has ever used it. Cc: qemu-sta...@nongnu.org Signed-off-by: Paolo Bonzini --- target/i3

[Qemu-devel] [PULL 17/77] linuxboot_dma: remove duplicate definitions of FW_CFG

2019-02-04 Thread Paolo Bonzini
From: Stefano Garzarella FW_CFG_DMA_CTL_* bits and struct fw_cfg_dma_access are defined in the qemu_fw_cfg.h header file already included in linuxboot_dma.c, so we can remove the definition of BIOS_CFG_DMA_CTL_* and struct FWCfgDmaAccess. Signed-off-by: Stefano Garzarella Reviewed-by: Stefan Ha

[Qemu-devel] [PULL 19/77] optionrom: add new PVH option rom

2019-02-04 Thread Paolo Bonzini
From: Stefano Garzarella The new pvh.bin option rom can be used with SeaBIOS to boot uncompressed kernel using the x86/HVM direct boot ABI. pvh.S contains the entry point of the option rom. It runs in real mode, loads the e820 table querying the BIOS, and then it switches to 32bit protected mode

[Qemu-devel] [PULL 09/77] cpu-exec: reset BQL after longjmp in cpu_exec_step_atomic

2019-02-04 Thread Paolo Bonzini
From: "Emilio G. Cota" Just like we do in cpu_exec(). Reported-by: Max Filippov Tested-by: Max Filippov Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- accel/tcg/cpu-exec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/accel/tcg/cpu-ex

[Qemu-devel] [PULL 03/77] vhost-user: support cross-endian vnet headers

2019-02-04 Thread Paolo Bonzini
vhost-user already has a way to communicate the endianness of the guest via the vring endianness messages. The vring endianness always matches the vnet header endianness so there is no need to do anything else in the backend. Reviewed-by: Marc-André Lureau Signed-off-by: Paolo Bonzini Message-I

[Qemu-devel] [PULL 23/77] i386: remove the new CPUID 'PCONFIG' from Icelake-Server CPU model

2019-02-04 Thread Paolo Bonzini
From: Robert Hoo PCONFIG is not available to guests; it must be specifically enabled using the PCONFIG_ENABLE execution control. Disable it, because no one can ever use it. Signed-off-by: Robert Hoo Message-Id: <1545227081-213696-2-git-send-email-robert...@linux.intel.com> Cc: qemu-sta...@nong

[Qemu-devel] [PULL 27/77] contrib/elf2dmp: fix elf.h including

2019-02-04 Thread Paolo Bonzini
From: Viktor Prutyanov Before this patch QEMU elf.h was not actually included. Signed-off-by: Viktor Prutyanov Message-Id: <20181220012441.13694-2-viktor.prutya...@phystech.edu> Signed-off-by: Paolo Bonzini --- contrib/elf2dmp/qemu_elf.h | 8 1 file changed, 4 insertions(+), 4 deleti

[Qemu-devel] [PULL 07/77] tap: flush STDOUT on newline

2019-02-04 Thread Paolo Bonzini
This makes it easier to follow what is going on. Signed-off-by: Paolo Bonzini --- scripts/tap-driver.pl | 1 + scripts/tap-merge.pl | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/tap-driver.pl b/scripts/tap-driver.pl index 5e59b5d..6621a5c 100755 --- a/scripts/tap-driver.pl +++ b

[Qemu-devel] [PULL 08/77] cpu-exec: add assert_no_pages_locked() after longjmp

2019-02-04 Thread Paolo Bonzini
From: "Emilio G. Cota" We forgot to add this check in faa9372c07 ("translate-all: introduce assert_no_pages_locked", 2018-06-15); we only added it after returning from a longjmp in cpu_exec_step_atomic. Fix it. Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson Signed-off-by: Paolo B

[Qemu-devel] [PULL 10/77] configure: Add a proper check for openpty() in libutil

2019-02-04 Thread Paolo Bonzini
From: Thomas Huth On Linux (and maybe some BSDs), we require libutil for the openpty() function. However, this library is not available on some other systems, so we currently use a fragile if-statement in the configure script to check whether we need the library or not. Unfortunately, we also har

[Qemu-devel] [PULL 11/77] cpus: ignore ESRCH in qemu_cpu_kick_thread()

2019-02-04 Thread Paolo Bonzini
From: Laurent Vivier We can have a race condition between qemu_cpu_kick_thread() and qemu_kvm_cpu_thread_fn() when we hotunplug a CPU. In this case, qemu_cpu_kick_thread() can try to kick a thread that is exiting. pthread_kill() returns an error and qemu is stopped by an exit(1). qemu:qemu_cp

[Qemu-devel] [PULL 01/77] vhost-user-test: use g_cond_broadcast

2019-02-04 Thread Paolo Bonzini
g_cond_signal is rarely the right thing to do, it works now because vhost-user-test only has two threads but it is not correct in general. Fix it before adding more calls. Reviewed-by: Marc-André Lureau Signed-off-by: Paolo Bonzini Message-Id: <1543851204-41186-7-git-send-email-pbonz...@redhat.c

[Qemu-devel] [PULL 02/77] vhost-user-test: signal data_cond when s->rings changes

2019-02-04 Thread Paolo Bonzini
This speeds up wait_for_rings_started, which currently is just waiting for the timeout before checking s->rings. Reviewed-by: Marc-André Lureau Signed-off-by: Paolo Bonzini Message-Id: <1543851204-41186-8-git-send-email-pbonz...@redhat.com> --- tests/vhost-user-test.c | 2 ++ 1 file changed, 2

[Qemu-devel] [PULL 00/77] Misc patches for 2019-02-04

2019-02-04 Thread Paolo Bonzini
The following changes since commit 773c4a6228fd910556cee2d477ee56c591a3: test-filter-mirror: pass UNIX domain socket through fd (2019-02-04 16:03:20 +) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you to fetch changes up to 338412d

[Qemu-devel] [PULL 04/77] vhost-user-test: support VHOST_USER_PROTOCOL_F_CROSS_ENDIAN

2019-02-04 Thread Paolo Bonzini
This will be useful to run the qtest for ppc64 targets on (for example) x86_64 hosts. Reviewed-by: Marc-André Lureau Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <1543851204-41186-10-git-send-email-pbonz...@redhat.com> --- tests/vhost-user-test.c | 8 +--- 1 file chang

<    1   2   3   4   5   >