Re: [Qemu-devel] [PATCH v2 02/10] python: futurize -f libfuturize.fixes.fix_absolute_import

2018-06-08 Thread Stefan Hajnoczi
On Fri, Jun 08, 2018 at 09:29:44AM -0300, Eduardo Habkost wrote: > Make implicit relative imports explicit and add "from __future__ import > absolute_import" at the top of each relevant module. > > This is necessary for Python 3 compatibility. > > Done using: > > $ py=$( (g grep -l -E

[Qemu-devel] [PATCH] fixup! python: futurize -f libfuturize.fixes.fix_print_with_import

2018-06-08 Thread Eduardo Habkost
On Fri, Jun 08, 2018 at 09:29:43AM -0300, Eduardo Habkost wrote: > Change all Python code to use print as a function. > > This is necessary for Python 3 compatibility. > > Done using: > > $ py=$( (g grep -l -E '^#!.*python';find -name '*.py' -printf '%P\n';) | \ > sort -u | grep -v

Re: [Qemu-devel] [PATCH v3 3/5] nbd/server: implement dirty bitmap export

2018-06-08 Thread Vladimir Sementsov-Ogievskiy
23.05.2018 13:24, Vladimir Sementsov-Ogievskiy wrote: Handle new NBD meta namespace: "qemu", and corresponding queries: "qemu:dirty-bitmap:". With new metadata context negotiated, BLOCK_STATUS query will reply with dirty-bitmap data, converted to extents. New public function nbd_export_bitmap

[Qemu-devel] [PATCH v3 2/3] glib: bump min required glib library version to 2.40

2018-06-08 Thread Daniel P . Berrangé
Per supported platforms doc[1], the various min glib on relevant distros is: RHEL-7: 2.50.3 Debian (Stretch): 2.50.3 Debian (Jessie): 2.42.1 OpenBSD (Ports): 2.54.3 FreeBSD (Ports): 2.50.3 OpenSUSE Leap 15: 2.54.3 SLE12-SP2: 2.48.2 Ubuntu (Xenial): 2.48.0 macOS (Homebrew):

Re: [Qemu-devel] [qemu PATCH 3/5] hw/i386: Update SSDT table used by "make check"

2018-06-08 Thread Eric Blake
On 06/07/2018 06:14 PM, Michael S. Tsirkin wrote: On Thu, Jun 07, 2018 at 04:31:09PM -0600, Ross Zwisler wrote: This commit: commit aa78a16d8645 ("hw/i386: Rename 2.13 machine types to 3.0") updated the name used to create the q35 machine, which in turn changed the SSDT table which is

Re: [Qemu-devel] [Qemu-block] Some question about savem/qcow2 incremental snapshot

2018-06-08 Thread Stefan Hajnoczi
On Fri, Jun 08, 2018 at 05:02:58AM +, He, Junyan wrote: > I use the simple way to handle this, > 1. Separate the nvdimm region from ram when do snapshot. > 2. If the first time, we dump all the nvdimm data the same as ram, and enable > dirty log trace > for nvdimm kind region. > 3. If not the

Re: [Qemu-devel] [PATCH v2 3/6] spapr: move memory hotplug support check into spapr_memory_pre_plug()

2018-06-08 Thread Greg Kurz
On Fri, 8 Jun 2018 14:48:13 +0200 David Hildenbrand wrote: > Let's finish cleaning up the hotplug handler. This check can be > performed in the pre_plug code as the very first thing. > > Signed-off-by: David Hildenbrand > --- > hw/ppc/spapr.c | 13 ++--- > 1 file changed, 6

[Qemu-devel] [PATCH v3 1/3] util: remove redundant include of glib.h and add osdep.h

2018-06-08 Thread Daniel P . Berrangé
Code must only ever include glib.h indirectly via the glib-compat.h header file, because we will need some macros set before glib.h is pulled in. Adding extra includes of glib.h will (soon) cause compile failures such as: In file included from

[Qemu-devel] [PATCH v3 6/7] hmp: add exit_preconfig

2018-06-08 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Add the exit_preconfig command to return to normality. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Peter Xu Reviewed-by: Igor Mammedov --- hmp-commands.hx | 15 +++ hmp.c | 7 +++ hmp.h | 1 + 3 files changed, 23

Re: [Qemu-devel] [PATCH v6 2/2] vl: fix use of --daemonize with --preconfig

2018-06-08 Thread Eduardo Habkost
On Thu, Jun 07, 2018 at 02:00:09PM +0200, Igor Mammedov wrote: > When using --daemonize, the initial lead process will fork a child and > then wait to be notified that setup is complete via a pipe, before it > exits. When using --preconfig there is an extra call to main_loop() > before the

[Qemu-devel] [PATCH v3 0/3] glib: update the min required version

2018-06-08 Thread Daniel P . Berrangé
The previous patch to bump glib to 2.42 hit problems with Peter's build environment for testing merge: https://lists.gnu.org/archive/html/qemu-devel/2018-05/msg02557.html This posting drops back to 2.40, which allows Ubuntu 14.04 from GLibC compile farm to be supported. It does NOT try to go

[Qemu-devel] [PATCH v3 3/7] hmp: Restrict auto-complete in preconfig

2018-06-08 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Don't show the commands that aren't available. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Peter Xu Reviewed-by: Igor Mammedov --- monitor.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/monitor.c b/monitor.c index

Re: [Qemu-devel] [PATCH v2 1/3] glib: bump min required glib library version to 2.40

2018-06-08 Thread Daniel P . Berrangé
On Thu, Jun 07, 2018 at 10:28:39AM +0200, Olaf Hering wrote: > Am Thu, 7 Jun 2018 09:25:24 +0100 > schrieb Daniel P. Berrangé : > > > https://qemu.weilnetz.de/doc/qemu-doc.html#Supported-build-platforms > > SLE12-SP2: 2.48.2 Thanks I'm adding that info Regards, Daniel -- |:

[Qemu-devel] [PATCH v3 3/3] glib: enforce the minimum required version and warn about old APIs

2018-06-08 Thread Daniel P . Berrangé
There are two useful macros that can be defined before including glib.h that are related to the min required glib version - GLIB_VERSION_MIN_REQUIRED When this is defined, if code uses an API that was deprecated in this version, or older, a compiler warning will be emitted. This alerts

[Qemu-devel] [PATCH v3 4/7] qmp: enable query-[chardev|version|name|uuid|iothreads|memdev] commands in preconfig state

2018-06-08 Thread Dr. David Alan Gilbert (git)
From: Igor Mammedov subj commands, are informational and do not depend on machine being initialized. Make them available early in preconfig runstate to make the later a little bit more useful. Signed-off-by: Igor Mammedov --- qapi/char.json | 3 ++- qapi/misc.json | 12 +++- 2 files

[Qemu-devel] [PATCH v3 7/7] hmp: Allow HMP in preconfig state again

2018-06-08 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Now we can cope with preconfig in HMP, reenable by reverting commit 71dc578e116599ea73c8a2a4e693134702ec0e83. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Peter Xu Reviewed-by: Igor Mammedov --- monitor.c | 6 -- 1 file changed, 6 deletions(-) diff

[Qemu-devel] [PATCH v6 42/49] Makefile.target: add (clean-/build-)guest-tests targets

2018-06-08 Thread Alex Bennée
Now all the build infrastructure is in place we can build tests for each guest that we support. That support mainly depends on having cross compilers installed or docker setup. To keep all the logic for that together we put the rules in tests/tcg/Makefile.include and include it from the main

Re: [Qemu-devel] [PATCH v10 5/7] monitor: remove event_clock_type

2018-06-08 Thread Stefan Hajnoczi
On Fri, Jun 08, 2018 at 11:55:09AM +0800, Peter Xu wrote: > Instead, use a dynamic function to detect which clock we'll use. The > problem is that the old code will let monitor initialization depend on > configure_accelerator() (that's where qtest_enabled() start to take > effect). After this

[Qemu-devel] [PATCH v3 2/7] hmp: Allow help on preconfig commands

2018-06-08 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Allow the 'help' command in preconfig state but make it only list the preconfig commands. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Peter Xu Reviewed-by: Igor Mammedov --- hmp-commands.hx | 1 + monitor.c | 8 +++- 2 files changed, 8

[Qemu-devel] [PATCH v3 0/7] Reenable hmp for preconfig mode

2018-06-08 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Reenable HMP in preconfig mode; it's pretty easy and anyway I want to do a similar thing for OOB eventually. We'll want to enable more commands in preconfig mode to make it useful at some point. Dave v3 Add Igor's patch to enable most of the same info commands

[Qemu-devel] [PATCH v6 18/49] tests/tcg/x86_64: add Makefile.target

2018-06-08 Thread Alex Bennée
The sources for x86_64 are shared in the i386 directory which will be included thanks to TARGET_BASE_ARCH. However not all sources build so we need to filter out the ones we can't build in the 64 bit world and those that can't be built for 32 bit. Signed-off-by: Alex Bennée Reviewed-by: Philippe

Re: [Qemu-devel] [PATCH v2 00/10] python: futurize --stage1 (Python 3 compatibility)

2018-06-08 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180608122952.2009-1-ehabk...@redhat.com Subject: [Qemu-devel] [PATCH v2 00/10] python: futurize --stage1 (Python 3 compatibility) === TEST SCRIPT BEGIN === #!/bin/bash

[Qemu-devel] [PATCH v6 16/49] tests/tcg/i386: fix test-i386

2018-06-08 Thread Alex Bennée
We don't include anything from qemu itself for the build. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- v4 - reword commit message to be more accurate ---

Re: [Qemu-devel] [PATCH v2 2/6] spapr: move lookup of the node into spapr_memory_plug()

2018-06-08 Thread Greg Kurz
On Fri, 8 Jun 2018 14:48:12 +0200 David Hildenbrand wrote: > Let's clean the hotplug handler up by moving lookup of the node into > the function where it is actually being used. > > Signed-off-by: David Hildenbrand > --- Reviewed-by: Greg Kurz > hw/ppc/spapr.c | 12 +--- > 1 file

[Qemu-devel] [PATCH v6 43/49] tests/Makefile.include: add [build|clean|check]-tcg targets

2018-06-08 Thread Alex Bennée
This will ensure all linux-user targets build their guest test programs and ensure check-tcg will run the respective tests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v2 - use -include instead of complex macro stuff - also include

Re: [Qemu-devel] [PATCH v2 00/10] python: futurize --stage1 (Python 3 compatibility)

2018-06-08 Thread no-reply
Hi, This series failed 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. Type: series Message-id: 20180608122952.2009-1-ehabk...@redhat.com Subject: [Qemu-devel] [PATCH v2 00/10] python:

Re: [Qemu-devel] [PATCH RFC 2/2] vfio-ccw: support for halt/clear subchannel

2018-06-08 Thread Halil Pasic
On 06/08/2018 02:20 PM, Cornelia Huck wrote: My proposal is to do the same copying to scsw(r) again, which would mean we get a request with both the halt and the start bit set. The vfio code now needs to do a hsch (instead of a ssch). The real channel subsystem should figure this out, as we

[Qemu-devel] [PATCH v6 47/49] tests: add top-level make dependency for docker builds

2018-06-08 Thread Alex Bennée
One problem with satisfying your docker dependencies in a sub-make it you might end up trying to satisfy the dependency multiple times. This is especially a problem with debian-sid based cross compilers and CI setups. We solve this by doing a docker build pass at the top level before any sub-makes

Re: [Qemu-devel] [PATCH v4 04/14] pc: prepare for multi stage hotplug handlers

2018-06-08 Thread Michael S. Tsirkin
On Fri, Jun 08, 2018 at 02:32:09PM +0200, David Hildenbrand wrote: > > >>> if (TYPE_PC_DIMM) { > >>> pc_dimm_plug() > >>> /* do here additional concrete machine specific things */ > >>> } else if (TYPE_VIRTIO_MEM) { > >>> virtio_mem_plug() <- do forwarding in there > >>> /* and do

[Qemu-devel] [PATCH v6 36/49] tests/tcg: enable building for sparc64

2018-06-08 Thread Alex Bennée
As before, using Debian SID compilers. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v5 - add Makefile with EXTRA_RUNS for mmap tests --- tests/docker/Makefile.include| 1 +

[Qemu-devel] [PATCH v3 1/7] hmp: Add flag for preconfig commands

2018-06-08 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Add a flag to command definitions to allow them to be used in preconfig and check it. If users try to use commands that aren't available, tell them to use the exit_preconfig comand we're adding in a few patches. Signed-off-by: Dr. David Alan Gilbert ---

[Qemu-devel] [PATCH v2 6/6] spapr: handle cpu core unplug via hotplug handler chain

2018-06-08 Thread David Hildenbrand
Factor out cpu core unplug into separate function from spapr_core_release(). Then use generic hotplug_handler_unplug() to trigger cpu core unplug, which would call spapr_machine_device_unplug() -> spapr_core_unplug() in the end. This way unplug operation is not buried in spapr internals and

[Qemu-devel] [PATCH v6 12/49] tests/tcg/multiarch: move most output to stdout

2018-06-08 Thread Alex Bennée
The default test run outputs to stdout so it can be re-directed. Errors are still reported to stderr. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- v4 - remove space in fprintf () to keep checkpatch happy

[Qemu-devel] [PATCH v3 5/7] hmp: Add info commands for preconfig

2018-06-08 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Allow a bunch of the info commands to be used in preconfig. version, chardev, name, uuid,memdev, iothreads Were enabled in QMP in the previous patch from Igor status, hotpluggable_cpus Was enabled in the original allow-preconfig series history is HMP

[Qemu-devel] [PATCH v6 31/49] tests/tcg: enable building for Alpha

2018-06-08 Thread Alex Bennée
We can't use our normal Debian based compilers as Alpha isn't an officially supported architecture. However it is available as a port and fortunately cross compilers for all these targets are included in Debian Sid, the perpetual rolling/unstable/testing version of Debian. Signed-off-by: Alex

[Qemu-devel] [PATCH v2 5/6] spapr: handle pc-dimm unplug via hotplug handler chain

2018-06-08 Thread David Hildenbrand
Factor out memory unplug into separate function from spapr_lmb_release(). Then use generic hotplug_handler_unplug() to trigger memory unplug, which will call spapr_machine_device_unplug() -> spapr_memory_unplug() in the end. This way unplug operation is not buried in lmb internals and located in

Re: [Qemu-devel] [PATCH v4 04/14] pc: prepare for multi stage hotplug handlers

2018-06-08 Thread David Hildenbrand
On 08.06.2018 14:55, Michael S. Tsirkin wrote: > On Fri, Jun 08, 2018 at 02:32:09PM +0200, David Hildenbrand wrote: >> > if (TYPE_PC_DIMM) { > pc_dimm_plug() > /* do here additional concrete machine specific things */ > } else if (TYPE_VIRTIO_MEM) { >

[Qemu-devel] [PATCH v2 4/6] spapr: introduce machine unplug handler

2018-06-08 Thread David Hildenbrand
We'll be handling unplug of e.g. CPUs and PCDIMMs via the general hotplug handler soon, so let's add that handler function. Acked-by: David Gibson Reviewed-by: Greg Kurz Signed-off-by: David Hildenbrand --- hw/ppc/spapr.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[Qemu-devel] [PATCH v6 49/49] .travis.yml: add check-tcg test

2018-06-08 Thread Alex Bennée
Signed-off-by: Alex Bennée --- .travis.yml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 814be151f4..f1d2d9edec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -152,3 +152,9 @@ matrix: - TEST_CMD="" before_script: - ./configure

[Qemu-devel] [PULL 28/31] sdcard: Add a 'spec_version' property, default to Spec v2.00

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé As of this commit, the Spec v1 is not working, and all controllers expect the cards to be conformant to Spec v2. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Message-id: 20180607180641.874-4-f4...@amsat.org Signed-off-by: Peter Maydell ---

[Qemu-devel] [PATCH v2 3/6] spapr: move memory hotplug support check into spapr_memory_pre_plug()

2018-06-08 Thread David Hildenbrand
Let's finish cleaning up the hotplug handler. This check can be performed in the pre_plug code as the very first thing. Signed-off-by: David Hildenbrand --- hw/ppc/spapr.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index

[Qemu-devel] [PATCH v6 32/49] tests/tcg/alpha: add Alpha specific tests

2018-06-08 Thread Alex Bennée
These tests did use their own crt.o stub however that is a little stone age so we drop crt.S and just statically link to the cross compilers libraries. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v4 -

[Qemu-devel] [PULL 26/31] sdcard: Update the Configuration Register (SCR) to Spec Version 1.10

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé The initial implementation is based on the Specs v1.10 (see a1bb27b1e98). However the SCR is anouncing the card being v1.01. The new chapters added in version 1.10 are: 4.3.10 Switch function command Switch function command (CMD6) 1 is used to switch or

[Qemu-devel] [PULL 23/31] target/m68k: Add trailing '\n' to qemu_log() call

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Laurent Vivier Message-id: 20180606152128.449-10-f4...@amsat.org Signed-off-by: Peter Maydell --- target/m68k/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v6 34/49] tests/tcg: enable building for m68k

2018-06-08 Thread Alex Bennée
As before, using Debian SID compilers. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v5 - add EXTRA_RUNS for mmap tests --- tests/docker/Makefile.include | 1 + tests/docker/dockerfiles/debian-m68k-cross.docker |

[Qemu-devel] [PULL 21/31] stellaris: Add trailing '\n' to qemu_log() calls

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-id: 20180606152128.449-8-f4...@amsat.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/arm/stellaris.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PULL 27/31] sdcard: Allow commands valid in SPI mode

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé >From the "Physical Layer Simplified Specification Version 1.10" Chapter 7.3 "SPI Mode Transaction Packets" Table 57: "Commands and arguments" Signed-off-by: Philippe Mathieu-Daudé Acked-by: Alistair Francis Message-id: 20180607180641.874-3-f4...@amsat.org

[Qemu-devel] [PATCH v2 0/6] spapr: machine hotplug handler cleanups

2018-06-08 Thread David Hildenbrand
I'll be messing with machine hotplug handlers of pc/spapr/s390x in the context of [PATCH v4 00/14] MemoryDevice: use multi stage hotplug handlers So this is a spin-off of the cleanup patches in the context of hotplug handlers. v1 -> v2: - dropped the three "local_err" patches - tweaked some

[Qemu-devel] [PATCH v6 21/49] tests/tcg: move ARM specific tests into subdir

2018-06-08 Thread Alex Bennée
These only need to be built for ARM guests. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- v2 - do VPATH manipulation in tests/tcg/arm/Makefile.target - merge with fix hello-arm

[Qemu-devel] [PULL 07/31] misc: add pca9552 LED blinker model

2018-06-08 Thread Peter Maydell
From: Cédric Le Goater Specs are available here : https://www.nxp.com/docs/en/application-note/AN264.pdf This is a simple model supporting the basic registers for led and GPIO mode. The device also supports two blinking rates but not the model yet. Signed-off-by: Cédric Le Goater

[Qemu-devel] [PULL 19/31] hw/core/register: Add trailing '\n' to qemu_log() call

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Message-id: 20180606152128.449-6-f4...@amsat.org Signed-off-by: Peter Maydell --- hw/core/register.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/register.c

[Qemu-devel] [PULL 30/31] sdcard: Reflect when the Spec v3 is supported in the Config Register (SCR)

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Message-id: 20180607180641.874-6-f4...@amsat.org Signed-off-by: Peter Maydell --- include/hw/sd/sd.h | 1 + hw/sd/sd.c | 7 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH v6 35/49] tests/tcg: enable building for sh4

