[Qemu-devel] [PULL] Update OpenBIOS images

2017-10-19 Thread Mark Cave-Ayland
Hi Peter, Here are the latest set of updates for OpenBIOS which should be pulled after the sun4u patches have been applied due to breaking changes in the sun4u machine. ATB, Mark. The following changes since commit 861cd431c99e56ddb5953ca1da164a9c32b477ca: Merge remote-tracking branch 're

Re: [Qemu-devel] [PULL 00/11] Ui 20171016 patches

2017-10-19 Thread Gerd Hoffmann
Hi, > I just noticed that I now get the following warning message when I > change to an older git branch: > > warning: unable to rmdir ui/keycodemapdb: Directory not empty > > ... this is kind of ugly, is there a way to fix this? Hmm, no good idea, other than just rebasing the branch to lates

Re: [Qemu-devel] [RFC v2 15/22] monitor: send event when request queue full

2017-10-19 Thread Peter Xu
On Wed, Oct 18, 2017 at 05:28:04PM +0200, Stefan Hajnoczi wrote: > On Mon, Oct 16, 2017 at 04:11:58PM +0800, Peter Xu wrote: > > On Thu, Oct 12, 2017 at 01:56:20PM +0100, Stefan Hajnoczi wrote: > > > On Fri, Sep 29, 2017 at 11:38:37AM +0800, Peter Xu wrote: > > > > Set maximum QMP request queue len

Re: [Qemu-devel] [PATCH v10 9/9] tpm: Move tpm_cleanup() to right place

2017-10-19 Thread Richard W.M. Jones
On Fri, Sep 29, 2017 at 02:10:21PM +0300, Amarnath Valluri wrote: > As Emulator TPM backend uses chardev, tpm cleanup should happen before chardev > similar to other vhost-users. > > Signed-off-by: Amarnath Valluri > --- > tpm.c | 1 - > vl.c | 1 + > 2 files changed, 1 insertion(+), 1 deletio

[Qemu-devel] [PATCH] tpm: Don't call tpm_cleanup unless CONFIG_TPM.

2017-10-19 Thread Richard W.M. Jones
When compiling with --disable-tpm: ../vl.o: In function `main': /home/rjones/d/qemu/vl.c:4908: undefined reference to `tpm_cleanup' This appears to have been introduced in commit c37cacabf228 ("tpm: Move tpm_cleanup() to right place"). Signed-off-by: Richard W.M. Jones --- vl.c | 2 ++ 1 f

Re: [Qemu-devel] [RFC 2/2] KVM: add virtio-pmem driver

2017-10-19 Thread Stefan Hajnoczi
On Wed, Oct 18, 2017 at 08:51:37AM -0700, Dan Williams wrote: > On Wed, Oct 18, 2017 at 6:03 AM, Stefan Hajnoczi wrote: > > On Tue, Oct 17, 2017 at 04:30:41AM -0400, Pankaj Gupta wrote: > >> > >> > > Are you saying do it as existing i.e ACPI pmem like interface? > >> > > The reason we have created

Re: [Qemu-devel] [RFC 2/2] KVM: add virtio-pmem driver

2017-10-19 Thread Christoph Hellwig
On Wed, Oct 18, 2017 at 08:51:37AM -0700, Dan Williams wrote: > This use case is not "Persistent Memory". Persistent Memory is > something you can map and make persistent with CPU instructions. > Anything that requires a driver call is device driver managed "Shared > Memory". How is this any diffe

Re: [Qemu-devel] [PATCH v16 5/5] virtio-balloon: VIRTIO_BALLOON_F_CTRL_VQ

2017-10-19 Thread Wei Wang
On 10/13/2017 09:38 PM, Michael S. Tsirkin wrote: On Thu, Oct 12, 2017 at 11:54:56AM +0800, Wei Wang wrote: But I think flushing is very fragile. You will easily run into races if one of the actors gets out of sync and keeps adding data. I think adding an ID in the free vq stream is a more robus

[Qemu-devel] [PULL 0/1] Seabios 1.11 prerelease 20171019 patches

2017-10-19 Thread Gerd Hoffmann
prerelease-20171019-pull-request for you to fetch changes up to 083fab0290f2c40d3d04f7f22eed9c8f2d5b6787: seabios: update to 1.11 prerelease (2017-10-19 10:14:26 +0200) seabios: update to 1.11

Re: [Qemu-devel] ivshmem Windows Driver

2017-10-19 Thread Ladi Prosek
On Wed, Oct 18, 2017 at 5:04 PM, wrote: > Hi Ladi & Yan, > > I am pleased to present the completed driver for review, please see: > > https://github.com/gnif/kvm-guest-drivers-windows Awesome! Feel free to open pull request, it should be easier to comment on. * WoW considerations: It would be

Re: [Qemu-devel] ivshmem Windows Driver

