[Qemu-devel] [PATCH v1 26/27] hw/i2c/Makefile.objs: Create new CONFIG_* variables for EEPROM and ACPI controller

2019-01-30 Thread Yang Zhong
From: 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 --- default-configs/arm-softmmu.mak

[Qemu-devel] [PATCH v1 22/27] hw/hppa/Makefile.objs: Create CONFIG_* for hppa

2019-01-30 Thread 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 --- default-configs/hppa-softmmu.mak | 1 + hw/hppa/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 2/3] target/ppc: Add GDB callbacks for SPRs

2019-01-30 Thread Alexey Kardashevskiy
On 31/01/2019 03:30, Fabiano Rosas wrote: > Alexey Kardashevskiy writes: > >> >> but this is a register which does not have endianness, the endianness >> appears here because the interface between gdb and qemu is >> uint8_t*==bytestream but this interface should have fixed endianness >> imho

[Qemu-devel] [PATCH v1 21/27] hw/cris/Makefile.objs: Create CONFIG_* for cris

2019-01-30 Thread 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 --- default-configs/cris-softmmu.mak | 1 + hw/cris/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v1 19/27] hw/sparc64/Makefile.objs: Create CONFIG_* for sparc64

2019-01-30 Thread 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 --- default-configs/sparc64-softmmu.mak | 2 ++ hw/sparc64/Makefile.objs| 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff

[Qemu-devel] [PATCH v1 16/27] hw/xtensa/Makefile.objs: Build xtensa_sim and xtensa_fpga conditionally

2019-01-30 Thread Yang Zhong
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 --- default-configs/xtensa-softmmu.mak | 3 +++ default-configs/xtensaeb-softmmu.mak | 3 +++

[Qemu-devel] [PATCH v1 15/27] hw/lm32/Makefile.objs: Conditionally build lm32 and milkmyst

2019-01-30 Thread Yang Zhong
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 --- hw/lm32/Makefile.objs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/lm32/Makefile.objs

[Qemu-devel] [PATCH v1 13/27] hw/s390/Makefile.objs: Create new CONFIG_* variables for s390x boards and devices

2019-01-30 Thread Yang Zhong
From: 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 --- default-configs/s390x-softmmu.mak | 1 + hw/s390x/Makefile.objs| 2 +- 2 files changed, 2

Re: [Qemu-devel] [PATCH] scripts: use git archive in archive-source

2019-01-30 Thread Gerd Hoffmann
Hi, > > +git archive --format tar $HEAD > "$tar_file" > > +test $? -ne 0 && error "failed to archive qemu" > > for sm in $submodules; do > > -git submodule update --init $sm > > -test $? -ne 0 && error "failed to init submodule $sm" > > + git submodule update --init "$sm" > > The

Re: [Qemu-devel] [Qemu-block] [PATCH v3 1/1] drive-mirror: add incremental mode

2019-01-30 Thread 滴滴云
I am so sorry that the format problem has caused trouble for reviewers. I am very unfamiliar with the specification, but I will try my best to correct it. As for ‘Signed-off-by’, I didn't understand the meaning of 'signed-off-by' at first. But now I have created an ID of myself by using gpg,

[Qemu-devel] [PATCH v1 11/27] hw/ppc/Makefile.objs: Build all boards conditinally with CONFIG_*

2019-01-30 Thread Yang Zhong
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 ---

[Qemu-devel] [PATCH v1 25/27] hw/tricore/Makefile.objs: Create CONFIG_* for tricore

2019-01-30 Thread 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 --- default-configs/tricore-softmmu.mak | 1 + hw/tricore/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v1 20/27] hw/alpha/Makefile.objs: Create CONFIG_* for alpha

2019-01-30 Thread 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 --- default-configs/alpha-softmmu.mak | 1 + hw/alpha/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1

[Qemu-devel] [PATCH v1 17/27] hw/nios2/Makefile.objs: Conditionally build nios2

2019-01-30 Thread Yang Zhong
CONFIG_NIOS2_10M50 added for 10m50 dev board. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth --- default-configs/nios2-softmmu.mak | 1 + hw/nios2/Makefile.objs| 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v1 23/27] hw/moxie/Makefile.objs: Conditionally build moxie

2019-01-30 Thread Yang Zhong
CONFIG_MOXIE added for moxiesim board. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth --- default-configs/moxie-softmmu.mak | 1 + hw/moxie/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v1 09/27] hw/microblaze/Makefile.objs: Create configs for petalogix and xilinx boards

2019-01-30 Thread Yang Zhong
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 --- default-configs/microblaze-softmmu.mak | 3 +++

[Qemu-devel] [PATCH v1 06/27] hw/i386/Makefile.objs: Build pc_piix* and pc_q35 boards

2019-01-30 Thread Yang Zhong
From: 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 ---

[Qemu-devel] [PATCH v1 18/27] hw/riscv/Makefile.objs: Create CONFIG_* for riscv boards

