Re: [Qemu-devel] [PATCH 2/3] AioContext: acquire/release AioContext during aio_poll

2015-07-08 Thread Paolo Bonzini
On 08/07/2015 04:18, Fam Zheng wrote: @@ -267,7 +268,13 @@ bool aio_poll(AioContext *ctx, bool blocking) timeout = blocking ? aio_compute_timeout(ctx) : 0; /* wait until next event */ +if (timeout) { +aio_context_release(ctx); +} ret =

[Qemu-devel] [PULL v2 07/16] hw/i386/pc: factor out pc_cmos_init_floppy()

2015-07-08 Thread Michael S. Tsirkin
From: Laszlo Ersek ler...@redhat.com Extract the pc_cmos_init_floppy() function from pc_cmos_init(). The function sets two RTC registers: floppy drive types (0x10), overwriting the earlier value in there), and REG_EQUIPMENT_BYTE (0x14), setting bits in the prior value. Cc: Jan Tomko

[Qemu-devel] [PULL v2 14/16] virtio-pci: implement cfg capability

2015-07-08 Thread Michael S. Tsirkin
spec says we must, so let's do it! Note: the implementation is incorrect for BE targets. Will fix with a patch on top, not a big deal now as the only user is seabios, used on x86 only. Tested-by: Gerd Hoffmann kra...@redhat.com Signed-off-by: Michael S. Tsirkin m...@redhat.com ---

[Qemu-devel] [PULL v2 10/16] virtio_net: reuse constants from linux

2015-07-08 Thread Michael S. Tsirkin
VIRTIO_NET_F_CTRL_GUEST_OFFLOADS now appears in the linux header, let's reuse it. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/hw/virtio/virtio-net.h | 12 include/standard-headers/linux/virtio_net.h | 16 2 files changed, 16

[Qemu-devel] [PULL v2 08/16] hw/i386/pc: reflect any FDC @ ioport 0x3f0 in the CMOS

2015-07-08 Thread Michael S. Tsirkin
From: Laszlo Ersek ler...@redhat.com With the pc-q35-2.4 machine type, if the user creates an ISA FDC manually: -device isa-fdc,driveA=drive-fdc0-0-0 \ -drive file=...,if=none,id=drive-fdc0-0-0,format=raw then the board-default FDC will be skipped, and only the explicitly requested FDC will

Re: [Qemu-devel] [PULL v2 00/12] Final changes for 2.4-rc0

2015-07-08 Thread Peter Maydell
On 7 July 2015 at 15:12, Paolo Bonzini pbonz...@redhat.com wrote: The following changes since commit f6e3035f75e5c6a73485335765ae070304c7a110: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream-smm' into staging (2015-07-06 23:37:53 +0100) are available in the git repository

Re: [Qemu-devel] [PATCH rebased for-2.4] target-i386: add ABM to Haswell* and Broadwell* CPU models

2015-07-08 Thread Paolo Bonzini
On 07/07/2015 19:21, Eduardo Habkost wrote: On Tue, Jul 07, 2015 at 12:42:01PM +0200, Paolo Bonzini wrote: ABM is only implemented as a single instruction set by AMD; all AMD processors support both instructions or neither. Intel considers POPCNT as part of SSE4.2, and LZCNT as part of BMI1,

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Juan Quintela
Christian Borntraeger borntrae...@de.ibm.com wrote: Am 07.07.2015 um 15:08 schrieb Juan Quintela: This includes a new section that for now just stores the current qemu state. Right now, there are only one way to control what is the state of the target after migration. - If you run the

Re: [Qemu-devel] [PATCH 2/2] migration: Trace event and migration event are different things

2015-07-08 Thread Dr. David Alan Gilbert
* Juan Quintela (quint...@redhat.com) wrote: We can want the trace event even without migration events enabled. Reported-by: Wen Congyang ghost...@gmail.com Signed-off-by: Juan Quintela quint...@redhat.com --- migration/migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [Qemu-devel] [Qemu-block] [PATCH] block/mirror: limit qiov to IOV_MAX elements

2015-07-08 Thread Stefan Hajnoczi
On Wed, Jul 8, 2015 at 12:14 PM, Kevin Wolf kw...@redhat.com wrote: Am 01.07.2015 um 16:45 hat Stefan Hajnoczi geschrieben: If mirror has more free buffers than IOV_MAX, preadv(2)/pwritev(2) EINVAL failures may be encountered. It is possible to trigger this by setting granularity to a low

Re: [Qemu-devel] [PULL v3 00/11] qemu-ga patches for 2.4.0

2015-07-08 Thread Peter Maydell
On 8 July 2015 at 03:11, Michael Roth mdr...@linux.vnet.ibm.com wrote: Hi Peter, Please ignore the just-posted v2, the configure check was missing an include which resulted in the feature *always* being disabled. Sorry for all the noise. This adds win32 implementations of:

Re: [Qemu-devel] [PATCH v6 2/4] qcow2: add option to clean unused cache entries after some time

2015-07-08 Thread Kevin Wolf
Am 05.06.2015 um 18:27 hat Alberto Garcia geschrieben: This adds a new 'cache-clean-interval' option that cleans all qcow2 cache entries that haven't been used in a certain interval, given in seconds. This allows setting a large L2 cache size so it can handle scenarios with lots of I/O and

[Qemu-devel] [PULL v3 00/12] Final changes for 2.4-rc0

2015-07-08 Thread Paolo Bonzini
The following changes since commit f6e3035f75e5c6a73485335765ae070304c7a110: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream-smm' into staging (2015-07-06 23:37:53 +0100) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you to