2018-06-08 Thread Alex Bennée
As before, using Debian SID compilers. While the compiler can be coerced into generating big-endian code it seems the linker can't deal with it so we only enable the building for little endian SH4. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé

[Qemu-devel] [PULL 02/31] aspeed: remove ignore_memory_transaction_failures on all boards

2018-06-08 Thread Peter Maydell
From: Cédric Le Goater Signed-off-by: Cédric Le Goater Reviewed-by: Peter Maydell Message-id: 20180530064049.27976-2-...@kaod.org Signed-off-by: Peter Maydell --- hw/arm/aspeed.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index

[Qemu-devel] [PULL 29/31] sdcard: Disable SEND_IF_COND (CMD8) for Spec v1

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé CMD8 is "Reserved" in Spec v1.10. Spec v2.00 introduces the SEND_IF_COND command: 6.4.1 Power Up CMD8 is newly added in the Physical Layer Specification Version 2.00 to support multiple voltage ranges and used to check whether the card supports

[Qemu-devel] [PULL 05/31] smbus: add a smbus_eeprom_init_one() routine

2018-06-08 Thread Peter Maydell
From: Cédric Le Goater This is an helper routine to add a single EEPROM on an I2C bus. It can be directly used by smbus_eeprom_init() which adds a certain number of EEPROMs on mips and x86 machines. Signed-off-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé Message-id:

