Re: [Qemu-devel] [PATCH 24/42] tpm-be: call request_completed() out of thread

2017-10-19 Thread Stefan Berger
On 10/09/2017 06:56 PM, Marc-André Lureau wrote: Lift from the backend implementation the responsability to call the request_completed() callback outside of thread context. This also simplify frontend/interface work, as they no longer need to care whether the callback is called from a different t

Re: [Qemu-devel] [PATCH 11/42] tpm: remove unused TPMBackendCmd

2017-10-19 Thread Stefan Berger
On 10/09/2017 06:55 PM, Marc-André Lureau wrote: There is only handling of request so far in both backends. Signed-off-by: Marc-André Lureau Review-by: Stefan Berger --- include/sysemu/tpm_backend.h | 9 + backends/tpm.c | 7 ++- hw/tpm/tpm_emulator.c

Re: [Qemu-devel] [PATCH v3 4/7] migration: migrate-continue

2017-10-19 Thread Dr. David Alan Gilbert
* Jiri Denemark (jdene...@redhat.com) wrote: > On Wed, Oct 18, 2017 at 18:40:10 +0100, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > A new qmp command allows the caller to continue from a given > > paused state. > > > > Signed-off-by: Dr. David Alan Gilbert > ..

Re: [Qemu-devel] [PATCH 08/42] tpm: remove TPMDriverOps

2017-10-19 Thread Stefan Berger
On 10/09/2017 06:55 PM, Marc-André Lureau wrote: Use TPMBackendClass to hold class methods/fields. Signed-off-by: Marc-André Lureau Reviewed-by: Stefan Berger --- include/sysemu/tpm_backend.h | 15 +-- backends/tpm.c | 31 --- hw/tp

Re: [Qemu-devel] [PATCH 00/42] TPM: code cleanup & CRB device

2017-10-19 Thread Stefan Berger
On 10/19/2017 10:33 AM, Marc-André Lureau wrote: Hi Stefan - Original Message - On 10/09/2017 06:55 PM, Marc-André Lureau wrote: Hi, I accumulated a series of patch doing some TPM code cleanup while doing review. I removed some dead code, simplified other parts, and tried to isolate i

Re: [Qemu-devel] [PATCH v1 4/9] ps2: fix scancodes sent for Alt-Print key combination (aka SysRq)

2017-10-19 Thread Daniel P. Berrange
On Thu, Oct 19, 2017 at 03:28:43PM +0100, Daniel P. Berrange wrote: > The 'Print' key is special in the AT set 1 / set 2 scancode definitions. > > An unmodified 'Print' key is supposed to send > > AT Set 1: e0 2a e0 37 (Down) e0 b7 e0 aa (Up) > AT Set 2: e0 12 e0 7c (Down) e0 f0 7c e0 f0 12

Re: [Qemu-devel] [PATCH] aarch64: advertise the GIC system register interface

2017-10-19 Thread Peter Maydell
On 18 October 2017 at 01:10, Stefano Stabellini wrote: > Advertise the presence of the GIC system register interface (1<<24) > according to H9.248 of the ARM ARM. > > This patch allows Xen to boot on QEMU aarch64. > > Signed-off-by: Stefano Stabellini > > diff --git a/target/arm/cpu64.c b/target/

Re: [Qemu-devel] [PATCH v5 03/10] qemu-iotests: automatically clean up bash protocol servers

2017-10-19 Thread Jeff Cody
On Thu, Oct 19, 2017 at 12:23:39PM +0200, Paolo Bonzini wrote: > On 18/10/2017 19:27, Jeff Cody wrote: > > On Wed, Oct 18, 2017 at 06:39:26PM +0200, Paolo Bonzini wrote: > >> On 18/10/2017 18:19, Jeff Cody wrote: > > Here is what we need from common.rc for this series: > > > > _rm_test_

Re: [Qemu-devel] [PATCH] fdt_ro.c: implement strnlen

2017-10-19 Thread Programmingkid
> On Oct 19, 2017, at 12:11 AM, David Gibson > wrote: > > On Wed, Oct 18, 2017 at 10:39:57PM -0400, Programmingkid wrote: >> >>> On Oct 18, 2017, at 9:31 PM, David Gibson >>> wrote: >>> >>> On Wed, Oct 18, 2017 at 06:31:16PM -0400, John Arbuckle wrote: Implement the strnlen() function

Re: [Qemu-devel] [PATCH] fix WFI/WFE length in syndrome register