Re: [Qemu-devel] [RFC v3 0/8] Fix QEMU crash during memory hotplug with vhost=on

2015-07-08 Thread Igor Mammedov
On Wed, 8 Jul 2015 13:01:05 +0300 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jul 08, 2015 at 11:46:40AM +0200, Igor Mammedov wrote: Changelog: v2-v3: * fixed(work-arouned) unmapping issues, now memory subsytem keeps track of HVA mapped regions and doesn't allow to

[Qemu-devel] [PATCH 1/2] migration: Only change state after migration has finished

2015-07-08 Thread Juan Quintela
On previous change, we changed state at post load time if it was not running, special casing the running change. Now, we change any states at the end of the migration. Signed-off-by: Juan Quintela quint...@redhat.com --- migration/migration.c | 48

[Qemu-devel] [PATCH 2/2] migration: Trace event and migration event are different things

2015-07-08 Thread Juan Quintela
We can want the trace event even without migration events enabled. Reported-by: Wen Congyang ghost...@gmail.com Signed-off-by: Juan Quintela quint...@redhat.com --- migration/migration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/migration.c

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Dr. David Alan Gilbert
* Christian Borntraeger (borntrae...@de.ibm.com) wrote: Am 08.07.2015 um 12:43 schrieb Dr. David Alan Gilbert: * Christian Borntraeger (borntrae...@de.ibm.com) wrote: Am 08.07.2015 um 12:14 schrieb Dr. David Alan Gilbert: * Christian Borntraeger (borntrae...@de.ibm.com) wrote: Am

Re: [Qemu-devel] [Qemu-block] [PATCH] block/mirror: limit qiov to IOV_MAX elements

2015-07-08 Thread Kevin Wolf
Am 01.07.2015 um 16:45 hat Stefan Hajnoczi geschrieben: If mirror has more free buffers than IOV_MAX, preadv(2)/pwritev(2) EINVAL failures may be encountered. It is possible to trigger this by setting granularity to a low value like 8192. This patch stops appending chunks once IOV_MAX is

Re: [Qemu-devel] [RFC v3 0/8] Fix QEMU crash during memory hotplug with vhost=on

2015-07-08 Thread Michael S. Tsirkin
On Wed, Jul 08, 2015 at 01:41:16PM +0200, Igor Mammedov wrote: As additional issue: deleting backend doesn't actually frees memory since it's just mmap(NORESERVE) over allocated region. It's possible to do madvise(MADV_DONTNEED) on area but it doesn't guaranty that kernel will free memory.

[Qemu-devel] [PATCH 0/2] Migration events fix and generate trace

2015-07-08 Thread Juan Quintela
Hi This should fix the problems on s390, and restores unconditionally the trace point. Please review/test. Thanks, Juan. Juan Quintela (2): migration: Only change state after migration has finished migration: Trace event and migration event are different things migration/migration.c |

Re: [Qemu-devel] [PATCH 1/2] migration: Only change state after migration has finished

2015-07-08 Thread Christian Borntraeger
Am 08.07.2015 um 14:08 schrieb Juan Quintela: On previous change, we changed state at post load time if it was not running, special casing the running change. Now, we change any states at the end of the migration. Signed-off-by: Juan Quintela quint...@redhat.com This fixes my s390

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Christian Borntraeger
Am 08.07.2015 um 14:25 schrieb Juan Quintela: Christian Borntraeger borntrae...@de.ibm.com wrote: Am 08.07.2015 um 14:08 schrieb Juan Quintela: Christian Borntraeger borntrae...@de.ibm.com wrote: Am 07.07.2015 um 15:08 schrieb Juan Quintela: This includes a new section that for now just

Re: [Qemu-devel] GSoC 2015 (Mac OS 9 support) report, week 10

2015-07-08 Thread Laurent Vivier
Le 08/07/2015 13:10, Alexander Graf a écrit : On 07/08/15 10:48, Laurent Vivier wrote: Le 08/07/2015 00:56, Alexander Graf a écrit : [Done] - Update project log (6.17) - Debug OpenBIOS ADB issues since agraf's 26a9dfe patch [This Week] - Update project page (7.7) - Fix

Re: [Qemu-devel] [PULL 14/28] runstate: migration allows more transitions now

2015-07-08 Thread Juan Quintela
zhanghailiang zhang.zhanghaili...@huawei.com wrote: Hi, If testing migration with '-S' for qemu command line, (migrate directly without executing 'cont' command), qemu process in the destination will abort with the follow message: ERROR: invalid runstate transition: 'inmigrate' -

Re: [Qemu-devel] [RFC v3 7/8] memory: extend memory_region_add_subregion() to support error reporting

2015-07-08 Thread Peter Maydell
On 8 July 2015 at 10:46, Igor Mammedov imamm...@redhat.com wrote: extends memory_region_add_subregion() by adding Error** argument to allow t fail and return a error from it. Signed-off-by: Igor Mammedov imamm...@redhat.com 156 files changed, 619 insertions(+), 420 deletions(-) This is a

Re: [Qemu-devel] [PATCH v2] block/curl: Don't lose original error when a connection fails.

2015-07-08 Thread Richard W.M. Jones
On Wed, Jul 08, 2015 at 12:23:37PM +0200, Kevin Wolf wrote: Am 03.07.2015 um 14:35 hat Markus Armbruster geschrieben: Richard W.M. Jones rjo...@redhat.com writes: Currently if qemu is connected to a curl source (eg. web server), and the web server fails / times out / dies, you always

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Christian Borntraeger
Am 08.07.2015 um 14:08 schrieb Juan Quintela: Christian Borntraeger borntrae...@de.ibm.com wrote: Am 07.07.2015 um 15:08 schrieb Juan Quintela: This includes a new section that for now just stores the current qemu state. Right now, there are only one way to control what is the state of the