[Qemu-devel] [PATCH v2 2/6] spapr: move lookup of the node into spapr_memory_plug()

2018-06-08 Thread David Hildenbrand
Let's clean the hotplug handler up by moving lookup of the node into the function where it is actually being used. Signed-off-by: David Hildenbrand --- hw/ppc/spapr.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index

[Qemu-devel] [PULL 01/31] arm_gicv3_kvm: kvm_dist_get/put: skip the registers banked by GICR

2018-06-08 Thread Peter Maydell
From: Shannon Zhao While we skip the GIC_INTERNAL irqs, we don't change the register offset accordingly. This will overlap the GICR registers value and leave the last GIC_INTERNAL irq's registers out of update. Fix this by skipping the registers banked by GICR. Also for migration compatibility

[Qemu-devel] [PULL 25/31] target/xtensa: Add trailing '\n' to qemu_log() calls

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Acked-by: Max Filippov Message-id: 20180606152128.449-12-f4...@amsat.org Signed-off-by: Peter Maydell --- target/xtensa/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PULL 13/31] hw/arm: Remove the deprecated xlnx-ep108 machine

2018-06-08 Thread Peter Maydell
From: Thomas Huth It has been marked as deprecated since QEMU v2.11, so it is time to remove this now. The xlnx-zcu102 machine is very much the same and can be used as a replacement instead. Signed-off-by: Thomas Huth Reviewed-by: Alistair Francis Signed-off-by: Peter Maydell ---