2017-10-19 Thread Peter Maydell
On 18 October 2017 at 23:03, Stefano Stabellini wrote: > WFI/E are 4 bytes long: set ARM_EL_IL_SHIFT in the syndrome. > > Signed-off-by: Stefano Stabellini > > diff --git a/target/arm/internals.h b/target/arm/internals.h > index 1f6efef..cf8c966 100644 > --- a/target/arm/internals.h > +++ b/targe

[Qemu-devel] [PATCH v5 1/8] aspeed: use a ROM memory region to catch invalid writes

2017-10-19 Thread Cédric Le Goater
Some legacy firmwares access unimplemented addresses on the Aspeed SoC (old U-Boot code using variables in the bss when it shouldn't do). Let's use a ROM memory region to catch the invalid writes and support new boards without using the 'ignore_memory_transaction_failures' flag. Signed-off-by: Céd

[Qemu-devel] [PATCH v5 0/8] aspeed: add a witherspoon-bmc machine

2017-10-19 Thread Cédric Le Goater
Hello, This series adds a new Aspeed machine to emulate the BMC of a Witherspoon system. It also extends the other Aspeed machines with I2C devices and adds a simple model for the pca9552 LED blinker present on the witherspoon board. Thanks, C. Changes since v4: - use a ROM memory region Cha

[Qemu-devel] [PATCH v5 2/8] aspeed: remove ignore_memory_transaction_failures all boards

2017-10-19 Thread Cédric Le Goater
Now that we have a dummy ROM device catching the invalid writes, we can remove this flag and work on fixing the current firwmares still accessing unimplemented addresses. Signed-off-by: Cédric Le Goater --- hw/arm/aspeed.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/hw/arm/aspeed.c b/h

[Qemu-devel] [PATCH v5 3/8] aspeed: add support for the witherspoon-bmc board

2017-10-19 Thread Cédric Le Goater
The Witherspoon boards are OpenPOWER system hosting POWER9 Processors. Let's 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 --- Changes since v2: - removed 'ignore_memory_transaction_failures' flag

[Qemu-devel] [PATCH v5 4/8] aspeed: add an I2C RTC device to all machines

2017-10-19 Thread 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: Andrew Jeffery --- hw/a

[Qemu-devel] [PATCH v5 7/8] misc: add pca9552 LED blinker model

2017-10-19 Thread 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 --- Changes since v3: - intro

[Qemu-devel] [PATCH v5 5/8] smbus: add a smbus_eeprom_init_one() routine

2017-10-19 Thread 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é --- hw/i2c/smbus_eeprom.c | 16 +++- i

Re: [Qemu-devel] [PATCH v1 1/9] input: use hex in ps2 keycode trace events

2017-10-19 Thread Eric Blake
On 10/19/2017 09:28 AM, Daniel P. Berrange wrote: > Hardware scancodes are all documented in hex, so use that in trace > events to make it easier to understand. > > Signed-off-by: Daniel P. Berrange > --- > hw/input/trace-events | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-b

[Qemu-devel] [PATCH v5 6/8] aspeed: Add EEPROM I2C devices

2017-10-19 Thread 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 --- hw/arm/aspeed.c | 13 + 1 file changed, 13 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index f0a440f81fd6..246bf3ff67e6

Re: [Qemu-devel] [PATCH v4 2/4] vhost-user-blk: introduce a new vhost-user-blk host device

2017-10-19 Thread Stefan Hajnoczi
On Thu, Oct 19, 2017 at 01:24:08PM +0800, Changpeng Liu wrote: > This commit introduces a new vhost-user device for block, it uses a > chardev to connect with the backend, same with Qemu virito-blk device, > Guest OS still uses the virtio-blk frontend driver. > > To use it, start Qemu with command

Re: [Qemu-devel] [RFC 0/6] enable numa configuration before machine_init() from HMP/QMP

2017-10-19 Thread Igor Mammedov
- Original Message - > From: "Daniel P. Berrange" > To: "Igor Mammedov" > Cc: "peter maydell" , pkre...@redhat.com, > ehabk...@redhat.com, coh...@redhat.com, > qemu-devel@nongnu.org, arm...@redhat.com, pbonz...@redhat.com, > da...@gibson.dropbear.id.au > Sent: Wednesday, October 18, 201

Re: [Qemu-devel] [PATCH v1 2/9] ui: fix crash with sendkey and raw key numbers

2017-10-19 Thread Eric Blake
On 10/19/2017 09:28 AM, Daniel P. Berrange wrote: > Previously we enforced that all key events are using QKeyCodes > at time they are sent: > > commit af07e5ff02ae6d4258fc5331007811d0b1c4d35a > Author: Daniel P. Berrange > Date: Fri Sep 29 11:12:00 2017 +0100 > > ui: convert key even

[Qemu-devel] [PATCH v5 8/8] aspeed: add the pc9552 chips to the witherspoon machine

2017-10-19 Thread 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 --- hw/arm/aspeed.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 246bf

Re: [Qemu-devel] [PATCH v3 0/7] migration: pause-before-switchover

2017-10-19 Thread Jiri Denemark
The libvirt changes which will make use of this new migration capability can be found in migration-pause branch of my gitlab repository: git fetch https://gitlab.com/jirkade/libvirt.git migration-pause It's not properly split into patches, it has no commit message etc., but the functionality

Re: [Qemu-devel] [PATCH v1 3/9] ui: use correct union field for key number

2017-10-19 Thread Eric Blake
On 10/19/2017 09:28 AM, Daniel P. Berrange wrote: > The code converting key numbers to QKeyCode in the 'input-send-event' > command mistakenly accessed the key->u.qcode union field instead of > the key->u.number field. This is harmless because the fields use the > same size datatype in both cases,

Re: [Qemu-devel] [RFC 0/6] enable numa configuration before machine_init() from HMP/QMP

2017-10-19 Thread Daniel P. Berrange
On Thu, Oct 19, 2017 at 11:21:22AM -0400, Igor Mammedov wrote: > - Original Message - > > From: "Daniel P. Berrange" > > To: "Igor Mammedov" > > Cc: "peter maydell" , pkre...@redhat.com, > > ehabk...@redhat.com, coh...@redhat.com, > > qemu-devel@nongnu.org, arm...@redhat.com, pbonz...@re

Re: [Qemu-devel] [PATCH v4 1/4] vhost-user: add new vhost user messages to support virtio config space

2017-10-19 Thread Michael S. Tsirkin
On Thu, Oct 19, 2017 at 04:09:35PM +0200, Stefan Hajnoczi wrote: > On Thu, Oct 19, 2017 at 01:24:07PM +0800, Changpeng Liu wrote: > > @@ -922,6 +931,91 @@ static void vhost_user_set_iotlb_callback(struct > > vhost_dev *dev, int enabled) > > /* No-op as the receive channel is not dedicated to

[Qemu-devel] [Bug 1721221] Re: PCI-E passthrough of Nvidia GTX GFX card to Win 10 guest fails with "kvm_set_phys_mem: error registering slot: Invalid argument"

2017-10-19 Thread David Hildenbrand
Fix will end up in QEMU master soon. ** Changed in: qemu Status: New => Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1721221 Title: PCI-E passthrough of Nvidia GTX GFX card to Wi

Re: [Qemu-devel] [PATCH v4 1/4] vhost-user: add new vhost user messages to support virtio config space

2017-10-19 Thread Michael S. Tsirkin
On Thu, Oct 19, 2017 at 01:24:07PM +0800, Changpeng Liu wrote: > Add VHOST_USER_GET_CONFIG/VHOST_USER_SET_CONFIG messages which can be > used for live migration of vhost user devices, also vhost user devices > can benefit from the messages to get/set virtio config space from/to the > I/O target. Fo

Re: [Qemu-devel] [PATCH] don't hardcode EL1 in extended_addresses_enabled

2017-10-19 Thread Peter Maydell
On 18 October 2017 at 23:41, Stefano Stabellini wrote: > extended_addresses_enabled calls arm_el_is_aa64, hardcoding exception > level 1. Instead, retrieve the current el calling arm_current_el. > > Signed-off-by: Stefano Stabellini > > diff --git a/target/arm/internals.h b/target/arm/internals.h

Re: [Qemu-devel] [PATCH v4 1/4] vhost-user: add new vhost user messages to support virtio config space

2017-10-19 Thread Paolo Bonzini
On 19/10/2017 17:39, Michael S. Tsirkin wrote: >> Add VHOST_USER_GET_CONFIG/VHOST_USER_SET_CONFIG messages which can be >> used for live migration of vhost user devices, also vhost user devices >> can benefit from the messages to get/set virtio config space from/to the >> I/O target. For the purpos

Re: [Qemu-devel] [PATCH v5 1/8] aspeed: use a ROM memory region to catch invalid writes

2017-10-19 Thread Peter Maydell
On 19 October 2017 at 16:12, Cédric Le Goater wrote: > Some legacy firmwares access unimplemented addresses on the Aspeed SoC > (old U-Boot code using variables in the bss when it shouldn't do). > Let's use a ROM memory region to catch the invalid writes and support > new boards without using the

Re: [Qemu-devel] [PATCH v5 2/8] aspeed: remove ignore_memory_transaction_failures all boards

2017-10-19 Thread Peter Maydell
On 19 October 2017 at 16:12, Cédric Le Goater wrote: > Now that we have a dummy ROM device catching the invalid writes, we > can remove this flag and work on fixing the current firwmares still > accessing unimplemented addresses. > > Signed-off-by: Cédric Le Goater > --- Reviewed-by: Peter Mayde

Re: [Qemu-devel] [PATCH 0/2] Enable the simple virtio tests on s390x, too

2017-10-19 Thread Cornelia Huck
On Wed, 18 Oct 2017 16:20:26 +0200 Thomas Huth wrote: > First patch introduces the qtest_startf() function that can be used > to start tests with a printf-like string. This patch was originally > part of Eric's bigger qtest refactoring series, and I originally wanted > to wait 'til it's included

Re: [Qemu-devel] [PATCH v5 7/8] misc: add pca9552 LED blinker model

2017-10-19 Thread Peter Maydell
On 19 October 2017 at 16:12, Cédric Le Goater wrote: > 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. >

Re: [Qemu-devel] [PULL 00/29] Misc patches for 2017-10-18

2017-10-19 Thread Peter Maydell
On 18 October 2017 at 17:11, Paolo Bonzini wrote: > The following changes since commit a0b261db8c030813e30a39eae47359ac2a37f7e2: > > Merge remote-tracking branch > 'remotes/ehabkost/tags/python-next-pull-request' into staging (2017-10-12 > 10:02:09 +0100) > > are available in the git repositor

[Qemu-devel] [PATCH v6 5/9] i386: Support Capstone in disas_set_info

2017-10-19 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- disas.c | 4 target/i386/cpu.c | 7 +++ 2 files changed, 11 insertions(+) diff --git a/disas.c b/disas.c index e392a2926e..63dc573e9f 100644 -

[Qemu-devel] [PATCH v6 0/9] Support the Capstone disassembler

2017-10-19 Thread Richard Henderson
Changes since v5: * Rearranged how we choose git submodule vs system installed library. By default, the system library will be used, if present; Followed by git submodule, if present; Followed by not-git submodule, if for some reason a tarball contained it. * Force the decision one

[Qemu-devel] [PATCH v6 1/9] target/i386: Convert to disas_set_info hook

2017-10-19 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- disas.c | 22 ++ monitor.c | 21 - target/i386/cpu.c | 12 target/i386/tr

[Qemu-devel] [PATCH v6 4/9] disas: Support the Capstone disassembler library

2017-10-19 Thread Richard Henderson
If configured, prefer this over our rather dated copy of the GPLv2-only binutils. This will be especially apparent with the proposed vector extensions to TCG, as disas/i386.c does not handle AVX. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/disas/bfd.h

[Qemu-devel] [PATCH v6 2/9] target/ppc: Convert to disas_set_info hook

2017-10-19 Thread Richard Henderson
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- disas.c | 33 - monitor.c | 5 - target/ppc/translate.c | 5 + target/ppc/tra

[Qemu-devel] [PATCH v6 9/9] disas: Add capstone as submodule

2017-10-19 Thread Richard Henderson
Do not require the submodule, but use it if present. Allow the command-line to override system or git submodule either way. Signed-off-by: Richard Henderson --- Makefile| 13 + .gitmodules | 3 +++ capstone| 1 + configure | 59 +++

[Qemu-devel] [PATCH v6 6/9] arm: Support Capstone in disas_set_info

2017-10-19 Thread Richard Henderson
Tested-by: Alex Bennée Tested-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- disas.c | 3 +++ target/arm/cpu.c | 21 ++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/di

[Qemu-devel] [PATCH v6 7/9] ppc: Support Capstone in disas_set_info

2017-10-19 Thread Richard Henderson
Cc: qemu-...@nongnu.org Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- disas.c | 4 target/ppc/translate_init.c | 6 ++ 2 files changed, 10 insertions(+) diff --git a/disas.c b/disas.c index 8d9bd4901c..e52e776a60 100644 --- a/disas.c +++ b

[Qemu-devel] [PATCH v6 8/9] disas: Remove monitor_disas_is_physical

2017-10-19 Thread Richard Henderson
Even though there is only one monitor, and thus no race on this global data object, there is also no point in having it. We can just as well record the decision in the read_memory_function that we select. Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Be

[Qemu-devel] [PATCH v6 3/9] disas: Remove unused flags arguments

2017-10-19 Thread Richard Henderson
Now that every target is using the disas_set_info hook, the flags argument is unused. Remove it. Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- include/disas/disas.h | 4 ++-- include/exec/log.h

Re: [Qemu-devel] [PATCH v6 0/9] Support the Capstone disassembler

2017-10-19 Thread Peter Maydell
On 19 October 2017 at 16:51, Richard Henderson wrote: > Changes since v5: > * Rearranged how we choose git submodule vs system installed library. > By default, the system library will be used, if present; > Followed by git submodule, if present; > Followed by not-git submodule, if fo

Re: [Qemu-devel] [PATCH v1 2/2] s390x/tcg: low-address protection support

2017-10-19 Thread David Hildenbrand
On 19.10.2017 10:56, Cornelia Huck wrote: > git://github.com/cohuck/qemu lap Did a diff to my branch, looks very good! Thanks! -- Thanks, David

Re: [Qemu-devel] [PATCH v6 0/9] Support the Capstone disassembler

2017-10-19 Thread Daniel P. Berrange
On Thu, Oct 19, 2017 at 04:54:59PM +0100, Peter Maydell wrote: > On 19 October 2017 at 16:51, Richard Henderson > wrote: > > Changes since v5: > > * Rearranged how we choose git submodule vs system installed library. > > By default, the system library will be used, if present; > > Follow

[Qemu-devel] [PATCH v1] os-posix: Add -unshare option

2017-10-19 Thread Ross Lagerwall
Add an option to allow calling unshare() just before starting guest execution. The option allows unsharing one or more of the mount namespace, the network namespace, and the IPC namespace. This is useful to restrict the ability of QEMU to cause damage to the system should it be compromised. An exa

Re: [Qemu-devel] [PATCH v5 1/8] aspeed: use a ROM memory region to catch invalid writes

2017-10-19 Thread Cédric Le Goater
On 10/19/2017 05:44 PM, Peter Maydell wrote: > On 19 October 2017 at 16:12, Cédric Le Goater wrote: >> Some legacy firmwares access unimplemented addresses on the Aspeed SoC >> (old U-Boot code using variables in the bss when it shouldn't do). >> Let's use a ROM memory region to catch the invalid

Re: [Qemu-devel] [PATCH v2] io: introduce a network socket listener API

2017-10-19 Thread Eric Blake
On 10/18/2017 09:06 AM, Daniel P. Berrange wrote: > The existing QIOChannelSocket class provides the ability to > listen on a single socket at a time. This patch introduces > a QIONetListener class that provides a higher level API > concept around listening for network services, allowing > for list

[Qemu-devel] [PATCH v3 00/46] Remove some of the fprintf(stderr, "*

2017-10-19 Thread Alistair Francis
Continue on improving QEMUs logging/error messages by removing more fprintf()'s. Unfortunatley my Coccinelle skills aren't that great so it's all done in some nasty regex and a little bit of manual work. V3: - Rebase - All sorts of style fixes - Remove "qemu: " prefixes from print messages V2

[Qemu-devel] [PATCH v3 08/46] hw/char: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 07/46] hw/bt: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 02/46] Fixes after renaming __FUNCTION__ to __func__

2017-10-19 Thread Alistair Francis
Signed-off-by: Alistair Francis Cc: Eric Blake Reviewed-by: Eric Blake --- V3: - Squash onto single lines - Don't fix indentation of case in omap_prcm_apll_update() hw/arm/omap1.c | 8 +++- hw/block/onenand.c | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/a

[Qemu-devel] [PATCH v3 14/46] hw/i2c: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 03/46] audio: Replace AUDIO_FUNC with __func__

2017-10-19 Thread Alistair Francis
Apparently we don't use __MSC_VER as a compiler anymore and we always require a C99 compiler (which means we always have __func__) so we don't need a special AUDIO_FUNC macro. We can just replace AUDIO_FUNC with __func__ instead. Checkpatch failures were manually fixed. Signed-off-by: Alistair Fr

[Qemu-devel] [PATCH v3 18/46] hw/intc: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig

[Qemu-devel] [PATCH v3 06/46] hw/block: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 16/46] hw/ide: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 05/46] hw/arm: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 04/46] tests: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 23/46] hw/mips: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 10/46] hw/cris: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 25/46] hw/moxie: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 13/46] hw/gpio: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 09/46] hw/core: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 31/46] hw/ppc: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 26/46] hw/net: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 01/46] Replace all occurances of __FUNCTION__ with __func__

2017-10-19 Thread Alistair Francis
Replace all occurs of __FUNCTION__ except for the check in checkpatch with the non GCC specific __func__. One line in hcd-musb.c was manually tweaked to pass checkpatch. Signed-off-by: Alistair Francis Cc: Gerd Hoffmann Cc: Andrzej Zaborowski Cc: Stefano Stabellini Cc: Anthony Perard Cc: Joh

[Qemu-devel] [PATCH v3 44/46] tcg: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 28/46] hw/nvram: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 12/46] hw/dma: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 22/46] hw/microblaze: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [Bug 1724485] Re: Invalid assertion in arm_read_memory_func

2017-10-19 Thread Richard Henderson
** Changed in: qemu Assignee: (unassigned) => Richard Henderson (rth) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1724485 Title: Invalid assertion in arm_read_memory_func Status in QEMU:

[Qemu-devel] [PATCH v3 30/46] hw/pci*: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 11/46] hw/display: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 21/46] hw/lm32: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 35/46] hw/sh4: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v6 0/8] aspeed: add a witherspoon-bmc machine

2017-10-19 Thread Cédric Le Goater
Hello, This series adds a new Aspeed machine to emulate the BMC of a Witherspoon system. It also extends the other Aspeed machines with I2C devices and adds a simple model for the pca9552 LED blinker present on the witherspoon board. Thanks, C. Changes since v5: - created the ROM memory regio

[Qemu-devel] [PATCH v3 19/46] hw/ipmi: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 24/46] hw/misc: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v6 7/8] misc: add pca9552 LED blinker model

2017-10-19 Thread 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 Reviewed-by: Peter Maydell ---

[Qemu-devel] [PATCH v3 36/46] hw/sparc*: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 17/46] hw/input: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 27/46] hw/nios2: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

Re: [Qemu-devel] [PATCH 1/8] xen: link against xentoolcore

2017-10-19 Thread Ian Jackson
Anthony PERARD writes ("Re: [PATCH 1/8] xen: link against xentoolcore"): > I don't think it is necessary to do anything in qemu. The linker should > find on its own the new libxentoolcore as long as an option > -Wl,-rpath-link= provide the right path to xentoolcore when building > qemu from xen.git

[Qemu-devel] [PATCH v3 20/46] hw/isa: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig

[Qemu-devel] [PATCH v3 38/46] hw/timer: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 32/46] hw/s390x: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 40/46] hw/watchdog: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 29/46] hw/openrisc: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 34/46] hw/sd: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 43/46] ui: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH 2/8] xen: restrict: use xentoolcore_restrict_all

2017-10-19 Thread Ian Jackson
And insist that it works. Drop individual use of xendevicemodel_restrict and xenforeignmemory_restrict. These are not actually effective in this version of qemu, because qemu has a large number of fds open onto various Xen control devices. The restriction arrangements are still not right, becaus

[Qemu-devel] [PATCH v3 33/46] hw/scsi: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 37/46] hw/ssi: Replace fprintf(stderr, "*\n" with error_report()

2017-10-19 Thread Alistair Francis
Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|I

[Qemu-devel] [PATCH v3 45/46] target: Use qemu_log() instead of fprintf(stderr, ...)

2017-10-19 Thread Alistair Francis
Signed-off-by: Alistair Francis --- target/cris/translate.c | 2 +- target/ppc/translate.c | 22 +++--- target/sh4/translate.c | 4 ++-- target/unicore32/translate.c | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/target/cris/translate

[Qemu-devel] [PATCH 5/8] xen: move xc_interface compatibility fallback further up the file

2017-10-19 Thread Ian Jackson
We are going to want to use the dummy xendevicemodel_handle type in new stub functions in the CONFIG_XEN_CTRL_INTERFACE_VERSION < 41000 section. So we need to provide that definition, or (as applicable) include the appropriate header, earlier in the file. (Ideally the newer compatibility layers w

<    1   2   3   4   >