Re: [Qemu-devel] [PATCH] raw-posix.c: remove raw device access for cdrom

2015-07-08 Thread Kevin Wolf
Am 08.07.2015 um 12:47 hat Laurent Vivier geschrieben: On 08/07/2015 12:31, Kevin Wolf wrote: Am 02.07.2015 um 16:18 hat Laurent Vivier geschrieben: On 02/07/2015 16:03, Paolo Bonzini wrote: On 02/07/2015 15:58, Laurent Vivier wrote: Since any /dev entry can be treated as a

Re: [Qemu-devel] [PATCH RFC 4/4] aio-posix: Use epoll in aio_poll

2015-07-08 Thread Stefan Hajnoczi
On Wed, Jul 08, 2015 at 09:01:27AM +0800, Fam Zheng wrote: On Tue, 07/07 16:08, Stefan Hajnoczi wrote: +#define EPOLL_BATCH 128 +static bool aio_poll_epoll(AioContext *ctx, bool blocking) +{ +AioHandler *node; +bool was_dispatching; +int i, ret; +bool

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Juan Quintela
Christian Borntraeger borntrae...@de.ibm.com wrote: Am 08.07.2015 um 14:08 schrieb Juan Quintela: Christian Borntraeger borntrae...@de.ibm.com wrote: Am 07.07.2015 um 15:08 schrieb Juan Quintela: This includes a new section that for now just stores the current qemu state. Right now, there

Re: [Qemu-devel] [PATCH v2 RFC 0/8] block: persistent dirty bitmaps

2015-07-08 Thread Vladimir Sementsov-Ogievskiy
On 24.06.2015 03:21, John Snow wrote: On 06/17/2015 10:29 AM, Vladimir Sementsov-Ogievskiy wrote: On 12.06.2015 22:34, John Snow wrote: On 06/08/2015 11:21 AM, Vladimir Sementsov-Ogievskiy wrote: v2: - rebase on my 'Dirty bitmaps migration' series - remove 'print dirty bitmap',

Re: [Qemu-devel] GSoC 2015 (Mac OS 9 support) report, week 10

2015-07-08 Thread Alexander Graf
On 07/08/15 10:48, Laurent Vivier wrote: Le 08/07/2015 00:56, Alexander Graf a écrit : [Done] - Update project log (6.17) - Debug OpenBIOS ADB issues since agraf's 26a9dfe patch [This Week] - Update project page (7.7) - Fix cuda_adb_req() to expect a 3-byte header instead of a

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Juan Quintela
Christian Borntraeger borntrae...@de.ibm.com wrote: Am 07.07.2015 um 15:08 schrieb Juan Quintela: This includes a new section that for now just stores the current qemu state. Right now, there are only one way to control what is the state of the target after migration. - If you run the

Re: [Qemu-devel] [PULL v2 00/22] QOM CPUState patch queue 2015-07-07

2015-07-08 Thread Peter Maydell
On 7 July 2015 at 18:16, Andreas Färber afaer...@suse.de wrote: Hello Peter, This is my QOM CPU patch queue. Please pull. Note: For time reasons I did not give this queue as much testing as usual, in particular BSD and non-x86 KVM hosts were not covered. Regards, Andreas Cc: Peter

Re: [Qemu-devel] [Qemu-block] [PATCH 1/2] block: vpc - prevent overflow if max_table_entries = 0x40000000

2015-07-08 Thread Kevin Wolf
Am 26.06.2015 um 11:57 hat Stefan Hajnoczi geschrieben: On Thu, Jun 25, 2015 at 11:05:20AM -0400, Jeff Cody wrote: On Thu, Jun 25, 2015 at 03:28:35PM +0100, Stefan Hajnoczi wrote: On Wed, Jun 24, 2015 at 03:54:27PM -0400, Jeff Cody wrote: @@ -269,7 +270,9 @@ static int

Re: [Qemu-devel] [PATCH v2] block/curl: Don't lose original error when a connection fails.