2017-10-19 Thread geoff--- via Qemu-devel
On 2017-10-19 19:35, Ladi Prosek wrote: On Wed, Oct 18, 2017 at 5:04 PM, wrote: Hi Ladi & Yan, I am pleased to present the completed driver for review, please see: https://github.com/gnif/kvm-guest-drivers-windows Awesome! Feel free to open pull request, it should be easier to comment on.

Re: [Qemu-devel] [PATCH v11 3/6] migration: calculate vCPU blocktime on dst side

2017-10-19 Thread Alexey Perevalov
On 10/18/2017 09:59 PM, Dr. David Alan Gilbert wrote: * Alexey Perevalov (a.pereva...@samsung.com) wrote: This patch provides blocktime calculation per vCPU, as a summary and as a overlapped value for all vCPUs. This approach was suggested by Peter Xu, as an improvements of previous approch whe

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

2017-10-19 Thread Cornelia Huck
On Wed, 18 Oct 2017 21:34:07 +0200 David Hildenbrand wrote: > On 18.10.2017 20:21, Thomas Huth wrote: > > On 16.10.2017 22:23, David Hildenbrand wrote: > >> This is a neat way to implement low address protection, whereby > >> only the first 512 bytes of the first two pages (each 4096 bytes) of

Re: [Qemu-devel] [PATCH v11 3/6] migration: calculate vCPU blocktime on dst side

2017-10-19 Thread Dr. David Alan Gilbert
* Alexey Perevalov (a.pereva...@samsung.com) wrote: > On 10/18/2017 09:59 PM, Dr. David Alan Gilbert wrote: > > * Alexey Perevalov (a.pereva...@samsung.com) wrote: > > > This patch provides blocktime calculation per vCPU, > > > as a summary and as a overlapped value for all vCPUs. > > > > > > This

Re: [Qemu-devel] [Xen-devel] [PATCH 3/3 v4] xenfb: Add [feature|request]-raw-pointer