2019-01-30 Thread 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 --- default-configs/riscv32-softmmu.mak | 7 +++ default-configs/riscv64-softmmu.mak | 7 +++ hw/riscv/Makefile.objs | 22

[Qemu-devel] [PATCH v1 12/27] hw/sh4/Makefile.objs: New CONFIG_* varibales created for sh4 boards and device

2019-01-30 Thread Yang Zhong
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 --- default-configs/sh4-softmmu.mak | 2 ++ default-configs/sh4eb-softmmu.mak | 2 ++

[Qemu-devel] [PATCH v1 07/27] hw/arm/Makefile.objs: CONFIG_VIRT created for virt board

2019-01-30 Thread Yang Zhong
make virt code configurable and the new CONFIG_VIRT definitions added to the default-configs/arm-softmmu.mak to replace CONFIG_ACPI in arm board. Signed-off-by: Yang Zhong Signed-off-by: Paolo Bonzini Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth --- default-configs/arm-softmmu.mak

[Qemu-devel] [PATCH v1 14/27] hw/sparc/Makefile.objs: CONFIG_* for sun4m and leon3 created

2019-01-30 Thread Yang Zhong
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 --- default-configs/sparc-softmmu.mak | 2 ++ hw/sparc/Makefile.objs| 4 +++- 2 files changed, 5 insertions(+), 1

[Qemu-devel] [PATCH v1 04/27] hw/pci-host/Makefile.objs: make CONFIGS clear for PCI EXPRESS

2019-01-30 Thread 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 --- default-configs/arm-softmmu.mak | 4 ++-- default-configs/i386-softmmu.mak | 2 +- default-configs/mips64el-softmmu.mak

[Qemu-devel] [PATCH v1 24/27] hw/openrisc/Makefile.objs: Create CONFIG_* for openrisc

2019-01-30 Thread 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 --- default-configs/or1k-softmmu.mak | 1 + hw/openrisc/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v1 10/27] hw/mips/Makefile.objs: Create CONFIG_* for r4k, malta, mipssim boards

2019-01-30 Thread Yang Zhong
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 --- default-configs/mips-softmmu-common.mak | 3 +++ hw/mips/Makefile.objs | 5 +++-- 2

[Qemu-devel] [PATCH v1 03/27] vfio: move conditional up to hw/Makefile.objs

2019-01-30 Thread Yang Zhong
From: 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 --- hw/Makefile.objs | 2 +- hw/vfio/Makefile.objs | 2 -- 2 files changed, 1 insertion(+), 3

[Qemu-devel] [PATCH v1 02/27] ide: split ioport registration to a separate file

2019-01-30 Thread Yang Zhong
From: Paolo Bonzini This is not needed on ARM, and brings in ISA bus code which is otherwise not necessary. Signed-off-by: Paolo Bonzini --- hw/ide/Makefile.objs | 4 +-- hw/ide/core.c| 25 - hw/ide/ioport.c | 66 3

[Qemu-devel] [PATCH v1 08/27] hw/m68k/Makefile.objs: Conditionally build boards

2019-01-30 Thread Yang Zhong
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 --- default-configs/m68k-softmmu.mak | 2 ++

[Qemu-devel] [PATCH v1 00/27] make qemu configurable for Kconfig

2019-01-30 Thread Yang Zhong
This patch set is part of Kconfig task, and our target is to make all platform's code file configurable for Kconfig, which is suitable for add "config XXX" for all platforms. As for Kconfig patch set(RFC v5), please ref below thread:

[Qemu-devel] [PATCH v1 05/27] build: actually use CONFIG_PAM

2019-01-30 Thread Yang Zhong
From: Paolo Bonzini Do not link it unconditionally into all binaries. Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth --- default-configs/i386-softmmu.mak | 1 + hw/pci-host/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff

[Qemu-devel] [PATCH v1 01/27] arm: disable CONFIG_SERIAL_ISA

2019-01-30 Thread Yang Zhong
From: 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

[Qemu-devel] [PATCH v3 8/8] acpi: rewrite the _FIT method to use it in _HMA method

2019-01-30 Thread Tao Xu
Per Igor's comment, rewrite NFIT code to build _HMA method. We rewirte the function nvdimm_build_common_dsm(Aml *dev) and nvdimm_build_fit(Aml *dev) in hw/acpi/nvdimm.c so that we can use method_number as input to decide to generate _FIT or _HMA method. Reviewed-by: Liu Jingqi Signed-off-by:

[Qemu-devel] [PATCH v3 1/8] hmat acpi: Build Memory Subsystem Address Range Structure(s) in ACPI HMAT

2019-01-30 Thread Tao Xu
From: Liu Jingqi HMAT is defined in ACPI 6.2: 5.2.27 Heterogeneous Memory Attribute Table (HMAT). The specification references below link: http://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf It describes the memory attributes, such as memory side cache attributes and bandwidth and