2015-07-08 Thread Kevin Wolf
Am 08.07.2015 um 13:36 hat Richard W.M. Jones geschrieben: On Wed, Jul 08, 2015 at 12:23:37PM +0200, Kevin Wolf wrote: Am 03.07.2015 um 14:35 hat Markus Armbruster geschrieben: Richard W.M. Jones rjo...@redhat.com writes: Currently if qemu is connected to a curl source (eg. web

[Qemu-devel] [PATCH] migration: Write documetation for events capabilites

2015-07-08 Thread Juan Quintela
Reported-by: Jiri Denemark jdene...@redhat.com Signed-off-by: Juan Quintela quint...@redhat.com --- qmp-commands.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/qmp-commands.hx b/qmp-commands.hx index e1bcc60..ba630b1 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -3406,6 +3406,7 @@

Re: [Qemu-devel] [PATCH v2] block/curl: Don't lose original error when a connection fails.

2015-07-08 Thread Richard W.M. Jones
On Wed, Jul 08, 2015 at 02:01:30PM +0200, Kevin Wolf wrote: The guest can't cause it, but once the connection is down, I expect every request to fail. You don't have to have a malicious guest for filling up the log file, it just needs to be careless enough to continue trying new requests

Re: [Qemu-devel] [PATCH] target-mips: fix ASID synchronisation for MIPS MT

2015-07-08 Thread Leon Alrae
On 01/07/2015 14:59, Aurelien Jarno wrote: When syncing the task ASID with EntryHi, correctly or the value instead of assigning it. Reported-by: Dr. David Alan Gilbert dgilb...@redhat.com Signed-off-by: Aurelien Jarno aurel...@aurel32.net Cc: Leon Alrae leon.al...@imgtec.com ---

Re: [Qemu-devel] [PATCH for-2.4] watchdog/diag288: correctly register for system reset requests

2015-07-08 Thread Paolo Bonzini
On 07/07/2015 12:51, Peter Crosthwaite wrote: On Tue, Jul 7, 2015 at 1:53 AM, Cornelia Huck cornelia.h...@de.ibm.com wrote: From: Xu Wang gesa...@linux.vnet.ibm.com The diag288 watchdog is no sysbus device, therefore it doesn't get triggered on resets automatically using dc-reset. Let's

[Qemu-devel] [PATCH] target-i386/FPU: a misprint in helper_fistll_ST0

2015-07-08 Thread Dmitry Poletaev
There is a misprint in the patch https://lists.gnu.org/archive/html/qemu-devel/2014-11/msg01657.html . It cause errors in guest work. Here is the bugfix. From: Dmitry Poletaev poletaev-q...@yandex.ru Signed-off-by: Dmitry Poletaev poletaev-q...@yandex.ru Reported-by: Kirill Batuzov

Re: [Qemu-devel] [PATCH 2/2] tests: test rx recovery from cont

2015-07-08 Thread Jason Wang
On 07/08/2015 01:44 PM, Fam Zheng wrote: On Wed, 07/08 13:12, Jason Wang wrote: On 07/08/2015 11:22 AM, Fam Zheng wrote: On Tue, 07/07 18:58, Jason Wang wrote: Rx should be recovered after cont. Signed-off-by: Jason Wang jasow...@redhat.com --- tests/virtio-net-test.c | 48

Re: [Qemu-devel] [RFC v3 0/8] Fix QEMU crash during memory hotplug with vhost=on

2015-07-08 Thread Michael S. Tsirkin
On Wed, Jul 08, 2015 at 11:46:40AM +0200, Igor Mammedov wrote: Changelog: v2-v3: * fixed(work-arouned) unmapping issues, now memory subsytem keeps track of HVA mapped regions and doesn't allow to map a new region at address where previos has benn mapped until

[Qemu-devel] [RFC v3 8/8] memory: add support for deleting HVA mapped MemoryRegion

2015-07-08 Thread Igor Mammedov
Although memory_region_del_subregion() removes MemoryRegion from current address space, it's possible that it's still in use/referenced until old address space view is destroyed. That doesn't allow to unmap it from HVA region at the time of memory_region_del_subregion(). As a solution track HVA

Re: [Qemu-devel] [PATCH] raw-posix.c: remove raw device access for cdrom

2015-07-08 Thread Kevin Wolf
Am 02.07.2015 um 16:18 hat Laurent Vivier geschrieben: On 02/07/2015 16:03, Paolo Bonzini wrote: On 02/07/2015 15:58, Laurent Vivier wrote: Since any /dev entry can be treated as a raw disk image, it is worth noting which devices can be accessed when and how. /dev/rdisk nodes are

Re: [Qemu-devel] [PATCH for-2.4] watchdog/diag288: correctly register for system reset requests

2015-07-08 Thread Cornelia Huck
On Wed, 8 Jul 2015 09:45:05 +0200 Cornelia Huck cornelia.h...@de.ibm.com wrote: On Tue, 7 Jul 2015 14:11:18 -0700 Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Yes I see. I think it is a core code bug though and we want to avoid having to patch individual devs based on their system

Re: [Qemu-devel] [PATCH] virtio-net: Drop net_virtio_info.can_receive

2015-07-08 Thread Stefan Hajnoczi
On Tue, Jul 07, 2015 at 04:45:41PM +0800, Jason Wang wrote: On 07/06/2015 11:21 PM, Stefan Hajnoczi wrote: On Mon, Jul 06, 2015 at 11:32:25AM +0800, Jason Wang wrote: On 07/02/2015 08:46 PM, Stefan Hajnoczi wrote: On Tue, Jun 30, 2015 at 04:35:24PM +0800, Jason Wang wrote: On

Re: [Qemu-devel] [PATCH RFC 3/4] aio: Introduce aio_context_setup

2015-07-08 Thread Stefan Hajnoczi
On Wed, Jul 08, 2015 at 09:15:57AM +0800, Fam Zheng wrote: On Tue, 07/07 15:35, Stefan Hajnoczi wrote: On Tue, Jun 30, 2015 at 09:19:44PM +0800, Fam Zheng wrote: diff --git a/async.c b/async.c index 06971f4..1d70cfd 100644 --- a/async.c +++ b/async.c @@ -290,12 +290,17 @@

Re: [Qemu-devel] [PATCH for-2.4] watchdog/diag288: correctly register for system reset requests

2015-07-08 Thread Paolo Bonzini
On 08/07/2015 10:01, Christian Borntraeger wrote: Doesn't seem right. Even if it is not a SBD it should still sit in the QOM tree in a place where the reset is reached. Where is this device in the QOM tree? Reset doesn't follow the QOM tree. In fact this is the main reason why

[Qemu-devel] [PULL v2 15/16] virtio fix cfg endian-ness for BE targets

2015-07-08 Thread Michael S. Tsirkin
address_space_rw assumes data is in target format and byte-swaps it if target is BE and device is LE. Use fixed-endian LE APIs instead. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/virtio/virtio-pci.c | 91 +- 1 file changed, 83

Re: [Qemu-devel] [PULL 14/28] runstate: migration allows more transitions now

2015-07-08 Thread zhanghailiang
Hi, If testing migration with '-S' for qemu command line, (migrate directly without executing 'cont' command), qemu process in the destination will abort with the follow message: ERROR: invalid runstate transition: 'inmigrate' - 'prelaunch' Aborted After the follow modification, it will be

Re: [Qemu-devel] [PATCH for-2.4] watchdog/diag288: correctly register for system reset requests

2015-07-08 Thread Paolo Bonzini
On 08/07/2015 10:48, Christian Borntraeger wrote: In fact this is the main reason why I dislike TYPE_DEVICE as a superclass... Oh, thats why we were asked to use that instead of sysbus device? ;-) Did I? I've always liked sysbus... :) Not you. But its a pattern that I have