2017-10-19 Thread Owen Smith
> -Original Message- > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > Sent: 12 October 2017 18:27 > To: Paul Durrant > Cc: 'Gerd Hoffmann' ; 'Stefano Stabellini' > ; Anthony Perard ; > qemu-devel@nongnu.org; xen-de...@lists.xenproject.org; Owen Smith > > Subject: RE: [Xen-deve

Re: [Qemu-devel] ivshmem Windows Driver

2017-10-19 Thread Ladi Prosek
On Thu, Oct 19, 2017 at 10:44 AM, wrote: > On 2017-10-19 19:35, Ladi Prosek wrote: >> >> On Wed, Oct 18, 2017 at 5:04 PM, wrote: >>> >>> Hi Ladi & Yan, >>> >>> I am pleased to present the completed driver for review, please see: >>> >>> https://github.com/gnif/kvm-guest-drivers-windows >> >> >>

Re: [Qemu-devel] [PATCH 4/6] tests: Add migration xbzrle test

2017-10-19 Thread Dr. David Alan Gilbert
* Juan Quintela (quint...@redhat.com) wrote: > "Dr. David Alan Gilbert" wrote: > > * Juan Quintela (quint...@redhat.com) wrote: > >> Signed-off-by: Juan Quintela > > > +static void test_xbzrle(const char *uri) > >> +{ > >> +QTestState *from, *to; > >> + > >> +test_migrate_start(&from, &t

Re: [Qemu-devel] ivshmem Windows Driver

2017-10-19 Thread geoff--- via Qemu-devel
On 2017-10-19 20:01, Ladi Prosek wrote: On Thu, Oct 19, 2017 at 10:44 AM, wrote: On 2017-10-19 19:35, Ladi Prosek wrote: On Wed, Oct 18, 2017 at 5:04 PM, wrote: Hi Ladi & Yan, I am pleased to present the completed driver for review, please see: https://github.com/gnif/kvm-guest-drivers

Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test

2017-10-19 Thread Daniel P. Berrange
On Thu, Oct 19, 2017 at 11:18:33AM +0800, Peter Xu wrote: > On Wed, Oct 18, 2017 at 01:10:38PM +0100, Daniel P. Berrange wrote: > > On Wed, Oct 18, 2017 at 01:36:56PM +0200, Juan Quintela wrote: > > > Peter Xu wrote: > > > > On Wed, Oct 04, 2017 at 12:39:28PM +0200, Juan Quintela wrote: > > > > >

Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test

2017-10-19 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Wed, Oct 18, 2017 at 01:10:38PM +0100, Daniel P. Berrange wrote: > > On Wed, Oct 18, 2017 at 01:36:56PM +0200, Juan Quintela wrote: > > > Peter Xu wrote: > > > > On Wed, Oct 04, 2017 at 12:39:28PM +0200, Juan Quintela wrote: > > > > > > > > [...] > > > >

Re: [Qemu-devel] [PATCH v3 4/7] s390x: refactor error handling for XSCH handler

2017-10-19 Thread Halil Pasic
On 10/19/2017 08:11 AM, Dong Jia Shi wrote: >> +if (!sch || !css_subch_visible(sch)) { >> +setcc(cpu, 3); > ?: > s/3/IOINST_CC_NOT_OPERATIONAL/ > > This also applies to other alike cases. > I do not know. My first reaction was that I'm against because were IOInstEnding strongly typ

Re: [Qemu-devel] [PULL 00/11] Ui 20171016 patches

2017-10-19 Thread Daniel P. Berrange
On Thu, Oct 19, 2017 at 08:50:02AM +0200, Thomas Huth wrote: > On 16.10.2017 15:16, Gerd Hoffmann wrote: > > The following changes since commit f90ea7ba7c5ae7010ee0ce062207ae42530f57d6: > > > > Merge remote-tracking branch > > 'remotes/pmaydell/tags/pull-target-arm-20171012' into staging (2017-

Re: [Qemu-devel] [PATCH v3 5/7] s390x: refactor error handling for CSCH handler

2017-10-19 Thread Cornelia Huck
On Thu, 19 Oct 2017 14:14:45 +0800 Dong Jia Shi wrote: > * Halil Pasic [2017-10-17 16:04:51 +0200]: > > > Simplify the error handling of the cSCH. Let the code detecting the > > condition tell (in a less ambiguous way) how it's to be handled. No > > changes in behavior. > > > > Signed-off-by:

Re: [Qemu-devel] [PULL 00/11] Ui 20171016 patches

2017-10-19 Thread Daniel P. Berrange
On Thu, Oct 19, 2017 at 09:14:12AM +0200, Gerd Hoffmann wrote: > Hi, > > > I just noticed that I now get the following warning message when I > > change to an older git branch: > > > > warning: unable to rmdir ui/keycodemapdb: Directory not empty > > > > ... this is kind of ugly, is there a wa

Re: [Qemu-devel] [PATCH] build: Fix dtc-checkout race condition in Makefile

2017-10-19 Thread Daniel P. Berrange
On Wed, Oct 18, 2017 at 02:40:23PM -0400, Aaron Lindsay wrote: > This was introduced by: > commit aef45d51d1204f3335fb99de6658e0c5612c2b67 > Author: Daniel P. Berrange > Date: Fri Sep 29 11:11:56 2017 +0100 > > build: automatically handle GIT submodule checkout for dtc > > On

Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test

2017-10-19 Thread Dr. David Alan Gilbert
* Daniel P. Berrange (berra...@redhat.com) wrote: > On Thu, Oct 19, 2017 at 11:18:33AM +0800, Peter Xu wrote: > > On Wed, Oct 18, 2017 at 01:10:38PM +0100, Daniel P. Berrange wrote: > > > On Wed, Oct 18, 2017 at 01:36:56PM +0200, Juan Quintela wrote: > > > > Peter Xu wrote: > > > > > On Wed, Oct 0

Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test

2017-10-19 Thread Daniel P. Berrange
On Thu, Oct 19, 2017 at 10:16:23AM +0100, Dr. David Alan Gilbert wrote: > * Daniel P. Berrange (berra...@redhat.com) wrote: > > On Thu, Oct 19, 2017 at 11:18:33AM +0800, Peter Xu wrote: > > > On Wed, Oct 18, 2017 at 01:10:38PM +0100, Daniel P. Berrange wrote: > > > > On Wed, Oct 18, 2017 at 01:36:5

Re: [Qemu-devel] [PATCH 1/6] tests: Add basic migration precopy test

2017-10-19 Thread Dr. David Alan Gilbert
* Daniel P. Berrange (berra...@redhat.com) wrote: > On Thu, Oct 19, 2017 at 10:16:23AM +0100, Dr. David Alan Gilbert wrote: > > * Daniel P. Berrange (berra...@redhat.com) wrote: > > > On Thu, Oct 19, 2017 at 11:18:33AM +0800, Peter Xu wrote: > > > > On Wed, Oct 18, 2017 at 01:10:38PM +0100, Daniel

Re: [Qemu-devel] [PATCH] hw/pci-host: Fix x86 Host Bridges 64bit PCI hole

2017-10-19 Thread Marcel Apfelbaum
Hi Laszlo, On 18/10/2017 14:40, Laszlo Ersek wrote: Hi Marcel, On 10/18/17 11:58, Marcel Apfelbaum wrote: Currently there is no MMIO range over 4G reserved for PCI hotplug. Since the 32bit PCI hole depends on the number of cold-plugged PCI devices and other factors, it is very possible is too

[Qemu-devel] [Block-io] qemu virtual machine get stuck during startup

2017-10-19 Thread Wahaha Huang
Hi there, I'm a newbie of qemu(2.10.0), when i start a vm from qemu, it sometimes get stuck, through gdb debugging, i found aio_worker thread(list below) missing when vm get stuck, but i don't know why, does anybody has further idea about this? (gdb) info threads > > Id Target Id Frame

Re: [Qemu-devel] [PATCH 3/4] multiboot: load elf sections and section headers

2017-10-19 Thread Kevin Wolf
Am 18.10.2017 um 19:22 hat Anatol Pomozov geschrieben: > Hello qemu-devs, > > This patchset has been posted a while ago. I would like to move > forward with it and look at the next task (e.g. multiboot2 support in > QEMU). Who is the multiboot code maintainer who can help to review > this patchset

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

2017-10-19 Thread Peter Maydell
On 19 October 2017 at 05:11, David Gibson wrote: > On Wed, Oct 18, 2017 at 10:39:57PM -0400, Programmingkid wrote: >> QEMU supports Mac OS 10.5 and higher. The strnlen() function might >> have been added to Mac OS X in version 10.7. > > Wow. No strnlen() in MacOS until that recently, that's prett

Re: [Qemu-devel] [PATCH] pci: allow 32-bit PCI IO accesses to pass through the PCI bridge

2017-10-19 Thread Marcel Apfelbaum
On 11/10/2017 9:35, Mark Cave-Ayland wrote: On 01/10/17 22:44, Mark Cave-Ayland wrote: On 28/09/17 08:56, Laszlo Ersek wrote: On 09/28/17 09:31, Mark Cave-Ayland wrote: On 25/09/17 09:11, Dr. David Alan Gilbert wrote: * Marcel Apfelbaum (mar...@redhat.com) wrote: On 23/09/2017 11:23, Mark

Re: [Qemu-devel] ivshmem Windows Driver

2017-10-19 Thread geoff--- via Qemu-devel
On 2017-10-19 20:07, ge...@hostfission.com wrote: On 2017-10-19 20:01, Ladi Prosek wrote: On Thu, Oct 19, 2017 at 10:44 AM, wrote: On 2017-10-19 19:35, Ladi Prosek wrote: On Wed, Oct 18, 2017 at 5:04 PM, wrote: Hi Ladi & Yan, I am pleased to present the completed driver for review, ple

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 10:01:57 -0500 Eric Blake wrote: > On 10/18/2017 09:20 AM, 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

Re: [Qemu-devel] [RFC v2 3/6] possible_cpus: add CPUArchId::type field

2017-10-19 Thread David Gibson
On Wed, Oct 18, 2017 at 01:12:12PM +0200, Igor Mammedov wrote: > For enabling early cpu to numa node configuration at runtime > qmp_query_hotpluggable_cpus() should provide a list of available > cpu slots at early stage, before machine_init() is called and > the 1st cpu is created, so that mgmt mig

Re: [Qemu-devel] [PATCH qemu v3] RFC: ppc/spapr: Receive and store device tree blob from SLOF

2017-10-19 Thread David Gibson
On Tue, Oct 17, 2017 at 04:55:03PM +1100, Alexey Kardashevskiy wrote: > On 16/10/17 20:36, David Gibson wrote: > > On Mon, Oct 16, 2017 at 04:20:04PM +1100, Alexey Kardashevskiy > wrote: [snip] > >> +static const VMStateDescription vmstate_spapr_dtb = { > >> +.name = "spapr_dtb", > >> +.ver

Re: [Qemu-devel] ivshmem Windows Driver

2017-10-19 Thread Ladi Prosek
On Thu, Oct 19, 2017 at 11:41 AM, wrote: > On 2017-10-19 20:07, ge...@hostfission.com wrote: >> >> On 2017-10-19 20:01, Ladi Prosek wrote: >>> >>> On Thu, Oct 19, 2017 at 10:44 AM, wrote: On 2017-10-19 19:35, Ladi Prosek wrote: > > > On Wed, Oct 18, 2017 at 5:04 PM, wrot

Re: [Qemu-devel] [PULL 00/34] ppc-for-2.11 queue 20171017

2017-10-19 Thread Peter Maydell
On 17 October 2017 at 05:21, David Gibson wrote: > The following changes since commit c5bbcaa4b7c0f8a322bebe9ec563560178a68b55: > > Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging > (2017-10-16 17:29:16 +0100) > > are available in the git repository at: > > git://git

[Qemu-devel] [PATCH v4 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 v3: - introduce a dummy ROM device

[Qemu-devel] [PATCH v4 1/8] aspeed: introduce a dummy ROM device 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 add a dummy ROM device to catch the invalid writes and support new board without using the 'ignore_memory_transaction_failures' flags. Signed-off-by: Cédr

[Qemu-devel] [PATCH v4 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 v4 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

[Qemu-devel] [PATCH v4 2/8] aspeed: remove ignore_memory_transaction_failures on 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 v4 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 v4 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 2e08e

[Qemu-devel] [PATCH v4 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 8683388e632c..2e08eb49f443

[Qemu-devel] [PATCH v4 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

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

2017-10-19 Thread Paolo Bonzini
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_img > _cleanup_nbd > _cleanup_vxhs > _cleanup_rbd > _cleanu

Re: [Qemu-devel] [PATCH] hw/pci-host: Fix x86 Host Bridges 64bit PCI hole

2017-10-19 Thread Laszlo Ersek
On 10/19/17 11:30, Marcel Apfelbaum wrote: > > Hi Laszlo, > > On 18/10/2017 14:40, Laszlo Ersek wrote: >> Hi Marcel, >> >> On 10/18/17 11:58, Marcel Apfelbaum wrote: >>> Currently there is no MMIO range over 4G >>> reserved for PCI hotplug. Since the 32bit PCI hole >>> depends on the number of co

Re: [Qemu-devel] ivshmem Windows Driver

2017-10-19 Thread geoff--- via Qemu-devel
On 2017-10-19 20:51, Ladi Prosek wrote: On Thu, Oct 19, 2017 at 11:41 AM, wrote: On 2017-10-19 20:07, ge...@hostfission.com wrote: On 2017-10-19 20:01, Ladi Prosek wrote: On Thu, Oct 19, 2017 at 10:44 AM, wrote: On 2017-10-19 19:35, Ladi Prosek wrote: On Wed, Oct 18, 2017 at 5:04 PM

Re: [Qemu-devel] [PATCH v3 0/7] improve error handling for IO instr

2017-10-19 Thread Cornelia Huck
On Tue, 17 Oct 2017 16:04:46 +0200 Halil Pasic wrote: > Abstract > === > > The basic idea is: tell how to handle an unusual condition where it's > identified, instead of mapping it to an errno (more or less arbitrarily), > then possibly mapping these errnos around, to finally (mentally) map

Re: [Qemu-devel] [PATCH v4 1/8] aspeed: introduce a dummy ROM device to catch invalid writes

2017-10-19 Thread Peter Maydell
On 19 October 2017 at 11:04, 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 add a dummy ROM device to catch the invalid writes and support > new board without using the 'i

Re: [Qemu-devel] [PULL 0/4] Vga 20171017 patches

2017-10-19 Thread Peter Maydell
On 17 October 2017 at 09:24, Gerd Hoffmann wrote: > The following changes since commit c5bbcaa4b7c0f8a322bebe9ec563560178a68b55: > > Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging > (2017-10-16 17:29:16 +0100) > > are available in the git repository at: > > git://gi

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

2017-10-19 Thread Dr. David Alan Gilbert
* Peter Xu (pet...@redhat.com) wrote: > On Wed, Oct 18, 2017 at 06:40:06PM +0100, Dr. David Alan Gilbert (git) wrote: > > [...] > > > The precopy flow is: > > active->pre-switchover->device->completed > > > > The postcopy flow is: > > active->pre-switchover->postcopy-active->completed > > The n

Re: [Qemu-devel] [PATCH] hw/pci-host: Fix x86 Host Bridges 64bit PCI hole

2017-10-19 Thread Marcel Apfelbaum
Hi Laszlo, On 19/10/2017 13:41, Laszlo Ersek wrote: On 10/19/17 11:30, Marcel Apfelbaum wrote: Hi Laszlo, On 18/10/2017 14:40, Laszlo Ersek wrote: Hi Marcel, On 10/18/17 11:58, Marcel Apfelbaum wrote: Currently there is no MMIO range over 4G reserved for PCI hotplug. Since the 32bit PCI ho

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

2017-10-19 Thread Paolo Bonzini
On 19/10/2017 07:24, Changpeng Liu wrote: >;; >--enable-vhost-scsi) vhost_scsi="yes" >;; > + --disable-vhost-user-blk) vhost_user_blk="no" > + ;; > + --enable-vhost-user-blk) vhost_user_blk="yes" > + ;; >--disable-vhost-vsock) vhost_vsock="no" >;; >--enable-vhost-vsock)

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 07:24, 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. For the purpose to supp

[Qemu-devel] [PATCH] docker: fix out-of-tree 'make docker-test-build@debian-powerpc-cross'

2017-10-19 Thread Greg Kurz
Without this patch, it fails with: IOError: [Errno 2] No such file or directory: 'tests/docker/dockerfiles/debian-apt-fake.sh' Signed-off-by: Greg Kurz --- tests/docker/Makefile.include |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/docker/Makefile.include b/tests

Re: [Qemu-devel] [PATCH v4 4/4] contrib/vhost-user-blk: introduce a vhost-user-blk sample application

2017-10-19 Thread Paolo Bonzini
On 19/10/2017 07:24, Changpeng Liu wrote: > > +} > + > +static void > +vub_flush(VubReq *req) > +{ > +VubDev *vdev_blk = req->vdev_blk; > + > +if (vdev_blk->blk_fd) { > +fsync(vdev_blk->blk_fd); > +} > +} > + No need to check the file descriptor---vub_readv and vub_writev aren

Re: [Qemu-devel] [PATCH] hw/pci-host: Fix x86 Host Bridges 64bit PCI hole

2017-10-19 Thread Laszlo Ersek
On 10/19/17 13:29, Marcel Apfelbaum wrote: > Hi Laszlo, > > On 19/10/2017 13:41, Laszlo Ersek wrote: >> On 10/19/17 11:30, Marcel Apfelbaum wrote: >>> >>> Hi Laszlo, >>> >>> On 18/10/2017 14:40, Laszlo Ersek wrote: Hi Marcel, On 10/18/17 11:58, Marcel Apfelbaum wrote: > Currentl

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

2017-10-19 Thread David Gibson
On Wed, Oct 18, 2017 at 06:22:40PM -0200, Eduardo Habkost wrote: > On Wed, Oct 18, 2017 at 04:30:10PM +0100, Daniel P. Berrange wrote: > > On Tue, Oct 17, 2017 at 06:06:35PM +0200, Igor Mammedov wrote: > > > On Tue, 17 Oct 2017 16:07:59 +0100 > > > "Daniel P. Berrange" wrote: > > > > > > > On Tue

Re: [Qemu-devel] [RFC 4/6] CLI: add -paused option

2017-10-19 Thread David Gibson
On Mon, Oct 16, 2017 at 02:59:16PM -0200, Eduardo Habkost wrote: > On Mon, Oct 16, 2017 at 06:22:54PM +0200, Igor Mammedov wrote: > > Signed-off-by: Igor Mammedov > > --- > > include/sysemu/sysemu.h | 1 + > > qemu-options.hx | 15 ++ > > qmp.c | 5 + >

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

2017-10-19 Thread Paolo Bonzini
On 19/10/2017 13:49, David Gibson wrote: > Note that describing socket/core/thread tuples as arch independent (or > even machine independent) is.. debatable. I mean it's flexible enough > that most platforms can be fit to that scheme without too much > straining. But, there's no arch independent

Re: [Qemu-devel] [Qemu-trivial] [PATCH] docker: fix out-of-tree 'make docker-test-build@debian-powerpc-cross'

2017-10-19 Thread Philippe Mathieu-Daudé
On 10/19/2017 08:40 AM, Greg Kurz wrote: > Without this patch, it fails with: > > IOError: [Errno 2] No such file or directory: > 'tests/docker/dockerfiles/debian-apt-fake.sh' Yes, my bad :) I have the same fix in my CI-WIP branch which sadly lacks of love. > > Signed-off-by: Greg Kurz Revi

Re: [Qemu-devel] [PULL 0/6] Opengl 20171017 patches

2017-10-19 Thread Peter Maydell
On 17 October 2017 at 12:13, Gerd Hoffmann wrote: > The following changes since commit c5bbcaa4b7c0f8a322bebe9ec563560178a68b55: > > Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging > (2017-10-16 17:29:16 +0100) > > are available in the git repository at: > > git://gi

Re: [Qemu-devel] [PATCH v2 0/1] linux: Buffers/caches in VirtIO Balloon driver stats

2017-10-19 Thread Tomáš Golembiovský
On Thu, 5 Oct 2017 15:51:18 +0200 Tomáš Golembiovský wrote: > On Thu, 21 Sep 2017 14:55:40 +0200 > Tomáš Golembiovský wrote: > > > Linux driver part > > > > v2: > > - fixed typos > > > > Tomáš Golembiovský (1): > > virtio_balloon: include buffers and cached memory statistics > > > > drive

[Qemu-devel] Running Qemu in discrete time/step by step

2017-10-19 Thread Matt
Hi, [Qemu is evoked starting in paragraph 3] I am interested in increasing the ease of debugging/reproducibility/validity of network simulations. Discrete time simulations is the solution that appeals the most to me because then the final results of the simulation don't depend on the CPU anymore;

Re: [Qemu-devel] [PATCH v4 1/8] aspeed: introduce a dummy ROM device to catch invalid writes

2017-10-19 Thread Cédric Le Goater
On 10/19/2017 01:06 PM, Peter Maydell wrote: > On 19 October 2017 at 11:04, 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 add a dummy ROM device to catch the invalid w

Re: [Qemu-devel] [PATCH] hw/pci-host: Fix x86 Host Bridges 64bit PCI hole

2017-10-19 Thread Gerd Hoffmann
Hi, >   - commit 39848901818 pc: limit 64 bit hole to 2G by default >   shows us QEMU had the 64bit PCI hole, so it is a regression. commit message says: It turns out that some 32 bit windows guests crash if 64 bit PCI hole size is >2G. Why this suddenly isn't a problem any more? A

Re: [Qemu-devel] [PATCH v6 00/50] tcg tb_lock removal

2017-10-19 Thread Paolo Bonzini
On 19/10/2017 00:45, Emilio G. Cota wrote: > On Mon, Oct 16, 2017 at 10:25:19 -0700, Richard Henderson wrote: >> I've fixed two bugs within v5 of Emilio's patch set: >> >> - The step_next_tb patch fixes the "rep movsb" bug that appeared >>when we included CF_COUNT_MASK into CF_HASH_MASK. We h

Re: [Qemu-devel] [RFC v2 15/22] monitor: send event when request queue full

2017-10-19 Thread Stefan Hajnoczi
On Thu, Oct 19, 2017 at 03:16:11PM +0800, Peter Xu wrote: > On Wed, Oct 18, 2017 at 05:28:04PM +0200, Stefan Hajnoczi wrote: > > On Mon, Oct 16, 2017 at 04:11:58PM +0800, Peter Xu wrote: > > > On Thu, Oct 12, 2017 at 01:56:20PM +0100, Stefan Hajnoczi wrote: > > > > On Fri, Sep 29, 2017 at 11:38:37A

Re: [Qemu-devel] [RFC v2 13/22] monitor: separate QMP parser and dispatcher

2017-10-19 Thread Stefan Hajnoczi
On Thu, Oct 19, 2017 at 02:36:49PM +0800, Peter Xu wrote: > On Wed, Oct 18, 2017 at 05:31:15PM +0200, Stefan Hajnoczi wrote: > > On Mon, Oct 16, 2017 at 03:50:39PM +0800, Peter Xu wrote: > > > On Thu, Oct 12, 2017 at 01:50:45PM +0100, Stefan Hajnoczi wrote: > > > > On Fri, Sep 29, 2017 at 11:38:35A

[Qemu-devel] [PATCH] throttle: fix a qemu crash problem when calling blk_delete

2017-10-19 Thread sochin.jiang
From: "sochin.jiang" commit 7ca7f0 moves the throttling related part of the BDS life cycle management to BlockBackend, adds call to throttle_timers_detach_aio_context in blk_remove_bs. commit 1606e remove a block device from its throttle group in blk_delete by calling blk_io_limits_disable, thi

Re: [Qemu-devel] [PATCH v2 1/1] virtio_balloon: include buffers and cached memory statistics

2017-10-19 Thread Michael S. Tsirkin
On Thu, Sep 21, 2017 at 02:55:41PM +0200, Tomáš Golembiovský wrote: > Add a new fields, VIRTIO_BALLOON_S_BUFFERS and VIRTIO_BALLOON_S_CACHED, > to virtio_balloon memory statistics protocol. The values correspond to > 'Buffers' and 'Cached' in /proc/meminfo. > > To be able to compute the value of '

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

2017-10-19 Thread Eric Blake
On 10/19/2017 04:43 AM, Cornelia Huck wrote: > On Wed, 18 Oct 2017 10:01:57 -0500 > Eric Blake wrote: > >> On 10/18/2017 09:20 AM, 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 >>>

Re: [Qemu-devel] [Block-io] qemu virtual machine get stuck during startup

2017-10-19 Thread Stefan Hajnoczi
On Thu, Oct 19, 2017 at 05:32:10PM +0800, Wahaha Huang wrote: > Hi there, > I'm a newbie of qemu(2.10.0), when i start a vm from qemu, it sometimes get > stuck, Please post your QEMU command-line and describe the behavior when it gets stuck. Are there any error messages? Does the QEMU monitor st

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

2017-10-19 Thread Michael S. Tsirkin
On Wed, Oct 18, 2017 at 04:20:26PM +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 incl

Re: [Qemu-devel] [PATCH] hw/pci-host: Fix x86 Host Bridges 64bit PCI hole

2017-10-19 Thread Marcel Apfelbaum
On 19/10/2017 16:03, Gerd Hoffmann wrote: Hi,   - commit 39848901818 pc: limit 64 bit hole to 2G by default   shows us QEMU had the 64bit PCI hole, so it is a regression. commit message says: It turns out that some 32 bit windows guests crash if 64 bit PCI hole size is >2G.

[Qemu-devel] qga/blacklist test failures

2017-10-19 Thread Peter Maydell
Hi; I'm seeing /qga/blacklist test failures on one of my machines: /qga/blacklist: ** ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-qga.c:674:test_qga_blacklist: assertion failed ret: GenericError realpath("/sys/dev/block/8:33"): No such file or directory FAIL It's correct that there's

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

2017-10-19 Thread Christian Borntraeger
Acked-by: Christian Borntraeger On 10/18/2017 04:20 PM, Thomas Huth wrote: > These tests can easily be used on s390x, too. We just have to make > sure to use the virtio-xxx-ccw devices instead of virtio-xxx-pci. > > Signed-off-by: Thomas Huth > --- > tests/Makefile.include | 9 ++---

Re: [Qemu-devel] [PATCH] tpm: Don't call tpm_cleanup unless CONFIG_TPM.

2017-10-19 Thread Stefan Berger
On 10/19/2017 03:50 AM, Richard W.M. Jones wrote: When compiling with --disable-tpm: ../vl.o: In function `main': /home/rjones/d/qemu/vl.c:4908: undefined reference to `tpm_cleanup' This appears to have been introduced in commit c37cacabf228 ("tpm: Move tpm_cleanup() to right place"). Si

Re: [Qemu-devel] [PULL 01/11] build: automatically handle GIT submodule checkout for dtc

2017-10-19 Thread Anthony PERARD
On Mon, Oct 16, 2017 at 03:16:34PM +0200, Gerd Hoffmann wrote: > From: "Daniel P. Berrange" > > Currently if DTC is required by configure and not available in the host > OS install, we exit with an error message telling the user to checkout a > git submodule or install the library. > > This intr

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

2017-10-19 Thread Stefan Hajnoczi
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 IOTLB messages. */ > } > > +static int vhost_user_get_config(struct vh

Re: [Qemu-devel] [PATCH] docker: fix out-of-tree 'make docker-test-build@debian-powerpc-cross'

2017-10-19 Thread Fam Zheng
On Thu, 10/19 13:40, Greg Kurz wrote: > Without this patch, it fails with: > > IOError: [Errno 2] No such file or directory: > 'tests/docker/dockerfiles/debian-apt-fake.sh' > > Signed-off-by: Greg Kurz Reasonable. Queued, thanks! Fam

Re: [Qemu-devel] [PULL 01/11] build: automatically handle GIT submodule checkout for dtc

2017-10-19 Thread Daniel P. Berrange
On Thu, Oct 19, 2017 at 03:05:45PM +0100, Anthony PERARD wrote: > On Mon, Oct 16, 2017 at 03:16:34PM +0200, Gerd Hoffmann wrote: > > From: "Daniel P. Berrange" > > > > Currently if DTC is required by configure and not available in the host > > OS install, we exit with an error message telling the

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

2017-10-19 Thread Stefan Berger
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 implementation of the backend and frontend by using a new TPMIf interface. I solved a few is

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

2017-10-19 Thread Daniel P. Berrange
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 events to QKeyCodes immediately This commit forget to fix the code fo

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

2017-10-19 Thread Daniel P. Berrange
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, but none the less it should be fixed to avoid confusion.

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

2017-10-19 Thread Daniel P. Berrange
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 (Up) which QEMU gets right. When pressed in combination with the 'Alt_L' or 'A

[Qemu-devel] [PATCH v1 0/9] Various fixes for input/ps2 handling

2017-10-19 Thread Daniel P. Berrange
While preparing to send the rest of my keycodemapdb patches I identified some problems in the input code and particularly in the ps2 device handling of the pause & print / sysrq key that needed fixing. Daniel P. Berrange (9): input: use hex in ps2 keycode trace events ui: fix crash with sendke

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

2017-10-19 Thread Daniel P. Berrange
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(-) diff --git a/hw/input/trace-events b/hw/input/trace-events index 6fcb3c063

[Qemu-devel] [PATCH v1 6/9] ps2: fix scancodess sent for Pause key in AT set 1

2017-10-19 Thread Daniel P. Berrange
The ps2 device was previously fixed to send the special Pause/Print scancode sequences in: commit 8c10e0baf0260b59a4e984744462a18016662e3e Author: Hervé Poussineau Date: Thu Sep 15 22:06:26 2016 +0200 ps2: use QEMU qcodes instead of scancodes The sequence used for Pause had a small

[Qemu-devel] [PATCH v1 5/9] ps2: fix scancodes sent for Shift/Ctrl+Print key combination

2017-10-19 Thread Daniel P. Berrange
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 (Up) which QEMU gets right. When combined with Shift/Ctrl (both left and right

[Qemu-devel] [PATCH v1 7/9] ps2: fix scancodes sent for Ctrl+Pause key combination

2017-10-19 Thread Daniel P. Berrange
The 'Pause' key is special in the AT set 1 / set 2 scancode definitions. An unmodified 'Pause' key is supposed to send AT Set 1: e1 1d 45 91 9d c5 (Down) (Up) AT Set 2: e1 14 77 e1 f0 14 f0 77 (Down) (Up) which QEMU gets right. When combined with Ctrl (both left and right variants), a di

[Qemu-devel] [PATCH v1 8/9] ui: normalize the 'sysrq' key into the 'print' key

2017-10-19 Thread Daniel P. Berrange
The 'sysrq' key was mistakenly added to QEMU to deal with incorrect handling of the 'print' key in the ps2 device: commit f2289cb6924afc97b2a75d21bfc9217024d11741 Author: balrog Date: Wed Jun 4 10:14:16 2008 + Add sysrq to key names known by "sendkey". Adding sysrq keycode t

[Qemu-devel] [PATCH v1 9/9] ui: pull in latest keycodemapdb

2017-10-19 Thread Daniel P. Berrange
Latest keycodemapdb has a fix for Sun keyboard Pause mapping and backcompat fix for QEMU's treatment of 0xb7 as an alternative to 0x54 for triggering Print/SysRq Signed-off-by: Daniel P. Berrange --- ui/keycodemapdb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/keycodema

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

2017-10-19 Thread Marc-André Lureau
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 implementation of the backend and

Re: [Qemu-devel] [PULL 00/10] linux-user update for 2.11

2017-10-19 Thread Peter Maydell
On 18 October 2017 at 13:33, wrote: > From: Riku Voipio > > The following changes since commit 40a1e8ac2e10155b5df13a2508ac080b00cd7e23: > > Merge remote-tracking branch 'remotes/elmarco/tags/vu-pull-request' into > staging (2017-10-16 10:22:39 +0100) > > are available in the git repository a

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

2017-10-19 Thread Jiri Denemark
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 ... > diff --git a/qapi/migration.json b/qapi/migration.json >

  1   2   3   4   >