[Qemu-devel] [PULL 18/31] ppc/pnv: Add trailing '\n' to qemu_log() calls

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Acked-by: David Gibson Message-id: 20180606152128.449-5-f4...@amsat.org Signed-off-by: Peter Maydell --- hw/ppc/pnv_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/pnv_core.c

[Qemu-devel] [PATCH v2 1/6] spapr: no need to verify the node

2018-06-08 Thread David Hildenbrand
The node property can always be queried and the value has already been verified in pc_dimm_realize(). Acked-by: David Gibson Reviewed-by: Greg Kurz Signed-off-by: David Hildenbrand --- hw/ppc/spapr.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hw/ppc/spapr.c

[Qemu-devel] [PULL 24/31] RISC-V: Add trailing '\n' to qemu_log() calls

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-id: 20180606152128.449-11-f4...@amsat.org Signed-off-by: Peter Maydell --- target/riscv/op_helper.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/target/riscv/op_helper.c

[Qemu-devel] [PATCH v6 22/49] tests/tcg: enable building for ARM

2018-06-08 Thread Alex Bennée
This allows us to use the docker cross compiler image to build these tests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v5 - add EXTRA_RUNS for mmap tests --- tests/tcg/arm/Makefile.include | 8 tests/tcg/arm/Makefile.target