Re: [Qemu-devel] [RFC v3 8/8] memory: add support for deleting HVA mapped MemoryRegion

2015-07-08 Thread Michael S. Tsirkin
On Wed, Jul 08, 2015 at 11:46:48AM +0200, Igor Mammedov wrote: Although memory_region_del_subregion() removes MemoryRegion from current address space, it's possible that it's still in use/referenced until old address space view is destroyed. That doesn't allow to unmap it from HVA region at

[Qemu-devel] [RFC v3 4/8] pc: fix QEMU crashing when more than ~50 memory hotplugged

2015-07-08 Thread Igor Mammedov
QEMU asserts in vhost due to hitting vhost backend limit on number of supported memory regions. Describe all hotplugged memory as one continuos range to vhost with linear 1:1 HVA-GPA mapping in backend. Signed-off-by: Igor Mammedov imamm...@redhat.com --- hw/virtio/vhost.c | 47

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Christian Borntraeger
Am 07.07.2015 um 15:08 schrieb Juan Quintela: This includes a new section that for now just stores the current qemu state. Right now, there are only one way to control what is the state of the target after migration. - If you run the target qemu with -S, it would start stopped. - If you

Re: [Qemu-devel] [PATCH v2] block/curl: Don't lose original error when a connection fails.

2015-07-08 Thread Kevin Wolf
Am 03.07.2015 um 14:35 hat Markus Armbruster geschrieben: Richard W.M. Jones rjo...@redhat.com writes: Currently if qemu is connected to a curl source (eg. web server), and the web server fails / times out / dies, you always see a bogus EIO Input/output error. For example, choose a

Re: [Qemu-devel] [PATCH for-2.4] watchdog/diag288: correctly register for system reset requests

2015-07-08 Thread Cornelia Huck
On Tue, 7 Jul 2015 14:11:18 -0700 Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Tue, Jul 7, 2015 at 7:22 AM, Christian Borntraeger borntrae...@de.ibm.com wrote: Am 07.07.2015 um 12:51 schrieb Peter Crosthwaite: qemu_log_mask(CPU_LOG_RESET, Watchdog timer expired.\n); @@

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 0/4] target-ppc: Add FWNMI support in qemu for powerKVM guests

2015-07-08 Thread Aravinda Prasad
On Friday 03 July 2015 11:31 AM, David Gibson wrote: On Thu, Jul 02, 2015 at 07:11:52PM +1000, Alexey Kardashevskiy wrote: On 04/02/2015 03:46 PM, David Gibson wrote: On Thu, Apr 02, 2015 at 03:28:11PM +1100, Alexey Kardashevskiy wrote: On 11/19/2014 04:48 PM, Aravinda Prasad wrote: On

[Qemu-devel] [PULL v2 06/16] ich9: implement strap SPKR pin logic

2015-07-08 Thread Michael S. Tsirkin
From: Paulo Alcantara pca...@gmail.com If the signal is sampled high, this indicates that the system is strapped to the No Reboot mode (ICH9 will disable the TCO Timer system reboot feature). The status of this strap is readable via the NO_REBOOT bit (CC: offset 0x3410:bit 5). The NO_REBOOT bit

[Qemu-devel] [PULL v2 00/16] pc,virtio,pci: fixes and updates

2015-07-08 Thread Michael S. Tsirkin
The following changes since commit f6e3035f75e5c6a73485335765ae070304c7a110: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream-smm' into staging (2015-07-06 23:37:53 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git

Re: [Qemu-devel] [Qemu-block] NVMe volatile write cache fixes

2015-07-08 Thread Kevin Wolf
Am 11.06.2015 um 12:01 hat Christoph Hellwig geschrieben: The first patch ensures that flush actually flushes data so that data integrity is preserved, the second fixe up WCE reporting. Thanks, applied to the block branch for 2.4-rc1. Kevin

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Dr. David Alan Gilbert
* Christian Borntraeger (borntrae...@de.ibm.com) wrote: Am 08.07.2015 um 12:14 schrieb Dr. David Alan Gilbert: * Christian Borntraeger (borntrae...@de.ibm.com) wrote: Am 07.07.2015 um 15:08 schrieb Juan Quintela: This includes a new section that for now just stores the current qemu

Re: [Qemu-devel] [PATCH for-2.4] watchdog/diag288: correctly register for system reset requests

2015-07-08 Thread Christian Borntraeger
Am 08.07.2015 um 09:54 schrieb Paolo Bonzini: On 07/07/2015 12:51, Peter Crosthwaite wrote: On Tue, Jul 7, 2015 at 1:53 AM, Cornelia Huck cornelia.h...@de.ibm.com wrote: From: Xu Wang gesa...@linux.vnet.ibm.com The diag288 watchdog is no sysbus device, therefore it doesn't get

