Re: [Qemu-devel] [PATCH v2 4/4] migration: Fail migration blocker for --only-migratble

2017-01-09 Thread Greg Kurz
Again v3 turned into v2... what happened ? On Sun, 8 Jan 2017 12:55:51 +0530 Ashijeet Acharya wrote: > On Friday, January 6, 2017, Greg Kurz > wrote: > > > On Wed, 4 Jan 2017 18:02:29 +0530 > > Ashijeet Acharya wrote: > > > > > migrate_add_blocker should rightly fail if the '--only-migratabl

Re: [Qemu-devel] [PATCH v3 3/3] block: m25p80: Improve 1GiB Micron flash definition

2017-01-09 Thread Cédric Le Goater
On 01/08/2017 09:38 AM, Marcin Krzeminski wrote: > n25q00 and mt25q01 devices share the same JEDEC ID. The difference > between those two devices is number of dies and one bit in extended > JEDEC bytes. This commit adds proper entry for both devices by > introduction the number of dies and and new

Re: [Qemu-devel] [PATCH v3 2/3] block: m25p80: Introduce die erase command

2017-01-09 Thread Cédric Le Goater
On 01/08/2017 09:38 AM, Marcin Krzeminski wrote: > Modern big flash nor devices consist from more than one die. > Some of them do not support chip erase and instead have die > erase command that can erase one die only. This commit adds > possibility to define number of dies in the chip and adds > s

Re: [Qemu-devel] [scripts] default shell/perl locations

2017-01-09 Thread Paolo Bonzini
On 06/01/2017 17:01, Sean Bruno wrote: > > > On 01/06/17 01:14, Paolo Bonzini wrote: >> >> >> On 05/01/2017 23:41, Sean Bruno wrote: >>> I don't suppose it would be possible to have configure check/change the >>> interpreter path for scripts so that operating systems that don't have >>> /usr/bi

Re: [Qemu-devel] [PATCH v3 0/2] VT-d migration support

2017-01-09 Thread Peter Xu
On Mon, Jan 09, 2017 at 10:18:45AM +0800, Peter Xu wrote: > On Fri, Jan 06, 2017 at 01:27:38PM +, Dr. David Alan Gilbert wrote: > > [...] > > > > (P.S. I found that split irqchip cannot work well with migration. Is > > > this an known issue?) > > > > How did it fail? > > The keyboard hangs

[Qemu-devel] [PATCH 2/3] x86: ioapic: dump version for "info ioapic"

2017-01-09 Thread Peter Xu
Signed-off-by: Peter Xu --- hw/intc/ioapic_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/intc/ioapic_common.c b/hw/intc/ioapic_common.c index 1b7ec5e..97c4f9c 100644 --- a/hw/intc/ioapic_common.c +++ b/hw/intc/ioapic_common.c @@ -58,7 +58,8 @@ void ioapic_print

[Qemu-devel] [PATCH 1/3] x86: ioapic: add traces for ioapic

2017-01-09 Thread Peter Xu
>From time to time, there are issues with ioapic, either on guest side or on hypervisor side. Good to have some persistent traces for better triaging and debugging. Signed-off-by: Peter Xu --- hw/intc/ioapic.c | 17 +++-- hw/intc/trace-events | 7 +++ 2 files changed, 22 ins

[Qemu-devel] [PATCH 0/3] x86: ioapic: fix fail migrate when irqchip=split

2017-01-09 Thread Peter Xu
Split irqchip works based on the fact that we kept the first 24 gsi routing entries inside KVM for userspace ioapic's use. When system boot, we'll reserve these MSI routing entries before hand. However, after migration, we forgot to re-configure it up in the destination side. The result is, we'll g

[Qemu-devel] [PATCH 3/3] x86: ioapic: fix fail migration when irqchip=split

2017-01-09 Thread Peter Xu
Signed-off-by: Peter Xu --- hw/intc/ioapic.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c index d1254f8..9047b89 100644 --- a/hw/intc/ioapic.c +++ b/hw/intc/ioapic.c @@ -439,6 +439,11 @@ static void ioapic_class_init(ObjectClass *klass, void *data)

Re: [Qemu-devel] [PATCH 00/15] Postcopy: Hugepage support

2017-01-09 Thread Dr. David Alan Gilbert
* Fam Zheng (f...@redhat.com) wrote: > On Fri, 01/06 18:59, Dr. David Alan Gilbert wrote: > > * no-re...@patchew.org (no-re...@patchew.org) wrote: > > > Hi, > > > Checking PATCH 14/15: postcopy: Check for userfault+hugepage feature... > > > ERROR: trailing whitespace > > > #21: FILE: migration/post

Re: [Qemu-devel] [PATCH 0/3] x86: ioapic: fix fail migrate when irqchip=split

2017-01-09 Thread Paolo Bonzini
On 09/01/2017 09:55, Peter Xu wrote: > Split irqchip works based on the fact that we kept the first 24 gsi > routing entries inside KVM for userspace ioapic's use. When system > boot, we'll reserve these MSI routing entries before hand. However, > after migration, we forgot to re-configure it up

Re: [Qemu-devel] [PATCH v4] bugfix: vm halt when in reset looping

2017-01-09 Thread Gonglei (Arei)
> > From: Hangaohuai > Sent: Monday, December 19, 2016 2:04 PM > To: qemu-devel@nongnu.org > Cc: m...@redhat.com; pbonz...@redhat.com; Gonglei (Arei); Hangaohuai > Subject: [PATCH v4] bugfix: vm halt when in reset looping > > reset mc146818rtc device when RESET event happens. > > Fix the problem:

[Qemu-devel] [Bug 526653] Re: Breakpoint on Memory address fails with KVM

2017-01-09 Thread Thomas Huth
Triaging old bug tickets ... can you still reproduce this issue with the latest version of QEMU (currently version 2.8)? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bug

[Qemu-devel] [Bug 546638] Re: Connection error when use PXE+NFS to boot guest

2017-01-09 Thread Thomas Huth
Triaging old bug tickets ... can you still reproduce this issue with the latest version of QEMU (currently version 2.8)? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bug

[Qemu-devel] [Bug 551545] Re: PXE netboot not booting localboot from virtio-disk

2017-01-09 Thread Thomas Huth
Since it has been fixed in Precise ... I assume this has also been fixed in upstream QEMU? Or is there still anything left to do here? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEM

Re: [Qemu-devel] [PATCH] error: error_setg_errno(): errno gets preserved

2017-01-09 Thread Markus Armbruster
Markus Armbruster writes: > Sascha Silbe writes: > >> Dear Eric, >> >> Eric Blake writes: >> +++ b/include/qapi/error.h @@ -170,6 +170,9 @@ void error_setg_internal(Error **errp, * Just like error_setg(), with @os_error info added to the message. * If @os_error is non-ze

[Qemu-devel] [PATCH 0/1] Change default CFLAGS to -O3

2017-01-09 Thread Jin Guojie
* in configure, the default optimization level is changed to O3. * Tested successfully on following machines: | Host machine | Host OS | qemu-system | Debian ISO | |-| | x86 64 | Fedora25 |i386 |i386 | | mips 64 le

[Qemu-devel] [PATCH 1/1] Change default CFLAGS to -O3

2017-01-09 Thread Jin Guojie
For better performance. Signed-off-by: Jin Guojie --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 218df87..8ebc286 100755 --- a/configure +++ b/configure @@ -4753,9 +4753,9 @@ if test "$gcov" = "yes" ; then CFLAGS="-fprofile-ar

Re: [Qemu-devel] How to make dest host abort migration safely (was Re: [PATCH 4/4] kvm: Allow migration with invtsc)

2017-01-09 Thread Dr. David Alan Gilbert
* Eduardo Habkost (ehabk...@redhat.com) wrote: > On Fri, Jan 06, 2017 at 08:31:27AM -0200, Marcelo Tosatti wrote: > > On Thu, Jan 05, 2017 at 10:19:50AM -0200, Eduardo Habkost wrote: > > > On Thu, Jan 05, 2017 at 08:48:32AM -0200, Marcelo Tosatti wrote: > > > > On Wed, Jan 04, 2017 at 11:36:31PM -0

Re: [Qemu-devel] [PATCH 0/1] Change default CFLAGS to -O3

2017-01-09 Thread Peter Maydell
On 9 January 2017 at 10:01, Jin Guojie wrote: > * in configure, the default optimization level is changed to O3. > * Tested successfully on following machines: > > | Host machine | Host OS | qemu-system | Debian ISO | > |-| > | x86 64

Re: [Qemu-devel] Proposal for 2.9 release schedule

2017-01-09 Thread Stefan Hajnoczi
On Fri, Jan 06, 2017 at 03:12:28PM +, Peter Maydell wrote: > On 4 January 2017 at 14:51, Stefan Hajnoczi wrote: > > On Tue, Jan 03, 2017 at 05:06:13PM +0100, Paolo Bonzini wrote: > >> On 03/01/2017 16:53, Stefan Hajnoczi wrote: > >> > On Fri, Dec 23, 2016 at 03:15:58PM +0100, Paolo Bonzini wro

Re: [Qemu-devel] [PATCH v4] [i.MX] fix CS handling during SPI access.

2017-01-09 Thread Peter Maydell
On 4 January 2017 at 22:06, Jean-Christophe Dubois wrote: > The i.MX SPI device was not de-asserting the CS line at the end of > memory access. > > This triggered a SIGSEGV in Qemu when the sabrelite emulator was acessing > a SPI flash memory. > > Whith this path the CS signal is correctly asserte

Re: [Qemu-devel] [PATCH v6 00/17] qapi doc generation (whole version, squashed)

2017-01-09 Thread Marc-André Lureau
Hi - Original Message - > Marc-André Lureau writes: > > > Add a qapi2texi script to generate the documentation from the qapi > > schemas. > > > > The SQUASHED patch in this series is a squashed version of the > > documentation move from qmp-commands.txt to the schemas. The whole > > vers

Re: [Qemu-devel] [PATCH v2] [m25p80] Reset internal state in case we overrun the internal data buffer

2017-01-09 Thread Peter Maydell
On 7 January 2017 at 11:16, Jean-Christophe Dubois wrote: > When we overrun the internal data buffer it is suspected that the SPI > controler (either Qemu emulator og guest driver) is misbehaving. > > Therefore we reset the flash internal state and issue a log. > > Signed-off-by: Jean-Christophe D

Re: [Qemu-devel] [PATCH v3] [i.MX] Remove MSGDATA register support.

2017-01-09 Thread Peter Maydell
On 7 January 2017 at 12:20, Jean-Christophe Dubois wrote: > From the documentation it is not clear what this SPI register is about. > > Moreover, neither linux driver nor xvisor driver are using this SPI register. > > For now we just remove it and issue a log on register write access. > > Signed-o

Re: [Qemu-devel] [PATCH 00/21] new backup architecture

2017-01-09 Thread Stefan Hajnoczi
On Fri, Dec 23, 2016 at 05:28:43PM +0300, Vladimir Sementsov-Ogievskiy wrote: Jeff or John: are you reviewing this? > This is a new architecture for backup. It solves some current problems: > 1. intersecting requests: for now at request start we wait for all > intersecting requests, which means

Re: [Qemu-devel] [PATCH 0/1] Change default CFLAGS to -O3

2017-01-09 Thread Christian Borntraeger
On 01/09/2017 11:01 AM, Jin Guojie wrote: > * in configure, the default optimization level is changed to O3. > * Tested successfully on following machines: > > | Host machine | Host OS | qemu-system | Debian ISO | > |-| > | x86 64 |

[Qemu-devel] [PATCH] exec: Add missing rcu_read_unlock

2017-01-09 Thread Roman Kapl
rcu_read_unlock was not called if the address_space_access_valid result is negative. This caused (at least) a problem when qemu on PPC/E500+TAP failed to terminate properly and instead got stuck in a deadlock. Signed-off-by: Roman Kapl --- exec.c | 1 + 1 file changed, 1 insertion(+) diff --gi

Re: [Qemu-devel] Proposal for 2.9 release schedule

2017-01-09 Thread Peter Maydell
On 9 January 2017 at 10:41, Stefan Hajnoczi wrote: > On Fri, Jan 06, 2017 at 03:12:28PM +, Peter Maydell wrote: >> On 4 January 2017 at 14:51, Stefan Hajnoczi wrote: >> > On Tue, Jan 03, 2017 at 05:06:13PM +0100, Paolo Bonzini wrote: >> >> On 03/01/2017 16:53, Stefan Hajnoczi wrote: >> >> > O

Re: [Qemu-devel] [PATCH 1/1] Change default CFLAGS to -O3

2017-01-09 Thread Daniel P. Berrange
On Mon, Jan 09, 2017 at 06:01:23PM +0800, Jin Guojie wrote: > For better performance. The commit message needs to have actual data on what the measured performance improvements are really. > > Signed-off-by: Jin Guojie > --- > configure | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(

[Qemu-devel] [PATCH] ppc: Prevent inifnite loop in decrementer auto-reload.

2017-01-09 Thread Roman Kapl
If the DECAR register is set to 0, QEMU tries to reload the decrementer with zero in an inifinite loop. According to PPC documentation, the decrementer is triggered on 1->0 transition, so avoid reloading the decrementer if if is already zero. The problem does not manifest under Linux, but it is va

Re: [Qemu-devel] [PATCH] ppc: Prevent inifnite loop in decrementer auto-reload.

2017-01-09 Thread no-reply
Hi, Your series seems to have some coding style problems. See output below for more information: Message-id: 20170109112338.5629-1-...@sysgo.com Type: series Subject: [Qemu-devel] [PATCH] ppc: Prevent inifnite loop in decrementer auto-reload. === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1

Re: [Qemu-devel] [PATCH v2 4/4] migration: Fail migration blocker for --only-migratble

2017-01-09 Thread Ashijeet Acharya
On Monday, 9 January 2017, Greg Kurz wrote: > Again v3 turned into v2... what happened ? I am suspecting that my email client is at fault for this :( > > On Sun, 8 Jan 2017 12:55:51 +0530 > Ashijeet Acharya > wrote: > > > On Friday, January 6, 2017, Greg Kurz > > ');>> wrote: > > > > > On Wed

Re: [Qemu-devel] [PATCH 0/5] Use non-blacklisted family/model/stepping for Haswell CPU model

2017-01-09 Thread Dr. David Alan Gilbert
* Eduardo Habkost (ehabk...@redhat.com) wrote: > A recent glibc commit[1] added a blacklist to ensure it won't use > TSX on hosts that are known to have a broken TSX implementation. > > Our existing Haswell CPU model has a blacklisted > family/model/stepping combination, so it has to be updated to

Re: [Qemu-devel] [PATCH v3 2/3] block: m25p80: Introduce die erase command

2017-01-09 Thread Marcin Krzemiński
2017-01-09 12:10 GMT+01:00 Edgar E. Iglesias : > On Sun, Jan 08, 2017 at 09:38:53AM +0100, Marcin Krzeminski wrote: >> Modern big flash nor devices consist from more than one die. >> Some of them do not support chip erase and instead have die >> erase command that can erase one die only. This commi

Re: [Qemu-devel] [PATCH] exec: Add missing rcu_read_unlock

2017-01-09 Thread Paolo Bonzini
On 09/01/2017 12:09, Roman Kapl wrote: > rcu_read_unlock was not called if the address_space_access_valid result is > negative. > > This caused (at least) a problem when qemu on PPC/E500+TAP failed to terminate > properly and instead got stuck in a deadlock. > > Signed-off-by: Roman Kapl > ---

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

2017-01-09 Thread Peter Maydell
ing (2017-01-06 15:18:09 +) are available in the git repository at: git://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20170109 for you to fetch changes up to 556899fc1965d82f5c4a3ba6a0be3b1193e2c4b2: hw/ssi/imx_spi.c: Remove MSGDATA register support (2017-01-09

[Qemu-devel] [PULL 20/21] m25p80: don't let rogue SPI controllers cause buffer overruns

2017-01-09 Thread Peter Maydell
From: Jean-Christophe Dubois In normal operation we should never attempt to put more data into the data[] array than it can hold. However if the SPI controller connected to us misbehaves then it can send us a sequence of commands that attempt this. Since the controller might be in the guest (if t

[Qemu-devel] [PULL 18/21] hw/arm/virt: remove VirtGuestInfo

2017-01-09 Thread Peter Maydell
From: Andrew Jones by moving VirtGuestInfo.fw_cfg to VirtMachineState. This is the mach-virt equivalent of "pc: Move PcGuestInfo.fw_cfg to PCMachineState" and "pc: Eliminate PcGuestInfo struct" combined. Signed-off-by: Andrew Jones Acked-by: Michael S. Tsirkin Message-id: 20170102200153.28864-

[Qemu-devel] [PULL 10/21] hw/arm/virt: parameter passing cleanups

2017-01-09 Thread Peter Maydell
From: Andrew Jones Some simple cleanups made possible by "hw/arm/virt: Merge VirtBoardInfo and VirtMachineState" Signed-off-by: Andrew Jones Reviewed-by: Igor Mammedov Acked-by: Michael S. Tsirkin Message-id: 20170102200153.28864-6-drjo...@redhat.com Signed-off-by: Peter Maydell --- hw/arm/

[Qemu-devel] [PULL 19/21] hw/arm/virt-acpi-build: Don't incorrectly claim architectural timer to be edge-triggered

2017-01-09 Thread Peter Maydell
From: Andrew Jones This is the ACPI equivalent to "hw/arm/virt: Don't incorrectly claim architectural timer to be edge-triggered" which fixes the DT for machine types 2.9 and later. Signed-off-by: Andrew Jones Acked-by: Michael S. Tsirkin Message-id: 20170102200153.28864-15-drjo...@redhat.com

[Qemu-devel] [PULL 21/21] hw/ssi/imx_spi.c: Remove MSGDATA register support

2017-01-09 Thread Peter Maydell
From: Jean-Christophe Dubois >From the documentation it is not clear what this SPI register is about. Moreover, neither linux driver nor xvisor driver are using this SPI register. For now we just remove it and issue a log on register write access. Signed-off-by: Jean-Christophe Dubois Message

[Qemu-devel] [PULL 13/21] hw/arm/virt: remove include/hw/arm/virt-acpi-build.h

2017-01-09 Thread Peter Maydell
From: Andrew Jones include/hw/arm/virt-acpi-build.h is only used for VirtGuestInfo, which doesn't even necessarily have to be ACPI specific. Move VirtGuestInfo to include/hw/arm/virt.h, allowing us to remove include/hw/arm/virt-acpi-build.h, and to prepare for even more code motion. Signed-off-b

[Qemu-devel] [PULL 07/21] hw/arm/virt-acpi-build: name GIC CPU Interface Structure appropriately

2017-01-09 Thread Peter Maydell
From: Andrew Jones Also move the enabled flag definition from mach-virt code to acpi common. Signed-off-by: Andrew Jones Message-id: 20170102200153.28864-3-drjo...@redhat.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- include/hw/acpi/acpi-defs.h | 9 ++--- include/h

[Qemu-devel] [PULL 17/21] hw/arm/virt-acpi-build: don't save VirtGuestInfo on AcpiBuildState

2017-01-09 Thread Peter Maydell
From: Andrew Jones We can get to VirtMachineState without the need for saving a pointer on AcpiBuildState. This is the mach-virt equivalent to "acpi: Don't save PcGuestInfo on AcpiBuildState" Signed-off-by: Andrew Jones Acked-by: Michael S. Tsirkin Message-id: 20170102200153.28864-13-drjo...@r

[Qemu-devel] [PULL 11/21] hw/arm/virt: use VirtMachineState.gic_version

2017-01-09 Thread Peter Maydell
From: Andrew Jones machvirt_init may need to probe for the gic version. If so, then make sure the result is written to VirtMachineState. With the state up to date, use it instead of a local variable. This is a cleanup that prepares for VirtMachineState to be passed to functions even outside hw/ar

[Qemu-devel] [PULL 12/21] hw/arm/virt: eliminate struct VirtGuestInfoState

2017-01-09 Thread Peter Maydell
From: Andrew Jones Instead of allocating a new struct just for VirtGuestInfo and the machine_done Notifier, place them inside VirtMachineState. This is the mach-virt equivalent of "pc: Eliminate struct PcGuestInfoState" Suggested-by: Eduardo Habkost Signed-off-by: Andrew Jones Reviewed-by: Igo

[Qemu-devel] [PULL 05/21] hw/arm/virt: Don't incorrectly claim architectural timer to be edge-triggered

2017-01-09 Thread Peter Maydell
The architectural timers in ARM CPUs all have level triggered interrupts (unless you're using KVM on a host kernel before 4.4, which misimplemented them as edge-triggered). We were incorrectly describing them in the device tree as edge triggered. This can cause problems for guest kernels in 4.8 be

[Qemu-devel] [PULL 08/21] hw/arm/virt-acpi-build: gtdt: improve flag naming

2017-01-09 Thread Peter Maydell
From: Andrew Jones Also remove all unused flags. Signed-off-by: Andrew Jones Message-id: 20170102200153.28864-4-drjo...@redhat.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- include/hw/acpi/acpi-defs.h | 17 ++--- hw/arm/virt-acpi-build.c| 10 +- 2 fi

[Qemu-devel] [PULL 15/21] hw/arm/virt: pass VirtMachineState instead of VirtGuestInfo

2017-01-09 Thread Peter Maydell
From: Andrew Jones Only two functions take VirtGuestInfo parameters. Now that guest-info is part of VirtMachineState, and VirtMachineState is defined in the virt header, pass that instead. Signed-off-by: Andrew Jones Reviewed-by: Igor Mammedov Acked-by: Michael S. Tsirkin Message-id: 20170102

[Qemu-devel] [PULL 06/21] hw/arm/virt-acpi-build: add all missing cpu_to_le's

2017-01-09 Thread Peter Maydell
From: Andrew Jones Signed-off-by: Andrew Jones Message-id: 20170102200153.28864-2-drjo...@redhat.com Signed-off-by: Peter Maydell --- hw/arm/virt-acpi-build.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/vir

[Qemu-devel] [PULL 14/21] hw/arm/virt: move VirtMachineState/Class to virt.h

2017-01-09 Thread Peter Maydell
From: Andrew Jones In preparation to share more Virt machine state than just guest-info with other mach-virt source files, move the State and Class structures to virt.h Signed-off-by: Andrew Jones Reviewed-by: Igor Mammedov Acked-by: Michael S. Tsirkin Message-id: 20170102200153.28864-10-drjo

[Qemu-devel] [PULL 02/21] hw/char: QOM'ify exynos4210_uart.c

2017-01-09 Thread Peter Maydell
From: xiaoqiang zhao Drop the old Sysbus init and use instance_init and DeviceClass::realize instead Signed-off-by: xiaoqiang zhao Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/char/exynos4210_uart.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) di

[Qemu-devel] [PULL 03/21] hw/arm/virt: Merge VirtBoardInfo and VirtMachineState

2017-01-09 Thread Peter Maydell
One of the purposes of VirtBoardInfo was to hold various bits of state about the board. Now we have MachineState and the subclass VirtMachineState to do this. Fold the VirtBoardInfo into VirtMachineState rather than having some flags in one struct and some in another with no useful way to get betwe

[Qemu-devel] [PULL 16/21] hw/arm/virt-acpi-build: remove redundant members from VirtGuestInfo

2017-01-09 Thread Peter Maydell
From: Andrew Jones Now that we pass VirtMachineState, and guest-info is just part of that state, we can remove all the redundant members and access the VirtMachineState directly. Signed-off-by: Andrew Jones Reviewed-by: Igor Mammedov Acked-by: Michael S. Tsirkin Message-id: 20170102200153.288

[Qemu-devel] [PULL 04/21] hw/arm/virt: Rename 'vbi' variables to 'vms'

2017-01-09 Thread Peter Maydell
Rename all the variables which used to be VirtBoardInfo* and are now VirtMachineState* so their names are in line with the type being used. Apart from the removal of the line 'VirtMachineState *vbi = vms;' this commit is purely a search-and-replace of 'vbi' with 'vms'. Signed-off-by: Peter Maydel

[Qemu-devel] [PULL 01/21] i2c: Allow I2C devices to NAK start events

2017-01-09 Thread Peter Maydell
From: Corey Minyard Add a return value to the event handler. Some I2C devices will NAK if they have no data, so allow them to do this. This required the following changes: Go through all the event handlers and change them to return int and return 0. Modify i2c_start_transfer to terminate the

[Qemu-devel] [PULL 09/21] hw/arm/virt-acpi-build: fadt: improve flag naming

2017-01-09 Thread Peter Maydell
From: Andrew Jones Signed-off-by: Andrew Jones Message-id: 20170102200153.28864-5-drjo...@redhat.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- include/hw/acpi/acpi-defs.h | 6 ++ hw/arm/virt-acpi-build.c| 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff

Re: [Qemu-devel] [PATCH v4] bugfix: vm halt when in reset looping

2017-01-09 Thread Paolo Bonzini
On 09/01/2017 10:08, Gonglei (Arei) wrote: >> >> From: Hangaohuai >> Sent: Monday, December 19, 2016 2:04 PM >> To: qemu-devel@nongnu.org >> Cc: m...@redhat.com; pbonz...@redhat.com; Gonglei (Arei); Hangaohuai >> Subject: [PATCH v4] bugfix: vm halt when in reset looping >> >> reset mc146818rtc de

[Qemu-devel] [PATCH] megasas: fix guest-triggered memory leak

2017-01-09 Thread Paolo Bonzini
If the guest sets the sglist size to a value >=2GB, megasas_handle_dcmd will return MFI_STAT_MEMORY_NOT_AVAILABLE without freeing the memory. Avoid this by returning only the status from map_dcmd, and loading cmd->iov_size in the caller. Reported-by: Li Qiang Signed-off-by: Paolo Bonzini --- hw

Re: [Qemu-devel] [PATCH] error: report hints on stderr when no monitor

2017-01-09 Thread Markus Armbruster
Marc-André Lureau writes: > Report the error hint when running from the command line and reaching an Not just any hint, only the ones printed with error_printf_unless_qmp(). > error, ex: > > $ qemu-system-x86_64 -m 1Z > qemu-system-x86_64: -m 1Z: Parameter 'size' expects a size > You may use k,

Re: [Qemu-devel] [RFC/POC PATCH 0/4] Building TCG tests with emdebian cross compilers

2017-01-09 Thread Alex Bennée
Marc-André Lureau writes: > Hi > > - Original Message - >> Hi Pranith, >> >> Here is a proof-of-concept series for you to consider rolling into the TCG >> tests >> cleanup. It uses the existing docker make machinery to build a Debian >> image which has arm, arm64 and ppc64el cross compil

Re: [Qemu-devel] [PATCH] hxtool: emit Texinfo headings as @subsection

2017-01-09 Thread Markus Armbruster
Paolo Bonzini writes: > Remove the colon, and add it in qemu-options-wrapper.h instead. > The introduction of @subsection also found a case where the table > was not closed and reopened around a heading, so fix it. > > Signed-off-by: Paolo Bonzini Reviewed-by: Markus Armbruster

Re: [Qemu-devel] [PATCH v3] [i.MX] Remove MSGDATA register support.

2017-01-09 Thread Peter Maydell
On 7 January 2017 at 12:20, Jean-Christophe Dubois wrote: > From the documentation it is not clear what this SPI register is about. > > Moreover, neither linux driver nor xvisor driver are using this SPI register. > > For now we just remove it and issue a log on register write access. By the way,

Re: [Qemu-devel] [PATCH 4/5] pc: Add 2.9 machine-types

2017-01-09 Thread Laszlo Ersek
On 01/08/17 20:40, Eduardo Habkost wrote: > Cc: "Michael S. Tsirkin" > Cc: Laszlo Ersek > Cc: Igor Mammedov > Signed-off-by: Eduardo Habkost > --- > Changes v1 -> v2: > * Added extra backslash to PC_COMPAT_2_8 definition > * Suggested-by: Laszlo Ersek > --- > include/hw/i386/pc.h | 2 ++ >

Re: [Qemu-devel] Proposal for 2.9 release schedule

2017-01-09 Thread Paolo Bonzini
On 09/01/2017 12:11, Peter Maydell wrote: > On 9 January 2017 at 10:41, Stefan Hajnoczi wrote: >> On Fri, Jan 06, 2017 at 03:12:28PM +, Peter Maydell wrote: >>> On 4 January 2017 at 14:51, Stefan Hajnoczi wrote: On Tue, Jan 03, 2017 at 05:06:13PM +0100, Paolo Bonzini wrote: > On 03

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 4/4] prep: add IBM RS/6000 7020 (40p) machine emulation

2017-01-09 Thread Thomas Huth
Hi, On 07.01.2017 16:23, Hervé Poussineau wrote: > Machine supports both Open Hack'Ware and OpenBIOS. > Open Hack'Ware is the default because OpenBIOS is currently unable to boot > PReP boot partitions or PReP kernels. > > Signed-off-by: Hervé Poussineau > --- > default-configs/ppc-softmmu.mak

Re: [Qemu-devel] [PATCH] error: report hints on stderr when no monitor

2017-01-09 Thread Marc-André Lureau
Hi On Mon, Jan 9, 2017 at 1:23 PM Markus Armbruster wrote: > Marc-André Lureau writes: > > > Report the error hint when running from the command line and reaching an > > Not just any hint, only the ones printed with error_printf_unless_qmp(). > > > error, ex: > > > > $ qemu-system-x86_64 -m 1Z

Re: [Qemu-devel] [PATCH v3 2/3] block: m25p80: Introduce die erase command

2017-01-09 Thread Edgar E. Iglesias
On Sun, Jan 08, 2017 at 09:38:53AM +0100, Marcin Krzeminski wrote: > Modern big flash nor devices consist from more than one die. > Some of them do not support chip erase and instead have die > erase command that can erase one die only. This commit adds > possibility to define number of dies in the

Re: [Qemu-devel] [PATCH] vl: disable default cdrom when using explicitely scsi-hd

2017-01-09 Thread Markus Armbruster
Hervé Poussineau writes: > 'ide-hd', 'ide-cd' and 'scsi-cd' devices already disable default cdrom. > Make it the same for 'scsi-hd'. > > That way, we can add/replace the device on lun=2 without using -nodefaults. Yes, but it might upset existing usage that relies on the default CD-ROM. In my op

[Qemu-devel] [PATCH] hw/ppc/spapr: Allow POWER9 as hot-pluggable CPU for pseries

2017-01-09 Thread Thomas Huth
Running "qemu-system-ppc64 -M pseries -cpu POWER9" currently does not work yet and results in this error message: qemu-system-ppc64: Unable to find sPAPR CPU Core definition Since we want to support the pseries machine with POWER9 in the future, allow using POWER9 as hot-pluggable CPU there, too

Re: [Qemu-devel] [PATCH v5 3/4] Plumb the HAXM-based hardware acceleration support

2017-01-09 Thread Paolo Bonzini
On 06/01/2017 15:08, Vincent Palatin wrote: > Apart from the above change, can you check if there are some less > heavyeight methods to force an exit? I can think of QueueUserAPC with > an empty pfnAPC here, and SleepEx(0, TRUE) in qemu_hax_cpu_thread_fn > before qemu_wait_io_eve

[Qemu-devel] [PATCH v2] ppc: Prevent inifnite loop in decrementer auto-reload.

2017-01-09 Thread Roman Kapl
If the DECAR register is set to 0, QEMU tries to reload the decrementer with zero in an inifinite loop. According to PPC documentation, the decrementer is triggered on 1->0 transition, so avoid reloading the decrementer if if is already zero. The problem does not manifest under Linux, but it is va

Re: [Qemu-devel] assert hit on master with q35 machine type

2017-01-09 Thread Dr. David Alan Gilbert
copying in Stefan since it's his commit. * Doug Goldstein (car...@cardoe.com) wrote: > I'm currently hitting an assert on master. I've bisected the change down > to aff8fd18f1786fc5af259a9bc0077727222f51ca but obviously that's a false > positive because that adds the assert for the condition. So o

[Qemu-devel] [PULL v2 03/11] console: add API to get underlying gui window ID

2017-01-09 Thread Gerd Hoffmann
From: Samuel Thibault This adds two console functions, qemu_console_set_window_id and qemu_graphic_console_get_window_id, to let graphical backend record the window id in the QemuConsole structure, and let the baum driver read it. Signed-off-by: Samuel Thibault Message-id: 20161221003806.22412-

[Qemu-devel] [PULL v2 00/11] ui patch queue

2017-01-09 Thread Gerd Hoffmann
: Merge remote-tracking branch 'remotes/vivier/tags/m68k-for-2.9-pull-request' into staging (2016-12-28 17:11:11 +) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-ui-20170109-1 for you to fetch changes up to f46c4259f489d2e7742890ddfaa862bde3731e3e:

[Qemu-devel] [PULL v2 01/11] ui/gtk: fix crash at startup when no console is available

2017-01-09 Thread Gerd Hoffmann
From: Hervé Poussineau This patch fixes a segfault at QEMU startup, introduced in a08156321ab9a7d2fed9ee77dbfeea2a61ffd153. gd_vc_find_current() return NULL, which is dereferenced without checking it. While at it, disable the whole 'View' menu if no console exists. Reproducer: qemu-system-i386

[Qemu-devel] [PULL v2 02/11] ui: use evdev keymap when running under wayland

2017-01-09 Thread Gerd Hoffmann
From: "Daniel P. Berrange" Wayland always uses evdev as its input source, so QEMU can use the existing evdev keymap data Signed-off-by: Daniel P. Berrange Tested-by: Stefan Hajnoczi Message-id: 20161201094117.16407-1-berra...@redhat.com Signed-off-by: Gerd Hoffmann --- include/ui/gtk.h | 4 +

[Qemu-devel] [PULL v2 04/11] console: move window ID code from baum to sdl

2017-01-09 Thread Gerd Hoffmann
From: Samuel Thibault This moves the SDL bits for window ID from the baum driver to SDL, as well as fixing the build for non-X11. Signed-off-by: Samuel Thibault Message-id: 20161221003806.22412-3-samuel.thiba...@ens-lyon.org Signed-off-by: Gerd Hoffmann --- backends/baum.c | 31 --

[Qemu-devel] [PULL v2 06/11] egl-helpers: Change file licensing to LGPLv2

2017-01-09 Thread Gerd Hoffmann
From: Frediano Ziglio The relicense permits sharing the code with Spice which is LGPL. All people listed below have agreed to the relicense: - Arei Gonglei; - Cole Robinson; - Gerd Hoffmann; - Peter Maydell. Signed-off-by: Frediano Ziglio Acked-by: Cole Robinson Acked-by: Gonglei Acked-by: P

[Qemu-devel] [PULL v2 05/11] sdl2: set window ID

2017-01-09 Thread Gerd Hoffmann
From: Samuel Thibault This uses the console API to record the window ID of the SDL2 windows. Signed-off-by: Samuel Thibault Message-id: 20161221003806.22412-4-samuel.thiba...@ens-lyon.org Signed-off-by: Gerd Hoffmann --- ui/sdl2.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/ui/

[Qemu-devel] [PULL v2 07/11] gtk: avoid oob array access

2017-01-09 Thread Gerd Hoffmann
From: Marc-André Lureau When too many consoles are created, vcs[] may be write out-of-bounds. Signed-off-by: Marc-André Lureau Message-id: 20161207105511.25173-1-marcandre.lur...@redhat.com Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 5 + 1 file changed, 5 insertions(+) diff --git a/ui/g

[Qemu-devel] [PULL v2 09/11] ui/vnc: Fix problem with sending too many bytes as server name

2017-01-09 Thread Gerd Hoffmann
From: Thomas Huth If the buffer is not big enough, snprintf() does not return the number of bytes that have been written to the buffer, but the number of bytes that would be needed for writing the whole string. By using this value for the following vnc_write() calls, we send some junk at the end

[Qemu-devel] [PULL v2 08/11] ui: drop unused MOUSE_EVENT_WHEEL{UP, DN} defines

2017-01-09 Thread Gerd Hoffmann
Also update comment to make clear this is for legacy mouse emulation only. Signed-off-by: Gerd Hoffmann Message-id: 1480409632-6163-1-git-send-email-kra...@redhat.com --- include/ui/console.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/ui/console.h b/include/u

Re: [Qemu-devel] [PATCH] error: report hints on stderr when no monitor

2017-01-09 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Mon, Jan 9, 2017 at 1:23 PM Markus Armbruster wrote: > >> Marc-André Lureau writes: >> >> > Report the error hint when running from the command line and reaching an >> >> Not just any hint, only the ones printed with error_printf_unless_qmp(). >> >> > error

[Qemu-devel] [PULL v2 10/11] curses: Fix compiler warnings (Mingw-w64 redefinition of macro KEY_EVENT)

2017-01-09 Thread Gerd Hoffmann
From: Stefan Weil For builds with Mingw-w64 as it is included in Cygwin, there are two header files which define KEY_EVENT with different values. This results in lots of compiler warnings like this one: CC vl.o In file included from /qemu/include/ui/console.h:340:0, from

[Qemu-devel] [PULL v2 11/11] ps2: Fix lost scancodes by recent changes

2017-01-09 Thread Gerd Hoffmann
From: OGAWA Hirofumi With "ps2: use QEMU qcodes instead of scancodes", key handling was changed to qcode base. But all scancodes are not converted to new one. This adds some missing qcodes/scancodes what I found in using. [set1 and set3 are from ] Signed-off-by: OGAWA Hirofumi Reviewed-by: Her

[Qemu-devel] [PATCH 0/2] virtio-gpu: fix issues with VM load code

2017-01-09 Thread Peter Maydell
These patches fix a couple of issues with the VM load code which I noticed while investigating a coverity warning. The first patch fixes a problem with the accounting for host pixmap memory usage -- we didn't recalculate the current usage following a VM migration, but instead started again at zero

[Qemu-devel] [PULL 05/14] quorum: Do cleanup in caller coroutine

2017-01-09 Thread Kevin Wolf
Instead of calling quorum_aio_finalize() deeply nested in what used to be an AIO callback, do it in the same functions that allocated the AIOCB. Signed-off-by: Kevin Wolf Reviewed-by: Alberto Garcia Reviewed-by: Eric Blake --- block/quorum.c | 15 +-- 1 file changed, 9 insertions(+

[Qemu-devel] [PULL 03/14] quorum: Remove s from quorum_aio_get() arguments

2017-01-09 Thread Kevin Wolf
There is no point in passing the value of bs->opaque in order to overwrite it with itself. Signed-off-by: Kevin Wolf Reviewed-by: Eric Blake Reviewed-by: Paolo Bonzini Reviewed-by: Alberto Garcia --- block/quorum.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/b

Re: [Qemu-devel] [PULL 00/21] target-arm queue

2017-01-09 Thread Peter Maydell
remote-tracking branch 'remotes/gonglei/tags/cryptodev-next-20161224' > into staging (2017-01-06 15:18:09 +) > > are available in the git repository at: > > git://git.linaro.org/people/pmaydell/qemu-arm.git > tags/pull-target-arm-20170109 > > for you to fetc

[Qemu-devel] [PULL 02/14] coroutine: Introduce qemu_coroutine_enter_if_inactive()

2017-01-09 Thread Kevin Wolf
In the context of asynchronous work, if we have a worker coroutine that didn't yield, the parent coroutine cannot be reentered because it hasn't yielded yet. In this case we don't even have to reenter the parent because it will see that the work is already done and won't even yield. Signed-off-by:

[Qemu-devel] [PULL 01/14] qemu-img: fix in-flight count for qemu-img bench

2017-01-09 Thread Kevin Wolf
From: Paolo Bonzini With aio=native (qemu-img bench -n) one or more requests can be completed when a new request is submitted. This in turn can cause bench_cb to recurse before b->in_flight is updated. This causes multiple I/Os to be submitted with the same offset and, furthermore, the blk_aio_

[Qemu-devel] [PULL 04/14] quorum: Implement .bdrv_co_readv/writev

2017-01-09 Thread Kevin Wolf
This converts the quorum block driver from implementing callback-based interfaces for read/write to coroutine-based ones. This is the first step that will allow us further simplification of the code. Signed-off-by: Kevin Wolf Reviewed-by: Eric Blake Reviewed-by: Alberto Garcia --- block/quorum

[Qemu-devel] [PULL 00/14] Block layer patches

2017-01-09 Thread Kevin Wolf
The following changes since commit ffe22bf51065dd33022cf91f77a821d1f11c250d: Merge remote-tracking branch 'remotes/gonglei/tags/cryptodev-next-20161224' into staging (2017-01-06 15:18:09 +) are available in the git repository at: git://repo.or.cz/qemu/kevin.git tags/for-upstream for y

[Qemu-devel] [PULL 08/14] quorum: Implement .bdrv_co_preadv/pwritev()

2017-01-09 Thread Kevin Wolf
This enables byte granularity requests on quorum nodes. Note that the QMP events emitted by the driver are an external API that we were careless enough to define as sector based. The offset and length of requests reported in events are rounded therefore. Signed-off-by: Kevin Wolf Reviewed-by: Er

[Qemu-devel] [PULL 06/14] quorum: Inline quorum_aio_cb()

2017-01-09 Thread Kevin Wolf
This is a conversion to a more natural coroutine style and improves the readability of the driver. Signed-off-by: Kevin Wolf Reviewed-by: Alberto Garcia Reviewed-by: Eric Blake --- block/quorum.c | 128 ++--- 1 file changed, 59 insertions(+),

[Qemu-devel] [PULL 07/14] quorum: Avoid bdrv_aio_writev() for rewrites

2017-01-09 Thread Kevin Wolf
Replacing it with bdrv_co_pwritev() prepares us for byte granularity requests and gets us rid of the last bdrv_aio_*() user in quorum. Signed-off-by: Kevin Wolf Reviewed-by: Alberto Garcia Reviewed-by: Eric Blake --- block/quorum.c | 46 +++--- 1 file ch

Re: [Qemu-devel] [PULL v2 00/11] ui patch queue

2017-01-09 Thread Peter Maydell
e pull, > Gerd > > The following changes since commit dbe2b65566e76d3c3a0c3358285c0336ac61e757: > > Merge remote-tracking branch > 'remotes/vivier/tags/m68k-for-2.9-pull-request' into staging (2016-12-28 > 17:11:11 +) > > are available in the git repository

[Qemu-devel] [PULL 09/14] quorum: Inline quorum_fifo_aio_cb()

2017-01-09 Thread Kevin Wolf
Inlining the function removes some boilerplace code and replaces recursion by a simple loop, so the code becomes somewhat easier to understand. Signed-off-by: Kevin Wolf Reviewed-by: Alberto Garcia Reviewed-by: Eric Blake --- block/quorum.c | 42 +- 1 fi

  1   2   3   4   >