[Qemu-devel] [PULL 17/31] xilinx-dp: Add trailing '\n' to qemu_log() call

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Message-id: 20180606152128.449-4-f4...@amsat.org Signed-off-by: Peter Maydell --- hw/display/xlnx_dp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/display/xlnx_dp.c

[Qemu-devel] [PULL 31/31] sdcard: Disable CMD19/CMD23 for Spec v2

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé These commands got introduced by Spec v3 (see 0c3fb03f7ec and 4481bbc79d2). Signed-off-by: Philippe Mathieu-Daudé Message-id: 20180607180641.874-7-f4...@amsat.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/sd/sd.c | 6 ++ 1 file changed,

[Qemu-devel] [PULL 20/31] hw/mips/boston: Add trailing '\n' to qemu_log() calls

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-id: 20180606152128.449-7-f4...@amsat.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/mips/boston.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mips/boston.c

[Qemu-devel] [PATCH v6 24/49] tests/tcg: enable building for AArch64

2018-06-08 Thread Alex Bennée
We only have compilers for the (default) little endian variants. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v4 - update MAINTAINERS --- MAINTAINERS| 1 +

[Qemu-devel] [PULL 22/31] target/arm: Add trailing '\n' to qemu_log() calls

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-id: 20180606152128.449-9-f4...@amsat.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target/arm/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/arm/helper.c