Re: [Qemu-devel] [PATCH for-2.4] watchdog/diag288: correctly register for system reset requests

2015-07-08 Thread Christian Borntraeger
Am 08.07.2015 um 10:44 schrieb Paolo Bonzini: On 08/07/2015 10:01, Christian Borntraeger wrote: Doesn't seem right. Even if it is not a SBD it should still sit in the QOM tree in a place where the reset is reached. Where is this device in the QOM tree? Reset doesn't follow the QOM tree.

[Qemu-devel] [PULL v2 01/16] dataplane: fix cross-endian issues

2015-07-08 Thread Michael S. Tsirkin
From: Greg Kurz gk...@linux.vnet.ibm.com Accesses to vring_avail_event and vring_used_event must honor the queue endianness. This patch allows cross-endian setups to use dataplane (tested with ppc64 on ppc64le, and vice-versa). Suggested-by: Cornelia Huck cornelia.h...@de.ibm.com Signed-off-by:

[Qemu-devel] [PULL v2 03/16] acpi: split out ICH ACPI support

2015-07-08 Thread Michael S. Tsirkin
MIPS doesn't need it, and including it creates problem as we are adding dependency on ISA LPC bridge. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/acpi/Makefile.objs | 3 ++- 3 files

Re: [Qemu-devel] [PATCH v2] net: Flush queued packets when guest resumes

2015-07-08 Thread Jason Wang
On 07/07/2015 05:03 PM, Fam Zheng wrote: On Tue, 07/07 15:44, Jason Wang wrote: On 07/07/2015 09:21 AM, Fam Zheng wrote: Since commit 6e99c63 net/socket: Drop net_socket_can_send and friends, net queues need to be explicitly flushed after qemu_can_send_packet() returns false, because the

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Christian Borntraeger
Am 08.07.2015 um 12:14 schrieb Dr. David Alan Gilbert: * Christian Borntraeger (borntrae...@de.ibm.com) wrote: Am 07.07.2015 um 15:08 schrieb Juan Quintela: This includes a new section that for now just stores the current qemu state. Right now, there are only one way to control what is the

Re: [Qemu-devel] [PATCH] raw-posix.c: remove raw device access for cdrom

2015-07-08 Thread Laurent Vivier
On 08/07/2015 12:31, Kevin Wolf wrote: Am 02.07.2015 um 16:18 hat Laurent Vivier geschrieben: On 02/07/2015 16:03, Paolo Bonzini wrote: On 02/07/2015 15:58, Laurent Vivier wrote: Since any /dev entry can be treated as a raw disk image, it is worth noting which devices can be accessed

Re: [Qemu-devel] [PATCH RFC 0/4] aio: Use epoll_wait in aio_poll

2015-07-08 Thread Christian Borntraeger
Am 08.07.2015 um 03:02 schrieb Fam Zheng: On Tue, 07/07 16:54, Christian Borntraeger wrote: Am 30.06.2015 um 15:19 schrieb Fam Zheng: epoll is more scalable than ppoll. It performs faster than ppoll when the number of polled fds is high. See patch 4 for an example of the senario and some

[Qemu-devel] [PULL v2 04/16] ich9: add TCO interface emulation

2015-07-08 Thread Michael S. Tsirkin
From: Paulo Alcantara pca...@gmail.com This interface provides some registers within a 32-byte range and can be acessed through PCI-to-LPC bridge interface (PMBASE + 0x60). It's commonly used as a watchdog timer to detect system lockups through SMIs that are generated -- if TCO_EN bit is set --

Re: [Qemu-devel] [PATCH 1/2] tests: introduce basic pci test for virtio-net

2015-07-08 Thread Jason Wang
On 07/08/2015 01:47 PM, Fam Zheng wrote: On Wed, 07/08 13:02, Jason Wang wrote: On 07/08/2015 11:19 AM, Fam Zheng wrote: On Tue, 07/07 18:58, Jason Wang wrote: Signed-off-by: Jason Wang jasow...@redhat.com --- tests/Makefile | 2 +- tests/virtio-net-test.c |

[Qemu-devel] [PULL v2 05/16] tests: add testcase for TCO watchdog emulation

2015-07-08 Thread Michael S. Tsirkin
From: Paulo Alcantara pca...@gmail.com This patch adds a testcase that covers the following: 1) TCO default values 2) first and second TCO timeout 3) watch and validate ticks counter through TCO_RLD register 4) maximum supported TCO timeout (0x3ff) 5) watchdog actions

[Qemu-devel] [PULL v2 02/16] Revert dataplane: allow virtio-1 devices

2015-07-08 Thread Michael S. Tsirkin
From: Cornelia Huck cornelia.h...@de.ibm.com This reverts commit f5a5628cf0b65b223fa0c9031714578dfac4cf04. This was an old patch that had been already superseded by b0e5d90eb (dataplane: endianness-aware accesses). Signed-off-by: Cornelia Huck cornelia.h...@de.ibm.com Reviewed-by: Michael S.

Re: [Qemu-devel] [PULL 0/4] s390 patch queue 2015-07-07

2015-07-08 Thread Peter Maydell
On 7 July 2015 at 16:52, Alexander Graf ag...@suse.de wrote: Hi Peter, This is my current patch queue for s390. Please pull. Alex The following changes since commit aeb72188e073d515e1f5a80f6b603692a396477b: Merge remote-tracking branch 'remotes/kraxel/tags/pull-vga-20150707-1' into