[Qemu-devel] [PATCH v3 4/8] Extend the command-line to provide memory latency and bandwidth information

2019-01-30 Thread Tao Xu
From: Liu Jingqi Add -numa hmat-lb option to provide System Locality Latency and Bandwidth Information. These memory attributes help to build System Locality Latency and Bandwidth Information Structure(s) in ACPI Heterogeneous Memory Attribute Table (HMAT). Signed-off-by: Liu Jingqi

[Qemu-devel] [PATCH v3 7/8] hmat acpi: move some function inside of the caller

2019-01-30 Thread Tao Xu
Per Igor comments, these function is used only once, move its body inside of the caller Reviewed-by: Liu Jingqi Signed-off-by: Tao Xu --- hw/acpi/hmat.c | 93 -- 1 file changed, 37 insertions(+), 56 deletions(-) diff --git a/hw/acpi/hmat.c

[Qemu-devel] [PATCH v3 5/8] numa: Extend the command-line to provide memory side cache information

2019-01-30 Thread Tao Xu
From: Liu Jingqi Add -numa hmat-cache option to provide Memory Side Cache Information. These memory attributes help to build Memory Side Cache Information Structure(s) in ACPI Heterogeneous Memory Attribute Table (HMAT). Signed-off-by: Liu Jingqi Signed-off-by: Tao Xu --- numa.c | 72

[Qemu-devel] [PATCH v3 3/8] hmat acpi: Build Memory Side Cache Information Structure(s) in ACPI HMAT

2019-01-30 Thread Tao Xu
From: Liu Jingqi This structure describes memory side cache information for memory proximity domains if the memory side cache is present and the physical device(SMBIOS handle) forms the memory side cache. The software could use this information to effectively place the data in memory to maximize

[Qemu-devel] [PATCH v3 6/8] hmat acpi: Implement _HMA method to update HMAT at runtime

2019-01-30 Thread Tao Xu
From: Liu Jingqi OSPM evaluates HMAT only during system initialization. Any changes to the HMAT state at runtime or information regarding HMAT for hot plug are communicated using _HMA method. _HMA is an optional object that enables the platform to provide the OS with updated Heterogeneous

[Qemu-devel] [PATCH v3 0/8] Build ACPI Heterogeneous Memory Attribute Table (HMAT)

2019-01-30 Thread Tao Xu
This series of patches will build Heterogeneous Memory Attribute Table (HMAT) according to the command line. The ACPI HMAT describes the memory attributes, such as memory side cache attributes and bandwidth and latency details, related to the System Physical Address (SPA) Memory Ranges. The

[Qemu-devel] [PATCH v3 2/8] hmat acpi: Build System Locality Latency and Bandwidth Information Structure(s) in ACPI HMAT

2019-01-30 Thread Tao Xu
From: Liu Jingqi This structure describes the memory access latency and bandwidth information from various memory access initiator proximity domains. The latency and bandwidth numbers represented in this structure correspond to rated latency and bandwidth for the platform. The software could use

Re: [Qemu-devel] [PR RFC] RISC-V Patches for 3.2, Part 3

2019-01-30 Thread Thomas Huth
On 2019-01-30 20:01, Palmer Dabbelt wrote: > On Wed, 30 Jan 2019 09:45:33 PST (-0800), ebl...@redhat.com wrote: >> On 1/30/19 11:35 AM, Palmer Dabbelt wrote: >>> The following changes since commit >>> 5385a5988c8a55bebdc878c05b96648579b5d6e0: >>> >>>   hw/virtio/virtio-balloon: zero-initialize the

Re: [Qemu-devel] [RFC PATCH 3/5] ppc: Express dependencies of the Mac machines with kconfig

2019-01-30 Thread Thomas Huth
On 2019-01-30 18:13, Mark Cave-Ayland wrote: > On 30/01/2019 09:43, Thomas Huth wrote: > >> This will make it for example easier if the users want to disable >> one of the two machines for their builds. >> >> Cc: Mark Cave-Ayland >> Signed-off-by: Thomas Huth >> --- [...] >> diff --git

Re: [Qemu-devel] [PATCH] Fix for RSP vCont packet

2019-01-30 Thread Lucien Murray-Pitts via Qemu-devel
The result is that vCont now does not recognise the case where no process/thread is provided after the action. This may not show up with GDB, but using Lauterbach Trace32, and Hexrays IDA Pro this issue is immediately seen. The response is a "$#00" empty packet, showing it is unsupported

Re: [Qemu-devel] [Qemu-block] [PATCH v3 1/1] drive-mirror: add incremental mode

2019-01-30 Thread Eric Blake
On 1/30/19 10:01 PM, mahaocong wrote: > From: mahaocong > You are STILL missing the commit message body, even though I requested it [1]. Please 'git commit --amend', and paste in the contents that you are sticking in your 0/1 cover letter that actually describe the details behind this patch.