[Qemu-devel] [PULL 06/31] aspeed: Add EEPROM I2C devices

2018-06-08 Thread Peter Maydell
From: Cédric Le Goater The Aspeed boards have at least one EEPROM to hold the Vital Product Data (VPD). Signed-off-by: Cédric Le Goater Reviewed-by: Andrew Jeffery Message-id: 20180530064049.27976-6-...@kaod.org Signed-off-by: Peter Maydell --- hw/arm/aspeed.c | 13 + 1 file

[Qemu-devel] [PULL 03/31] aspeed: add support for the witherspoon-bmc board

2018-06-08 Thread Peter Maydell
From: Cédric Le Goater The Witherspoon boards are OpenPOWER system hosting POWER9 Processors. Add support for their BMC including a couple of I2C devices as found on real HW. Signed-off-by: Cédric Le Goater Reviewed-by: Andrew Jeffery Message-id: 20180530064049.27976-3-...@kaod.org

[Qemu-devel] [PATCH v6 30/49] tests/tcg: enable building for ppc64

2018-06-08 Thread Alex Bennée
Currently this just enables building the multiarch tests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/tcg/ppc64le/Makefile.include | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/tcg/ppc64le/Makefile.include

[Qemu-devel] [PATCH v6 41/49] tests/tcg/Makefile: update to be called from Makefile.target

2018-06-08 Thread Alex Bennée
This make is now invoked from each individual target make with the appropriate CC and EXTRA_CFLAGS set for each guest. It then includes additional Makefile.targets from: - tests/tcg/multiarch (always) - tests/tcg/$(TARGET_BASE_ARCH) (if available) - tests/tcg/$(TARGET_NAME) The order is

[Qemu-devel] [PULL 09/31] ftgmac100: compute maximum frame size depending on the protocol

2018-06-08 Thread Peter Maydell
From: Cédric Le Goater The maximum frame size includes the CRC and depends if a VLAN tag is inserted or not. Adjust the frame size limit in the transmit handler using on the FTGMAC100State buffer size and in the receive handler use the packet protocol. Signed-off-by: Cédric Le Goater