Re: [Qemu-devel] [PATCH 5/6] ARM: enable ARM_FEATURE_MPU for Cortex-M3/M4

2015-07-08 Thread Alex Züpke
Am 07.07.2015 um 22:50 schrieb Peter Crosthwaite: On Tue, Jul 7, 2015 at 11:25 AM, Alex Zuepke alexander.zue...@hs-rm.de wrote: Signed-off-by: Alex Zuepke alexander.zue...@hs-rm.de --- hw/arm/armv7m.c | 17 - target-arm/cpu.c|2 ++ target-arm/helper.c | 30

Re: [Qemu-devel] GSoC 2015 (Mac OS 9 support) report, week 10

2015-07-08 Thread Laurent Vivier
Le 08/07/2015 00:56, Alexander Graf a écrit : [Done] - Update project log (6.17) - Debug OpenBIOS ADB issues since agraf's 26a9dfe patch [This Week] - Update project page (7.7) - Fix cuda_adb_req() to expect a 3-byte header instead of a 2-byte one - This has a preliminary

[Qemu-devel] [RFC v3 0/8] Fix QEMU crash during memory hotplug with vhost=on

2015-07-08 Thread Igor Mammedov
Changelog: v2-v3: * fixed(work-arouned) unmapping issues, now memory subsytem keeps track of HVA mapped regions and doesn't allow to map a new region at address where previos has benn mapped until previous region is gone * fixed offset calculations in

[Qemu-devel] [RFC v3 1/8] memory: get rid of memory_region_destructor_ram_from_ptr()

2015-07-08 Thread Igor Mammedov
memory_region_destructor_ram() - qemu_ram_free() calls reclaim_ramblock() which does: if (!(block-flags RAM_PREALLOC)) free_host_memory() g_free(block) while memory_region_destructor_ram_from_ptr() - qemu_ram_free_from_ptr() calls g_free_rcu(block, rcu) results - g_free(block)

[Qemu-devel] [PULL v2 12/16] pcie: Set the link active in the link status register

2015-07-08 Thread Michael S. Tsirkin
From: Benjamin Herrenschmidt b...@kernel.crashing.org Some firmwares can test that and assume the device hasn't come up if that bit isn't set Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Michael S. Tsirkin

Re: [Qemu-devel] [PATCH v6 09/10] target-i386: exception handling for other helper functions

2015-07-08 Thread Pavel Dovgaluk
From: Richard Henderson [mailto:rth7...@gmail.com] On Behalf Of Richard Henderson On 07/07/2015 02:31 PM, Pavel Dovgalyuk wrote: diff --git a/target-i386/misc_helper.c b/target-i386/misc_helper.c index 52c5d65..c8e7ee9 100644 --- a/target-i386/misc_helper.c +++

[Qemu-devel] [RFC v3 6/8] exec: add qemu_ram_unmap_hva() API for unmapping memory from HVA area

2015-07-08 Thread Igor Mammedov
it will allow to return atomically return RAMBlock's host address range into continuos HVA area so that no hole would appear in there. also mark RAMBlock with RAM_PREALLOC flag so it won't be umapped as conventional memory by reclaim_ramblock()-qemu_anon_ram_free() Signed-off-by: Igor Mammedov

[Qemu-devel] [RFC v3 5/8] exec: make sure that RAMBlock descriptor won't be leaked

2015-07-08 Thread Igor Mammedov
HVA remapped file backed RAMBlock shouldn't be freed with munmap() as it will create a hole in HVA area but file descriptor should be freed so it won't leak. Rearrange code so that file descriptor is freed always if it's been used and drop unnecessary munmap() call/branch because

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Dr. David Alan Gilbert
* Christian Borntraeger (borntrae...@de.ibm.com) wrote: Am 07.07.2015 um 15:08 schrieb Juan Quintela: This includes a new section that for now just stores the current qemu state. Right now, there are only one way to control what is the state of the target after migration. - If you

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Christian Borntraeger
Am 08.07.2015 um 12:14 schrieb Dr. David Alan Gilbert: * Christian Borntraeger (borntrae...@de.ibm.com) wrote: Am 07.07.2015 um 15:08 schrieb Juan Quintela: This includes a new section that for now just stores the current qemu state. Right now, there are only one way to control what is the

[Qemu-devel] -cpu host, enforce fail on amd processor (CPUID.80000001H:EDX)

2015-07-08 Thread Alexandre DERUMIER
Hi, I'm currently testing -cpu host,enforce, and it's failing to start on amd processors (tested with opteron 61XX,opteron 63xx,FX-6300 and FX-9590) Is it expected ? warning: host doesn't support requested feature: CPUID.8001H:EDX [bit 0] warning: host doesn't support requested feature:

Re: [Qemu-devel] [Qemu-block] [PATCH 1/2] ahci: Fix CD-ROM signature

2015-07-08 Thread Kevin Wolf
Am 07.07.2015 um 19:19 hat John Snow geschrieben: On 07/06/2015 05:49 PM, John Snow wrote: From: Hannes Reinecke h...@suse.de The CD-ROM signature is 0xeb140101, not 0xeb14. Without this change OVMF/Duet runs into a timeout trying to detect a SATA cdrom. Signed-off-by:

[Qemu-devel] [PULL v2 13/16] virtio: define virtio_pci_cfg_cap in header.

2015-07-08 Thread Michael S. Tsirkin
Update virtio pci header from linux-next virtio maintainer tree. We already have VIRTIO_PCI_CAP_PCI_CFG, let's define the structure that goes with it. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- include/standard-headers/linux/virtio_pci.h | 6 ++ 1 file changed, 6 insertions(+)