[Qemu-devel] [PATCH v3 1/1] drive-mirror: add incremental mode

2019-01-30 Thread mahaocong
From: mahaocong Signed-off-by: mahaocong --- block/mirror.c| 46 ++ blockdev.c| 37 +++-- include/block/block_int.h | 3 ++- qapi/block-core.json | 7 ++- 4 files changed, 77

[Qemu-devel] [PATCH v3 0/1] Drive-mirror: add incremental mode

2019-01-30 Thread mahaocong
From: mahaocong This patch adds possibility to start mirroring with user-created-bitmap. On full mode, mirror create a non-named-bitmap by scanning whole block-chain, and on top mode, mirror create a bitmap by scanning the top block layer. So I think I can copy a user-created-bitmap and use it

Re: [Qemu-devel] [PATCH] Fix for RSP vCont packet

2019-01-30 Thread Lucien Anti-Spam via Qemu-devel
On Thursday, January 31, 2019, 12:47:23 PM GMT+9, Eric Blake wrote: On 1/30/19 6:41 PM, Lucien Anti-Spam via Qemu-devel wrote: > > This fixes a regression in rsp packet vCont due to recently added > > multiprocess support. (Short commit hash: e40e520). > > > Your mailer completely

Re: [Qemu-devel] [PATCH] Fix for RSP vCont packet

2019-01-30 Thread Eric Blake
On 1/30/19 6:41 PM, Lucien Anti-Spam via Qemu-devel wrote: > This fixes a regression in rsp packet vCont due to recently added > multiprocess support. (Short commit hash: e40e520). > Your mailer completely botched the message (wrong line endings?) Can you please resend, preferably using git

Re: [Qemu-devel] [PATCH v5 0/8] target/ppc: remove various endian hacks from int_helper.c

2019-01-30 Thread David Gibson
On Wed, Jan 30, 2019 at 08:36:30PM +, Mark Cave-Ayland wrote: > >From working on the TCG vector operations patchset, it is apparent that there > are a large number of endian-based hacks in int_helper.c which can be removed > by > making use of the various Vsr* macros. > > Patch 1 is simple

Re: [Qemu-devel] [PATCH] ppc: remove the interrupt presenters from under PowerPCCPU

2019-01-30 Thread David Gibson
On Mon, Jan 28, 2019 at 07:55:52AM +0100, Cédric Le Goater wrote: > These fields have now been replaced by equivalents under the machine > data. > > Signed-off-by: Cédric Le Goater Applied to ppc-for-4.0, thanks. > --- > target/ppc/cpu.h | 5 - > 1 file changed, 5 deletions(-) > > diff

[Qemu-devel] NSIS - including DLL dependencies for Windows