[Qemu-devel] [PULL 15/31] hw/sd/milkymist-memcard: Add trailing '\n' to qemu_log() call

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-id: 20180606152128.449-2-f4...@amsat.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/sd/milkymist-memcard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH v6 45/49] tests/tcg: override runners for broken tests

2018-06-08 Thread Alex Bennée
To get a clean run of check-tcg these tests are currently skipped: - hello-mips for mips - linux-test for sparc Signed-off-by: Alex Bennée --- v4 - document broken tests in commit - temporarily demote fcvt while fixes percolate upstream v5 - reinstate fcvt - remove test-mmap

[Qemu-devel] [PULL 12/31] ftgmac100: remove check on runt messages

2018-06-08 Thread Peter Maydell
From: Cédric Le Goater This is a ethernet wire limitation not needed in emulation. It breaks U-Boot n/w stack also. Signed-off-by: Cédric Le Goater Message-id: 20180530061711.23673-5-...@kaod.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/net/ftgmac100.c | 6 -- 1

[Qemu-devel] [PATCH v6 33/49] tests/tcg: enable building for HPPA

2018-06-08 Thread Alex Bennée
Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v5 - add EXTRA_RUNS for mmap tests --- tests/docker/Makefile.include | 1 + tests/docker/dockerfiles/debian-hppa-cross.docker | 12

[Qemu-devel] [PULL 04/31] aspeed: add an I2C RTC device to all machines

2018-06-08 Thread Peter Maydell
From: Cédric Le Goater The AST2500 EVB does not have an RTC but we can pretend that one is plugged on the I2C bus header. The romulus and witherspoon boards expects an Epson RX8900 I2C RTC but a ds1338 is good enough for the basic features we need. Signed-off-by: Cédric Le Goater Reviewed-by:

[Qemu-devel] [PATCH v6 20/49] tests/tcg/i386/test-i386: fix printf format

2018-06-08 Thread Alex Bennée
Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/tcg/i386/test-i386.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index caef4da176..a29b41e764 100644 ---

[Qemu-devel] [PULL 16/31] hw/digic: Add trailing '\n' to qemu_log() calls

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-id: 20180606152128.449-3-f4...@amsat.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/char/digic-uart.c | 4 ++-- hw/timer/digic-timer.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)

[Qemu-devel] [PULL 14/31] hw/i2c: Add trace events

2018-06-08 Thread Peter Maydell
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Message-id: 20180606191801.6331-1-f4...@amsat.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- Makefile.objs | 1 + hw/i2c/core.c | 25 ++--- hw/i2c/trace-events | 7 +++ 3

[Qemu-devel] [PATCH v6 11/49] tests/tcg/multiarch: enable additional linux-test tests

2018-06-08 Thread Alex Bennée
Un-comment the remaining tests. I removed the itimer value tests because I'm fairly sure a re-arming timer will always have a different value in it when you grab it. I've also fixed up the clone thread flags as QEMU will only allow a clone to use flags which match glibc. However the test is

[Qemu-devel] [PATCH v6 15/49] tests/tcg/i386: Build fix for hello-i386

2018-06-08 Thread Alex Bennée
From: Fam Zheng We have -Werror=missing-prototype, add a dummy prototype to avoid that warning. Signed-off-by: Fam Zheng Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson --- tests/tcg/i386/hello-i386.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/tcg/i386/hello-i386.c

[Qemu-devel] [PULL 08/31] aspeed: add the pc9552 chips to the witherspoon machine

2018-06-08 Thread Peter Maydell
From: Cédric Le Goater The pca9552 LED blinkers on the Witherspoon machine are used for leds but also as GPIOs to control fans and GPUs. Signed-off-by: Cédric Le Goater Reviewed-by: Andrew Jeffery Reviewed-by: Philippe Mathieu-Daudé Message-id: 20180530064049.27976-8-...@kaod.org

[Qemu-devel] [PULL 11/31] ftgmac100: fix multicast hash routine

2018-06-08 Thread Peter Maydell
From: Cédric Le Goater Based on the multicast hash calculation of the FTGMAC100 Linux driver. Signed-off-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé Message-id: 20180530061711.23673-4-...@kaod.org Signed-off-by: Peter Maydell --- hw/net/ftgmac100.c | 4 ++-- 1 file changed, 2

[Qemu-devel] [PATCH v6 03/49] configure: allow user to specify --cross-cc-cflags-foo=

2018-06-08 Thread Alex Bennée
As an individual compiler may be able to support several targets with the appropriate flags we need to expose this to the user as well. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- v3 - fix up the cross-cc v4 - add --help text - sort cross_cc_foo lines --- configure | 10

[Qemu-devel] [PATCH v6 28/49] tests/tcg/mips: include common mips hello-mips