[Qemu-devel] [PULL v2 16/16] tco-test: fix up config accesses and re-enable

2015-07-08 Thread Michael S. Tsirkin
The mistake that made the test fail was that it tried to use a BAR address as an offset for config accesses to LPC. Config accesses don't need a BAR, and LPC does not have one. Don't attempt to map it. With this change applied, TCO test passes, so re-enable it. Signed-off-by: Michael S. Tsirkin

[Qemu-devel] [RFC v3 3/8] pc: reserve hotpluggable memory range with memory_region_init_hva_range()

2015-07-08 Thread Igor Mammedov
It makes sure that all hotplugged memory will be put in continuos HVA range allowing to use 1:1 GVA-HVA mapping. 1:1 mapping will be used by vhost to reduce number of memory ranges for hotplugged memory to a single range that covers all hotpluggable memory address space. Signed-off-by: Igor

[Qemu-devel] [RFC v3 2/8] memory: introduce MemoryRegion container with reserved HVA range

2015-07-08 Thread Igor Mammedov
Patch adds memory_region_init_hva_range() and memory_region_find_hva_range() API to allocate and lookup reserved HVA MemoryRegion. MemoryRegion with reserved HVA range will be used for providing linear 1:1 HVA-GVA mapping for RAM MemoryRegion-s that is added as subregions inside it. It will be

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Christian Borntraeger
Am 08.07.2015 um 12:43 schrieb Dr. David Alan Gilbert: * Christian Borntraeger (borntrae...@de.ibm.com) wrote: Am 08.07.2015 um 12:14 schrieb Dr. David Alan Gilbert: * Christian Borntraeger (borntrae...@de.ibm.com) wrote: Am 07.07.2015 um 15:08 schrieb Juan Quintela: This includes a new

Re: [Qemu-devel] [PATCH 1/4] cutils: Add qemu_strtol() wrapper

2015-07-08 Thread Paolo Bonzini
On 08/07/2015 03:09, Carlos L. Torres wrote: From: Carlos L. Torres carlos.tor...@rackspace.com Add wrapper for strtol() function. Include unit tests. Signed-off-by: Carlos L. Torres carlos.tor...@rackspace.com Very thorough work, just a couple comments below. ---

Re: [Qemu-devel] [PATCH] raw-posix.c: remove raw device access for cdrom

2015-07-08 Thread Laurent Vivier
On 08/07/2015 13:01, Kevin Wolf wrote: Am 08.07.2015 um 12:47 hat Laurent Vivier geschrieben: On 08/07/2015 12:31, Kevin Wolf wrote: Am 02.07.2015 um 16:18 hat Laurent Vivier geschrieben: On 02/07/2015 16:03, Paolo Bonzini wrote: On 02/07/2015 15:58, Laurent Vivier wrote: Since any

[Qemu-devel] [PATCH v4] block/curl: Don't lose original error when a connection fails.

2015-07-08 Thread Richard W.M. Jones
Currently if qemu is connected to a curl source (eg. web server), and the web server fails / times out / dies, you always see a bogus EIO Input/output error. For example, choose a large file located on any local webserver which you control: $ qemu-img convert -p http://example.com/large.iso

[Qemu-devel] [PATCH v4] block/curl: Don't lose original error when a connection

2015-07-08 Thread Richard W.M. Jones
Since v3: Ditch the generalized anti-flood protection, and just use a simple variable. Rich.

Re: [Qemu-devel] [PULL 15/28] migration: create new section to store global state

2015-07-08 Thread Juan Quintela
Christian Borntraeger borntrae...@de.ibm.com wrote: Am 08.07.2015 um 14:25 schrieb Juan Quintela: Christian Borntraeger borntrae...@de.ibm.com wrote: Am 08.07.2015 um 14:08 schrieb Juan Quintela: Christian Borntraeger borntrae...@de.ibm.com wrote: Am 07.07.2015 um 15:08 schrieb Juan Quintela:

[Qemu-devel] [PATCH for-2.4] timer: rename NSEC_PER_SEC due to Mac OS X header clash

2015-07-08 Thread Stefan Hajnoczi
Commit e0cf11f31c24cfb17f44ed46c254d84c78e7f6e9 (timer: Use a single definition of NSEC_PER_SEC for the whole codebase) renamed NANOSECONDS_PER_SECOND to NSEC_PER_SEC. On Mac OS X there is a dispatch/time.h system header which also defines NSEC_PER_SEC. This causes compiler warnings. Let's use

Re: [Qemu-devel] [PATCH] raw-posix.c: remove raw device access for cdrom

2015-07-08 Thread Programmingkid
On Jul 8, 2015, at 7:01 AM, Kevin Wolf wrote: Am 08.07.2015 um 12:47 hat Laurent Vivier geschrieben: On 08/07/2015 12:31, Kevin Wolf wrote: Am 02.07.2015 um 16:18 hat Laurent Vivier geschrieben: On 02/07/2015 16:03, Paolo Bonzini wrote: On 02/07/2015 15:58, Laurent Vivier wrote:

Re: [Qemu-devel] [PATCH 0/4] cutils: Add qemu_strto*l() wrappers

2015-07-08 Thread Paolo Bonzini
On 08/07/2015 03:09, Carlos L. Torres wrote: From: Carlos L. Torres carlos.tor...@rackspace.com Introduce qemu_ wrappers for strtol/strtoul/strtoll/strtoull C functions, ensure that errno is checked, and if NULL is passed as the endptr argument, then whole string has to be a valid number

  1   2   3   4   >