2019-01-30 Thread Adam Baxter
Hi, How do I gather and include the required DLLs (SDL, zlib etc) in the NSIS installer? (and also in a standalone build to be zipped up, but that's less important) I noticed the wiki doesn't really mention bundling dependencies anywhere. The official unofficial windows builds are documented at

Re: [Qemu-devel] [PATCH] iotests/236: fix transaction kwarg order

2019-01-30 Thread Eric Blake
On 1/30/19 8:26 PM, John Snow wrote: > It's not enough to order the kwargs for consistent QMP log output, > we must also sort any sub-dictionaries in lists that appear as values. > > Reported-by: Kevin Wolf > Signed-off-by: John Snow > --- > tests/qemu-iotests/236.out| 56

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

2019-01-30 Thread Eric Blake
On 1/30/19 7:01 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 > --- > block/dirty-bitmap.c | 19 +-- >

Re: [Qemu-devel] [PATCH 18/18] Boot Linux Console Test: add a test for alpha + clipper

2019-01-30 Thread Cleber Rosa
On 1/22/19 5:52 AM, Philippe Mathieu-Daudé wrote: > On 1/17/19 7:56 PM, Cleber Rosa wrote: >> Similar to the x86_64 + pc test, it boots a Linux kernel on a Malta >> board and verify the serial is working. One extra command added to >> the QEMU command line is '-vga std', because the kernel

Re: [Qemu-devel] [PATCH 14/18] Boot Linux Console Test: add a test for ppc64 + pseries

2019-01-30 Thread Cleber Rosa
On 1/22/19 11:07 AM, Alex Bennée wrote: > > Cleber Rosa writes: > >> Just like the previous tests, boots a Linux kernel on a ppc64 target >> using the pseries machine. > > So running this on my rather slow SynQuacer I get: > > (04/16) >

[Qemu-devel] [PATCH] iotests/236: fix transaction kwarg order

2019-01-30 Thread John Snow
It's not enough to order the kwargs for consistent QMP log output, we must also sort any sub-dictionaries in lists that appear as values. Reported-by: Kevin Wolf Signed-off-by: John Snow --- tests/qemu-iotests/236.out| 56 +-- tests/qemu-iotests/iotests.py |

Re: [Qemu-devel] [PATCH V2] test-filter-mirror: pass UNIX domain socket through fd

2019-01-30 Thread Zhang Chen
On Wed, Jan 30, 2019 at 11:14 AM Jason Wang wrote: > The tests tries to let qemu server mode to process the connection > which turns out to be racy after commit 8258292e18c3 ("monitor: Remove > "x-oob", offer capability "oob" unconditionally"). This is because the > filter may try to mirror the

Re: [Qemu-devel] [Qemu-block] [PATCH] iotests: Filter second BLOCK_JOB_ERROR from 229

2019-01-30 Thread John Snow
On 1/30/19 6:52 PM, Max Reitz wrote: > Without this filter, this test sometimes fails. > > Signed-off-by: Max Reitz > --- > I intended to send this as part of my iotest fixes series, but it ended > up on the wrong branch... Doesn't really matter, though, as there is no > functional

Re: [Qemu-devel] [PULL 11/20] iotests: add iotest 236 for testing bitmap merge

2019-01-30 Thread John Snow
On 1/30/19 12:27 PM, Kevin Wolf wrote: > Am 14.01.2019 um 17:25 hat Eric Blake geschrieben: >> From: John Snow >> >> New interface, new smoke test. >> >> Signed-off-by: John Snow >> Reviewed-by: Vladimir Sementsov-Ogievskiy >> Reviewed-by: Eric Blake >> Message-Id:

Re: [Qemu-devel] [PATCH 13/18] Boot Linux Console Test: add a test for mips64el + malta

2019-01-30 Thread Cleber Rosa
On 1/22/19 5:57 AM, Philippe Mathieu-Daudé wrote: > On 1/17/19 7:56 PM, Cleber Rosa wrote: >> Similar to the x86_64 + pc test, it boots a Linux kernel on a Malta >> board and verify the serial is working. >> >> If mips64el is a target being built, "make check-acceptance" will >> automatically

Re: [Qemu-devel] [PATCH 13/18] Boot Linux Console Test: add a test for mips64el + malta

2019-01-30 Thread Cleber Rosa
On 1/22/19 5:19 AM, Philippe Mathieu-Daudé wrote: > Hi Cleber, > > On 1/17/19 7:56 PM, Cleber Rosa wrote: >> Similar to the x86_64 + pc test, it boots a Linux kernel on a Malta >> board and verify the serial is working. >> >> If mips64el is a target being built, "make check-acceptance" will >>

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

2019-01-30 Thread John Snow
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 --- block/dirty-bitmap.c | 19 +-- qapi/block-core.json | 17 - 2 files

[Qemu-devel] [PULL 09/13] nvme: ensure the num_queues is not zero

2019-01-30 Thread Max Reitz
From: Li Qiang When it is zero, it causes segv. Using following command: "-drive file=//home/test/test1.img,if=none,id=id0 -device nvme,drive=id0,serial=test,num_queues=0" causes following Backtrack: Thread 4 "qemu-system-x86" received signal SIGSEGV, Segmentation fault. [Switching to Thread

[Qemu-devel] [PULL 12/13] iotests: Bind qemu-nbd to localhost in 147

2019-01-30 Thread Max Reitz
By default, qemu-nbd binds to 0.0.0.0. However, we then proceed to connect to "localhost". Usually, this works out fine; but if this test is run concurrently, some other test function may have bound a different server to ::1 (on the same port -- you can bind different serves to the same port, as

[Qemu-devel] [PULL 08/13] nvme: use TYPE_NVME instead of constant string

2019-01-30 Thread Max Reitz
From: Li Qiang Signed-off-by: Li Qiang Reviewed-by: Max Reitz Reviewed-by: Philippe Mathieu-Daudé Message-id: 2019012008.32984-2-liq...@163.com Signed-off-by: Max Reitz --- hw/block/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/nvme.c

Re: [Qemu-devel] [PATCH 0/3] iotests: Allow 147 to be run concurrently

2019-01-30 Thread Max Reitz
On 22.12.18 00:47, Max Reitz wrote: > 147 currently cannot be run concurrently for two reasons: > > (1) It creates TCP/IP NBD servers on a fixed port. > > (2) It uses a mix of "0.0.0.0", "localhost", and "::1" as host addresses > to bind to. As explained in the commit messages of patches 2

[Qemu-devel] [PULL 13/13] iotests: Allow 147 to be run concurrently

2019-01-30 Thread Max Reitz
To do this, we need to allow creating the NBD server on various ports instead of a single one (which may not even work if you run just one instance, because something entirely else might be using that port). So we just pick a random port in [32768, 32768 + 1024) and try to create a server there.

[Qemu-devel] [PULL 11/13] iotests.py: Add qemu_nbd_pipe()

2019-01-30 Thread Max Reitz
In some cases, we may want to deal with qemu-nbd errors (e.g. by launching it in a different configuration until it no longer throws any). In that case, we do not want its output ending up in the test output. It may still be useful for handling the error, though, so add a new function that works

[Qemu-devel] [PULL 05/13] block/file-posix: Convert from DPRINTF() macro to trace events

2019-01-30 Thread Max Reitz
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Message-id: 20181213162727.17438-4-lviv...@redhat.com Signed-off-by: Max Reitz --- block/file-posix.c | 25 ++--- block/trace-events | 7 +++ 2 files changed, 13 insertions(+), 19

[Qemu-devel] [PULL 10/13] nvme: use pci_dev directly in nvme_realize

2019-01-30 Thread Max Reitz
From: Li Qiang There is no need to make another reference. Signed-off-by: Li Qiang Reviewed-by: Max Reitz Reviewed-by: Philippe Mathieu-Daudé Message-id: 2019012008.32984-4-liq...@163.com Signed-off-by: Max Reitz --- hw/block/nvme.c | 8 1 file changed, 4 insertions(+), 4

[Qemu-devel] [PULL 07/13] qemu-io: Add generic function for reinitializing optind.

2019-01-30 Thread Max Reitz
From: "Richard W.M. Jones" On FreeBSD 11.2: $ nbdkit memory size=1M --run './qemu-io -f raw -c "aio_write 0 512" $nbd' Parsing error: non-numeric argument, or extraneous/unrecognized suffix -- aio_write After main option parsing, we reinitialize optind so we can parse each command.

[Qemu-devel] [PULL 06/13] block/sheepdog: Convert from DPRINTF() macro to trace events

2019-01-30 Thread Max Reitz
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Message-id: 20181213162727.17438-5-lviv...@redhat.com [mreitz: Fixed sheepdog_snapshot_create_inode's format string to use PRIx32 for uint32_ts] Signed-off-by: Max Reitz --- block/sheepdog.c |

[Qemu-devel] [PULL 03/13] block/ssh: Convert from DPRINTF() macro to trace events

2019-01-30 Thread Max Reitz
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Richard W.M. Jones Reviewed-by: Philippe Mathieu-Daudé Message-id: 20181213162727.17438-2-lviv...@redhat.com [mreitz: Fixed type of ssh_{read,write}_return's parameter to be ssize_t instead of size_t] Signed-off-by: Max

[Qemu-devel] [PULL 04/13] block/curl: Convert from DPRINTF() macro to trace events

2019-01-30 Thread Max Reitz
From: Laurent Vivier Signed-off-by: Laurent Vivier Reviewed-by: Richard W.M. Jones Reviewed-by: Philippe Mathieu-Daudé Message-id: 20181213162727.17438-3-lviv...@redhat.com Signed-off-by: Max Reitz --- block/curl.c | 29 - block/trace-events | 9 +

[Qemu-devel] [PULL 01/13] qapi: add x-debug-query-block-graph

2019-01-30 Thread Max Reitz
From: Vladimir Sementsov-Ogievskiy Add a new command, returning block nodes (and their users) graph. Signed-off-by: Vladimir Sementsov-Ogievskiy Message-id: 20181221170909.25584-2-vsement...@virtuozzo.com Signed-off-by: Max Reitz --- qapi/block-core.json | 108

[Qemu-devel] [PULL 02/13] scripts: add render_block_graph function for QEMUMachine

2019-01-30 Thread Max Reitz
From: Vladimir Sementsov-Ogievskiy Render block nodes graph with help of graphviz. This new function is for debugging, so there is no sense to put it into qemu.py as a method of QEMUMachine. Let's instead put it separately. Signed-off-by: Vladimir Sementsov-Ogievskiy Acked-by: Eduardo Habkost

[Qemu-devel] [PULL 00/13] Block patches

2019-01-30 Thread Max Reitz
The following changes since commit b4fbe1f65a4769c09e6bf2d79fc84360f840f40e: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20190129' into staging (2019-01-29 12:00:19 +) are available in the Git repository at: https://git.xanclic.moe/XanClic/qemu.git

[Qemu-devel] [PATCH] Fix for RSP vCont packet

2019-01-30 Thread Lucien Anti-Spam via Qemu-devel
This fixes a regression in rsp packet vCont due to recently added multiprocess support. (Short commit hash: e40e520). The result is that vCont now does not recognise the case where no process/thread is provided after the action. This may not show up with GDB, but using Lauterbach Trace32, and

Re: [Qemu-devel] [PATCH 12/18] Boot Linux Console Test: add a test for mips + malta

2019-01-30 Thread Cleber Rosa
On 1/22/19 5:16 AM, Philippe Mathieu-Daudé wrote: > Hi Cleber, > > On 1/17/19 7:56 PM, Cleber Rosa wrote: >> From: Philippe Mathieu-Daudé >> >> Similar to the x86_64 + pc test, it boots a Linux kernel on a Malta >> board and verify the serial is working. Also, it relies on the serial >>

Re: [Qemu-devel] [PATCH 10/18] Boot Linux Console Test: refactor the console watcher into utility method

2019-01-30 Thread Cleber Rosa
On 1/22/19 5:06 AM, Philippe Mathieu-Daudé wrote: > Hi Cleber, > > On 1/17/19 7:56 PM, Cleber Rosa wrote: >> This introduces a utility method that monitors the console device and >> looks for either a message that signals the test success or failure. >> >> Signed-off-by: Cleber Rosa >> --- >>

[Qemu-devel] [PATCH 2/3] target/xtensa: add generic instruction post-processing

2019-01-30 Thread Max Filippov
Some opcodes may need additional actions at every exit from the translated instruction or may need to amend TB exit slots available to jumps generated for the instruction. Add gen_postprocess function and call it from the gen_jump_slot and from the disas_xtensa_insn. Signed-off-by: Max Filippov

[Qemu-devel] [PATCH 1/3] target/xtensa: sort FLIX instruction opcodes

2019-01-30 Thread Max Filippov
Opcodes in different slots may read and write same resources (registers, states). In the absence of resource dependency loops it must be possible to sort opcodes to avoid interference. Record resources used by each opcode in the bundle. Build opcode dependency graph and use topological sort to

[Qemu-devel] [PATCH 3/3] target/xtensa: move WINDOW_BASE SR update to postprocessing

2019-01-30 Thread Max Filippov
Opcodes that modify WINDOW_BASE SR don't have dependency on opcodes that use windowed registers. If such opcodes are combined in a single instruction they may not be correctly ordered. Instead of adding said dependency use temporary register to store changed WINDOW_BASE value and do actual

[Qemu-devel] [PATCH 0/3] target/xtensa: add basic FLIX support

2019-01-30 Thread Max Filippov
Hello, this series adds limited support for FLIX instructions. FLIX (flexible length instruction extensions) allows bundling multiple opcodes in a single instruction. Each opcode is executed as if it was the only opcode in the instruction. Opcodes may not simultaneously modify same resource

[Qemu-devel] [PATCH] iotests: Filter second BLOCK_JOB_ERROR from 229

2019-01-30 Thread Max Reitz
Without this filter, this test sometimes fails. Signed-off-by: Max Reitz --- I intended to send this as part of my iotest fixes series, but it ended up on the wrong branch... Doesn't really matter, though, as there is no functional dependency. --- tests/qemu-iotests/229 | 6 +-

[Qemu-devel] [PATCH 2/2] mmap-alloc: fix hugetlbfs misaligned length in ppc64

2019-01-30 Thread Murilo Opsfelder Araujo
The commit 7197fb4058bcb68986bae2bb2c04d6370f3e7218 ("util/mmap-alloc: fix hugetlb support on ppc64") fixed Huge TLB mappings on ppc64. However, we still need to consider the underlying huge page size during munmap() because it requires that both address and length be a multiple of the underlying

[Qemu-devel] [PATCH 1/2] mmap-alloc: unfold qemu_ram_mmap()

2019-01-30 Thread Murilo Opsfelder Araujo
Unfold parts of qemu_ram_mmap() for the sake of understanding, moving declarations to the top, and keeping architecture-specifics in the ifdef-else blocks. No changes in the function behaviour. Give ptr and ptr1 meaningful names: ptr -> guardptr : pointer to the PROT_NONE guard region ptr1

[Qemu-devel] [PATCH 0/2] mmap-alloc: fix hugetlbfs misaligned length in ppc64

2019-01-30 Thread Murilo Opsfelder Araujo
The first patch unfolds parts of qemu_ram_mmap() to make it clearer. No changes in the function behaviour. The second one fixes the alignment of the length given to munmap(). I am pretty sure there is room for improvement, so I would love to hear your feedback. Thank you! Murilo Opsfelder

Re: [Qemu-devel] [PATCH 0/2] qemu-macppc patches

2019-01-30 Thread David Gibson
On Mon, Jan 28, 2019 at 09:21:55PM +, Mark Cave-Ayland wrote: > Here's the contents of my qemu-macppc branch: just two minor patches > consisting of > an update to MAINTAINERS, plus bringing in updated binaries containing > bugfixes > for Ben's MacOS NDRV VGA driver. Applied to ppc-for-4.0,

Re: [Qemu-devel] [PATCH v2 10/10] iotests.py: s/_/-/g on keys in qmp_log()

2019-01-30 Thread John Snow
On 1/30/19 10:24 AM, Max Reitz wrote: > This follows what qmp() does, so the output will correspond to the > actual QMP command. > > Signed-off-by: Max Reitz Reviewed-by: John Snow Thank you!

Re: [Qemu-devel] [PATCH] MAINTAINERS: Merge the two e500 sections

2019-01-30 Thread David Gibson
On Wed, Jan 30, 2019 at 05:22:25PM +0100, Thomas Huth wrote: > There is currently a "e500" machine section and a "ppce500" device > section in the maintainers file - with some oddities: The wildcard > in the device section also covers the files from the machine section. > And hw/pci-host/ppce500.c

Re: [Qemu-devel] [Qemu-ppc] [PATCH qemu] spapr: Drop unused parameters from fdt building helper

2019-01-30 Thread David Gibson
On Wed, Jan 30, 2019 at 05:53:16PM +0100, Greg Kurz wrote: > On Wed, 30 Jan 2019 17:43:44 +0100 > Philippe Mathieu-Daudé wrote: > > > Hi Alexey, > > > > On 1/30/19 1:43 PM, Greg Kurz wrote: > > > On Wed, 30 Jan 2019 12:42:16 +1100 > > > Alexey Kardashevskiy wrote: > > > > > >>

Re: [Qemu-devel] [PATCH v8 0/2] qemu-img info lists bitmap directory entries

2019-01-30 Thread John Snow
On 1/29/19 11:01 PM, Eric Blake wrote: > On 1/28/19 12:40 PM, Andrey Shinkevich wrote: >> Here is the update for the bitmap extension of the qcow2 specific >> information as the output of the 'qemu-img info' command. >> The version #7 was in email with the message ID: >>

Re: [Qemu-devel] [PATCH] MAINTAINERS: XIVE is an interrupt controller, not a machine

2019-01-30 Thread David Gibson
On Wed, Jan 30, 2019 at 04:45:40PM +0100, Thomas Huth wrote: > The "XIVE" section is currently listed in the "PowerPC Machines" > section, which is weird, since this is an interrupt controller > device. Move it to the "Devices" section instead. > > Signed-off-by: Thomas Huth Applied to

Re: [Qemu-devel] [PATCH] hw/ppc: Move ppc40x_*reset() functions from ppc405_uc.c to ppc.c

2019-01-30 Thread David Gibson
On Wed, Jan 30, 2019 at 03:30:49PM +0100, Thomas Huth wrote: > Currently, it is not possible to build a QEMU binary without the > ppc405_uc.c file, even if you do not want to have the embedded machines > in the binary. This is bad since it's quite a bit of code and this code > pulls in some more

Re: [Qemu-devel] [PATCH 01/15] s390 vfio-ccw: Add bootindex property and IPLB data

2019-01-30 Thread Farhan Ali
On 01/29/2019 08:29 AM, Jason J. Herne wrote: Add bootindex property and iplb data for vfio-ccw devices. This allows us to forward boot information into the bios for vfio-ccw devices. Signed-off-by: Jason J. Herne Acked-by: Halil Pasic --- hw/s390x/ipl.c | 14 ++

Re: [Qemu-devel] [PATCH 03/15] s390-bios: decouple common boot logic from virtio

2019-01-30 Thread Farhan Ali
On 01/29/2019 08:29 AM, Jason J. Herne wrote: Create a boot_setup function to handle getting boot information from the machine/hypervisor. This decouples common boot logic from the virtio code path and allows us to make use of it for the real dasd boot scenario. Signed-off-by: Jason J. Herne

Re: [Qemu-devel] [PATCH 02/15] s390-bios: decouple cio setup from virtio

2019-01-30 Thread Farhan Ali
On 01/29/2019 08:29 AM, Jason J. Herne wrote: Move channel i/o setup code out to a separate function. This decouples cio setup from the virtio code path and allows us to make use of it for booting dasd devices. Signed-off-by: Jason J. Herne Acked-by: Halil Pasic Reviewed-by: Collin Walling

[Qemu-devel] [PATCH] RISC-V: Fix pmpcfg register indexing

2019-01-30 Thread Luke Nelson
pmpcfg_csr_{read,write} do not correctly handle accesses to PMP configurations 8 through 15 (CSR pmpcfg2) on RV64. The current code computes the pmpcfg index using: (reg_index * sizeof(target_ulong)) This is incorrect on RV64. For example, when reg_index is 2 (i.e., pmpcfg2), the computed

Re: [Qemu-devel] [PATCH 06/18] Acceptance tests: use "arch:" tag to filter target specific tests

2019-01-30 Thread Cleber Rosa
On 1/18/19 5:38 AM, Cornelia Huck wrote: > On Thu, 17 Jan 2019 13:56:16 -0500 > Cleber Rosa wrote: > >> Currently, the only test that contains some target architecture >> information is "boot_linux_console.py" which test contains a "x86_64" >> tag. But that tag is not respected in the

Re: [Qemu-devel] [PATCH v1] add new function to copy dirty-bitmap

2019-01-30 Thread John Snow
On 1/2/19 5:01 AM, mahaocong wrote: > From: mahaocong > > This patch adds new function to copy the hbitmap from an exist dirty-bitmap to > another. The destination bitmap should have the same size and granularity with > the source bitmap, or the copy will fail. > > Signed-off-by: mahaocong

  1   2   3   4   >