2018-06-08 Thread Alex Bennée
Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/tcg/mips/Makefile.target | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 tests/tcg/mips/Makefile.target diff --git a/tests/tcg/mips/Makefile.target

[Qemu-devel] [PULL 10/31] ftgmac100: add IEEE 802.1Q VLAN support

2018-06-08 Thread Peter Maydell
From: Cédric Le Goater The ftgmac100 NIC supports VLAN tag insertion and the MAC engine also has a control to remove VLAN tags from received packets. The VLAN control bits and VLAN tag information are contained in the second word of the transmit and receive descriptors. The Insert VLAN bit and

[Qemu-devel] [PATCH v6 05/49] docker: Add "cc" subcommand

2018-06-08 Thread Alex Bennée
Signed-off-by: Fam Zheng [AJB: add if args.paths check] Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- v2 - add if args.paths check to avoid iterating null argument --- tests/docker/docker.py | 25 + 1 file

[Qemu-devel] [PATCH v6 40/49] tests/tcg: enable building for PowerPC

2018-06-08 Thread Alex Bennée
Now we have restored debian-image-powerpc-cross using Debian SID compilers we can build for 32 bit powerpc. Although PPC32 supports a range of pages sizes currently only 4k works so the others are commented out for now. We can also merge the ppc64 support under the base architecture directory to

[Qemu-devel] [PATCH v6 13/49] tests/tcg: move i386 specific tests into subdir

2018-06-08 Thread Alex Bennée
These only need to be built for i386 guests. This includes a stub tests/tcg/i386/Makfile.target which absorbs some of what was in tests/tcg/Makefile. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Richard

[Qemu-devel] [PULL 00/31] target-arm queue

2018-06-08 Thread Peter Maydell
+0100) are available in the Git repository at: git://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20180608 for you to fetch changes up to 113f31c06c6bf16451892b2459d83c9b9c5e9844: sdcard: Disable CMD19/CMD23 for Spec v2 (2018-06-08 13:15:34 +0100

[Qemu-devel] [PATCH v6 06/49] docker: extend "cc" command to accept compiler

2018-06-08 Thread Alex Bennée
When calling our cross-compilation images we want to call something other than the default cc. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Fam Zheng --- v2 - use arg.cc default to simplify logic --- tests/docker/docker.py | 4 +++- 1 file changed, 3

[Qemu-devel] [PATCH v6 29/49] tests/tcg: enable building for s390x

2018-06-08 Thread Alex Bennée
This doesn't add any additional tests but enables building the multiarch tests for s390x. Signed-off-by: Alex Bennée Acked-by: Cornelia Huck Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: David Hildenbrand --- tests/tcg/s390x/Makefile.include | 2 ++ 1

[Qemu-devel] [PATCH v6 46/49] target/sh4: Fix translator.c assertion failure for gUSA

2018-06-08 Thread Alex Bennée
From: Richard Henderson The translator loop does not allow the tb_start hook to set dc->base.is_jmp; the only hook allowed to do that is translate_insn. Split the work between init_disas_context where we validate the gUSA parameters, and translate_insn where we emit code. Signed-off-by:

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 5/8] hw/timer: Add basic M41T80 emulation

2018-06-08 Thread Cédric Le Goater
On 06/06/2018 03:31 PM, BALATON Zoltan wrote: > Basic emulation of the M41T80 serial (I2C) RTC chip. Only getting time > of day is implemented. Setting time and RTC alarm are not supported. > > Signed-off-by: BALATON Zoltan > --- > MAINTAINERS | 1 + >

[Qemu-devel] [PATCH v6 00/49] fix building of tests/tcg

2018-06-08 Thread Alex Bennée
Hi, Not a super amount has changed since the last version but review comments and review tags have been added. The new patches at the end enable a .travis.yml run and try and make the image building part of check-tcg -j safe. Essentially the problem is trying to avoid re-building the images

[Qemu-devel] [PATCH v6 23/49] tests/tcg/arm: fix up test-arm-iwmmxt test

2018-06-08 Thread Alex Bennée
We need to rename the source file to a .S so we can do a single-line assemble and link invocation. We also specify the additional CFLAGS for the compile as it's a non-standard ARM binary. Signed-off-by: Alex Bennée [rth: force fpu configuration] Signed-off-by: Richard Henderson Reviewed-by:

[Qemu-devel] [PATCH v6 38/49] tests/tcg: enable building for RISCV64

2018-06-08 Thread Alex Bennée
As before, using Debian SID compilers. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/docker/Makefile.include| 1 + tests/docker/dockerfiles/debian-riscv64-cross.docker | 12

<    1   2   3   4   5   >