Re: [Qemu-devel] vpc size reporting problem

2015-07-07 Thread Chun Yan Liu
>>> On 7/7/2015 at 02:36 PM, in message <559b7366.5030...@kamp.de>, Peter Lieven wrote: > Am 07.07.2015 um 08:34 schrieb Chun Yan Liu: > > > On 7/7/2015 at 02:19 PM, in message <559B6F79.237 : 102 : 21807>, Chun > Yan > Liu > > wrote: > >> > > On 7/7/2015 at 02:03 PM, i

Re: [Qemu-devel] [PATCH qemu v10 11/14] spapr_pci_vfio: Enable multiple groups per container

2015-07-07 Thread Thomas Huth
On Mon, 6 Jul 2015 12:11:07 +1000 Alexey Kardashevskiy wrote: > This enables multiple IOMMU groups in one VFIO container which means > that multiple devices from different groups can share the same IOMMU > table (or tables if DDW). > > This removes a group id from vfio_container_ioctl(). The ke

Re: [Qemu-devel] [PATCH qemu v10 13/14] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2015-07-07 Thread Thomas Huth
On Mon, 6 Jul 2015 12:11:09 +1000 Alexey Kardashevskiy wrote: > This makes use of the new "memory registering" feature. The idea is > to provide the userspace ability to notify the host kernel about pages > which are going to be used for DMA. Having this information, the host > kernel can pin th

Re: [Qemu-devel] [PATCH pic32 v2 5/5] Two new machine platforms: pic32mz7 and pic32mz.

2015-07-07 Thread Antony Pavlov
On Mon, 6 Jul 2015 11:58:54 -0700 Serge Vakulenko wrote: > On Mon, Jul 6, 2015 at 12:33 AM, Antony Pavlov > wrote: > > On Sun, 5 Jul 2015 21:18:11 -0700 > > Serge Vakulenko wrote: > > > >> On Wed, Jul 1, 2015 at 6:41 AM, Aurelien Jarno > >> wrote: > >> > On 2015-06-30 21:12, Serge Vakulenko

Re: [Qemu-devel] [PATCH 0/4] spapr: Small PAPR compliance fixes

2015-07-07 Thread David Gibson
On Fri, Jul 03, 2015 at 01:42:16PM +1000, Sam Bobroff wrote: > > This patch set contains several small fixes to make QEMU more PAPR > compliant. Applied to spapr-next, thanks. In future, please CC me on PAPR related patches - otherwise I'm likely to lose them in the flood of qemu-devel. -- Dav

Re: [Qemu-devel] [PATCH v2 05/10] block: add block job transactions

2015-07-07 Thread Fam Zheng
On Mon, 07/06 15:24, Stefan Hajnoczi wrote: > +/** > + * block_job_txn_add_job: > + * @txn: The transaction (may be NULL) > + * @job: Job to add to the transaction > + * > + * Add @job to the transaction. The @job must not already be in a > transaction. > + * The block job driver must call block_

Re: [Qemu-devel] [PATCH V3] block/nfs: add support for setting debug level

2015-07-07 Thread Fam Zheng
On Tue, 07/07 08:50, Peter Lieven wrote: > upcoming libnfs versions will support logging debug messages. Add > support for it in qemu through a per-drive option. > > Examples: > qemu -drive if=virtio,file=nfs://...,file.debug=2 > qemu-img create -o debug=2 nfs://... 10G > > Signed-off-by: Peter

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

2015-07-07 Thread Jason Wang
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 netdev side will disable the polling of fd. > > This fixes the case of "cont" af

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

2015-07-07 Thread Stefan Hajnoczi
On Mon, Jul 6, 2015 at 4:58 PM, Programmingkid wrote: > Quick question, In order to use a real cdrom in buffered mode (/dev/disk1s0), > QEMU would have to unmount the cdrom from the desktop. Is unmounting the > cdrom in the hdev_open() function ok? . I am making a version 3 of the cdrom > patch

Re: [Qemu-devel] [PATCH 06/10] qga: guest exec functionality for Windows guests

2015-07-07 Thread Denis V. Lunev
On 07/07/15 04:31, Michael Roth wrote: Quoting Denis V. Lunev (2015-06-30 05:25:19) From: Olga Krishtal Child process' stdin/stdout/stderr can be associated with handles for communication via read/write interfaces. The workflow should be something like this: * Open an anonymous pipe through g

Re: [Qemu-devel] [PATCH v3 14/16] acpi: Add a way for devices to add ACPI tables

2015-07-07 Thread Igor Mammedov
On Mon, 8 Jun 2015 20:12:09 -0500 miny...@acm.org wrote: > From: Corey Minyard > > Some devices, like IPMI, need to add ACPI table entries to report > their presence. Add a method for adding these entries. I think that it's not up to device to define in which table/scope it's entries should be

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

2015-07-07 Thread Michael S. Tsirkin
On Tue, Jul 07, 2015 at 08:53:59AM +0800, Fam Zheng wrote: > On Mon, 07/06 20:09, Michael S. Tsirkin wrote: > > On Mon, Jul 06, 2015 at 04:21:16PM +0100, Stefan Hajnoczi wrote: > > > On Mon, Jul 06, 2015 at 11:32:25AM +0800, Jason Wang wrote: > > > > > > > > > > > > On 07/02/2015 08:46 PM, Stefan

[Qemu-devel] Using QCOW2 with nand flashes.

2015-07-07 Thread sai pavan
Hi, I am trying to implement fake disk images for emulating nand flashes. I see the spares files are formed when the content is zeros. But for nand flashes the content is all one's initially. It is difficult for me make a sparse file with all ones. Do any one have suggestions for this problem. I

[Qemu-devel] Fwd: Using QCOW2 with nand flashes.

2015-07-07 Thread sai pavan
Hi, I am trying to implement fake disk images for emulating nand flashes. I see the spares files are formed when the content is zeros. But for nand flashes the content is all one's initially. It is difficult for me make a sparse file with all ones. Do any one have suggestions for this problem. I

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

2015-07-07 Thread Michael S. Tsirkin
On Tue, Jul 07, 2015 at 09:21:07AM +0800, 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 netdev side will disable the polling of fd. > > This fixes the

Re: [Qemu-devel] [PULL v3 00/13] KVM patches (SMM implementation) for 2015-07-06

2015-07-07 Thread Peter Maydell
On 6 July 2015 at 18:28, Paolo Bonzini wrote: > The following changes since commit 7edd8e4660beb301d527257f8e04ebec0f841cb0: > > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into > staging (2015-07-06 14:03:44 +0100) > > are available in the git repository at: > > > git://

Re: [Qemu-devel] [PATCH 01/10] util, qga: drop guest_file_toggle_flags

2015-07-07 Thread Denis V. Lunev
On 30/06/15 13:25, Denis V. Lunev wrote: From: Olga Krishtal guest_file_toggle_flags is a copy from semi-portable qemu_set_nonblock. The latter is not working properly for Windows due to reduced Windows Posix implementation. On Windows OS there is a separate API for changing flags of file, pip

Re: [Qemu-devel] [PATCH v2] net-hub: Drop can_receive

2015-07-07 Thread Stefan Hajnoczi
On Tue, Jul 07, 2015 at 02:30:30PM +0800, Fam Zheng wrote: > This moves the semantics from net_hub_port_can_receive to receive > functions, by returning 0 if all receiving ports return 0. Also, > remember to flush the source port's queue in that case. > > Signed-off-by: Fam Zheng > --- > net/hub

[Qemu-devel] [PATCH COLO-BLOCK v8 00/18] Block replication for continuous checkpoints

2015-07-07 Thread Wen Congyang
Block replication is a very important feature which is used for continuous checkpoints(for example: COLO). You can the detailed information about block replication from here: http://wiki.qemu.org/Features/BlockReplication Usage: Please refer to docs/block-replication.txt You can get the patch he

[Qemu-devel] [PATCH COLO-BLOCK v8 01/18] Add new block driver interface to add/delete a BDS's child

2015-07-07 Thread Wen Congyang
In some cases, we want to take a quorum child offline, and take another child online. Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 39 +++ include/block/block.h | 4 include/block/b

[Qemu-devel] [PATCH COLO-BLOCK v8 02/18] quorum: implement block driver interfaces add/delete a BDS's child

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Cc: Alberto Garcia --- block/quorum.c | 73 -- 1 file changed, 71 insertions(+), 2 deletions(-) diff --git a/block/quorum.c b/block/quorum.c index b0eead0..7

[Qemu-devel] [PATCH COLO-BLOCK v8 04/18] introduce a new API qemu_opts_absorb_qdict_by_index()

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- include/qemu/option.h | 2 ++ util/qemu-option.c| 44 2 files changed, 46 insertions(+) diff --git a/include/qemu/option.h b/include/qemu/option.h index 57e51c9

[Qemu-devel] [PATCH COLO-BLOCK v8 05/18] quorum: allow ignoring child errors

2015-07-07 Thread Wen Congyang
If the child is not ready, read/write/getlength/flush will return -errno. It is not critical error, and can be ignored: 1. read/write: Just not report the error event. 2. getlength: just ignore it. If all children's getlength return -errno, and be ignored, return -EIO. 3. flush: Just ig

[Qemu-devel] [PATCH COLO-BLOCK v8 10/18] allow writing to the backing file

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index f319921..879ca75 100644 --- a/block.c +++ b/block.c @@ -747,6 +747,15

[Qemu-devel] [PATCH COLO-BLOCK v8 13/18] docs: block replication's description

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: Yang Hongyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- docs/block-replication.txt | 182 + 1 file changed, 182 insertions(+) create mode 100644 docs/block-replication.txt diff --git a/docs/b

[Qemu-devel] [PATCH COLO-BLOCK v8 06/18] introduce a new API to enable/disable attach device model

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang --- block/block-backend.c | 24 include/sysemu/block-backend.h | 2 ++ 2 files changed, 26 insertions(+) diff --git a/block/block-backend.c b/block/block-backend.c index aee8a12..72d8b2c 100644 --- a/block/block-backend.c +++ b/block

[Qemu-devel] [PATCH COLO-BLOCK v8 14/18] Add new block driver interfaces to control block replication

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Cc: Luiz Capitulino Cc: Michael Roth Reviewed-by: Paolo Bonzini --- block.c | 40 include/block/block.h | 5 + include/block/block_int.h | 14 ++

[Qemu-devel] [PATCH COLO-BLOCK v8 07/18] introduce a new API to check if blk is attached

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang --- block.c| 4 ++-- block/block-backend.c | 9 + include/sysemu/block-backend.h | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/block.c b/block.c index 2cbc4f9..d560248 100644 --- a/block.c +++ b/block.c

Re: [Qemu-devel] Fwd: Using QCOW2 with nand flashes.

2015-07-07 Thread Peter Crosthwaite
On Mon, Jul 6, 2015 at 11:54 PM, sai pavan wrote: > > Hi, > > I am trying to implement fake disk images for emulating nand flashes. > I see the spares files are formed when the content is zeros. But for nand > flashes the content is all one's initially. It is difficult for me make a > sparse file

[Qemu-devel] [PATCH COLO-BLOCK v8 16/18] quorum: implement block driver interfaces for block replication

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Reviewed-by: Alberto Garcia --- block/quorum.c | 77 ++ 1 file changed, 77 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index 2a45d0e..58238f7

[Qemu-devel] qemu build fails on xen

2015-07-07 Thread Michael S. Tsirkin
The following error triggers on Fedora 22: In file included from /scm/qemu/include/hw/xen/xen_backend.h:4:0, from hw/block/xen_disk.c:39: /scm/qemu/include/hw/xen/xen_common.h:198:18: error: conflicting types for ‘ioservid_t’ typedef uint32_t ioservid_t; ^ In f

[Qemu-devel] [PATCH COLO-BLOCK v8 08/18] block: make bdrv_put_ref_bh_schedule() as a public API

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang --- block.c | 25 + blockdev.c| 37 ++--- include/block/block.h | 1 + 3 files changed, 32 insertions(+), 31 deletions(-) diff --git a/block.c b/block.c index d560248..f319921 100644 --

[Qemu-devel] [PATCH COLO-BLOCK v8 09/18] Backup: clear all bitmap when doing block checkpoint

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Cc: Jeff Cody --- block/backup.c | 13 + blockjob.c | 10 ++ include/block/blockjob.h | 12 3 files changed, 35 insertions(+) diff --git a/block/backup.c b/

[Qemu-devel] [PATCH COLO-BLOCK v8 03/18] hmp: add monitor command to add/remove a child

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- blockdev.c| 53 +++ hmp-commands.hx | 28 + include/sysemu/blockdev.h | 2 ++ 3 files changed, 83 insertions(+) dif

Re: [Qemu-devel] qemu build fails on xen

2015-07-07 Thread Michael S. Tsirkin
On Tue, Jul 07, 2015 at 11:45:29AM +0300, Michael S. Tsirkin wrote: > The following error triggers on Fedora 22: > > In file included from /scm/qemu/include/hw/xen/xen_backend.h:4:0, > from hw/block/xen_disk.c:39: > /scm/qemu/include/hw/xen/xen_common.h:198:18: error: conflicting

Re: [Qemu-devel] [PATCH 2/2] ahci: fix signature generation

2015-07-07 Thread Stefan Hajnoczi
On Mon, Jul 06, 2015 at 05:49:52PM -0400, John Snow wrote: > The initial register device-to-host FIS no longer needs to specially > set certain fields, as these can be handled generically by setting those > fields explicitly with the signatures we want at port reset time. > > (1) Signatures are de

[Qemu-devel] [PATCH COLO-BLOCK v8 12/18] block: Allow references for backing files

2015-07-07 Thread Wen Congyang
Usage: -drive file=xxx,id=Y, \ -drive file=,id=X,backing.backing_reference=Y It will create such backing chain: {virtio-blk dev 'Y'} {virtio-blk dev 'X'} | | | |

[Qemu-devel] [PATCH COLO-BLOCK v8 15/18] skip nbd_target when starting block replication

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 12 1 file changed, 12 insertions(+) diff --git a/block.c b/block.c index 5778064..0a6691e 100644 --- a/block.c +++ b/block.c @@ -4335,6 +4335,10 @@ void bdrv_start_replication(BlockDrive

[Qemu-devel] [PATCH COLO-BLOCK v8 17/18] Implement new driver for block replication

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block/Makefile.objs | 1 + block/replication.c | 443 2 files changed, 444 insertions(+) create mode 100644 block/replication.c diff --git a/block/Makefil

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

2015-07-07 Thread Stefan Hajnoczi
On Tue, Jul 07, 2015 at 09:21:07AM +0800, 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 netdev side will disable the polling of fd. > > This fixes the

[Qemu-devel] [PATCH COLO-BLOCK v8 18/18] Add a new API to start/stop replication, do checkpoint to all BDSes

2015-07-07 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 68 +++ include/block/block.h | 4 +++ 2 files changed, 72 insertions(+) diff --git a/block.c b/block.c index 0a6691e..43d175b 100644 ---

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

2015-07-07 Thread Jason Wang
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 06/30/2015 11:06 AM, Fam Zheng wrote: > virtio_net_receive

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

2015-07-07 Thread Cornelia Huck
From: Xu Wang The diag288 watchdog is no sysbus device, therefore it doesn't get triggered on resets automatically using dc->reset. Let's register the reset handler manually, so we get correctly notified again when a system reset was requested. Also reset the watchdog on subsystem resets that do

[Qemu-devel] [PATCH for-2.4] s390x: diag288 reset fix

2015-07-07 Thread Cornelia Huck
One more fix for s390x: The newly introduced diag288 watchdog driver is not on the sysbus but bus-less (as feedback suggested). Unfortunately, this also means we need to wire up any resets by hand. Xu Wang (1): watchdog/diag288: correctly register for system reset requests hw/s390x/s390-virtio

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

2015-07-07 Thread Jason Wang
On 07/07/2015 04:13 PM, Michael S. Tsirkin wrote: > On Tue, Jul 07, 2015 at 09:21:07AM +0800, 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 netdev

Re: [Qemu-devel] [PATCH] vl: move rom_load_all after machine init done

2015-07-07 Thread Eric Auger
Hi Paolo, Peter, On 06/22/2015 11:58 AM, Eric Auger wrote: > On 06/22/2015 11:53 AM, Paolo Bonzini wrote: >> >> >> On 22/06/2015 11:49, Eric Auger wrote: > It seems safe because rom_load_all really doesn't load anything, it only > does an overlap check. Is this right? >>> it does the check

[Qemu-devel] [PATCH 2.4] socket: pass correct size in net_socket_send()

2015-07-07 Thread Jason Wang
We should pass the size of packet instead of the remaining to qemu_send_packet_async(). Fixes: 6e99c631f116221d169ea53953d91b8aa74d297a ("net/socket: Drop net_socket_can_send") Signed-off-by: Jason Wang --- net/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: [Qemu-devel] [PATCH] vl: move rom_load_all after machine init done

2015-07-07 Thread Paolo Bonzini
On 07/07/2015 11:00, Eric Auger wrote: > Hi Paolo, Peter, > On 06/22/2015 11:58 AM, Eric Auger wrote: >> On 06/22/2015 11:53 AM, Paolo Bonzini wrote: >>> >>> >>> On 22/06/2015 11:49, Eric Auger wrote: >> It seems safe because rom_load_all really doesn't load anything, it only >> does an o

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

2015-07-07 Thread Fam Zheng
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 netdev side will disable the

Re: [Qemu-devel] [PATCH] vl: move rom_load_all after machine init done

2015-07-07 Thread Eric Auger
On 07/07/2015 11:02 AM, Paolo Bonzini wrote: > > > On 07/07/2015 11:00, Eric Auger wrote: >> Hi Paolo, Peter, >> On 06/22/2015 11:58 AM, Eric Auger wrote: >>> On 06/22/2015 11:53 AM, Paolo Bonzini wrote: On 22/06/2015 11:49, Eric Auger wrote: >>> It seems safe because rom_load_

[Qemu-devel] [PATCH COLO-BLOCK v8 11/18] Allow creating backup jobs when opening BDS

2015-07-07 Thread Wen Congyang
When opening BDS, we need to create backup jobs for image-fleecing. Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Cc: Jeff Cody Reviewed-by: Stefan Hajnoczi --- block/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/Mak

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

2015-07-07 Thread Fam Zheng
On Tue, 07/07 11:13, Michael S. Tsirkin wrote: > On Tue, Jul 07, 2015 at 09:21:07AM +0800, 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 netdev si

Re: [Qemu-devel] Fwd: Using QCOW2 with nand flashes.

2015-07-07 Thread sai pavan
On Tue, Jul 7, 2015 at 2:11 PM, Peter Crosthwaite wrote: > On Mon, Jul 6, 2015 at 11:54 PM, sai pavan wrote: >> >> Hi, >> >> I am trying to implement fake disk images for emulating nand flashes. >> I see the spares files are formed when the content is zeros. But for nand >> flashes the content is

Re: [Qemu-devel] [PATCH 2.4] socket: pass correct size in net_socket_send()

2015-07-07 Thread Fam Zheng
On Tue, 07/07 17:00, Jason Wang wrote: > We should pass the size of packet instead of the remaining to > qemu_send_packet_async(). > > Fixes: 6e99c631f116221d169ea53953d91b8aa74d297a >("net/socket: Drop net_socket_can_send") > > Signed-off-by: Jason Wang Thanks! Reviewed-by: Fam Zheng

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

2015-07-07 Thread Michael S. Tsirkin
On Tue, Jul 07, 2015 at 04:58:29PM +0800, Jason Wang wrote: > > > On 07/07/2015 04:13 PM, Michael S. Tsirkin wrote: > > On Tue, Jul 07, 2015 at 09:21:07AM +0800, Fam Zheng wrote: > >> Since commit 6e99c63 "net/socket: Drop net_socket_can_send" and friends, > >> net queues need to be explicitly fl

Re: [Qemu-devel] [PATCH 06/10] qga: guest exec functionality for Windows guests

2015-07-07 Thread Olga Krishtal
On 07/07/15 11:06, Denis V. Lunev wrote: On 07/07/15 04:31, Michael Roth wrote: Quoting Denis V. Lunev (2015-06-30 05:25:19) From: Olga Krishtal Child process' stdin/stdout/stderr can be associated with handles for communication via read/write interfaces. The workflow should be something lik

Re: [Qemu-devel] [PATCH COLO-BLOCK v7 00/17] Block replication for continuous checkpoints

2015-07-07 Thread Dr. David Alan Gilbert
* Wen Congyang (we...@cn.fujitsu.com) wrote: > On 07/07/2015 08:25 AM, Michael R. Hines wrote: > > On 07/04/2015 07:46 AM, Wen Congyang wrote: > >> At 2015/7/3 23:30, Dr. David Alan Gilbert Wrote: > >>> * Wen Congyang (we...@cn.fujitsu.com) wrote: > Block replication is a very important featur

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

2015-07-07 Thread Michael S. Tsirkin
On Tue, Jul 07, 2015 at 05:09:09PM +0800, Fam Zheng wrote: > On Tue, 07/07 11:13, Michael S. Tsirkin wrote: > > On Tue, Jul 07, 2015 at 09:21:07AM +0800, Fam Zheng wrote: > > > Since commit 6e99c63 "net/socket: Drop net_socket_can_send" and friends, > > > net queues need to be explicitly flushed af

Re: [Qemu-devel] [PATCH] vl: move rom_load_all after machine init done

2015-07-07 Thread Paolo Bonzini
On 07/07/2015 11:07, Eric Auger wrote: > On 07/07/2015 11:02 AM, Paolo Bonzini wrote: >> >> >> On 07/07/2015 11:00, Eric Auger wrote: >>> Hi Paolo, Peter, >>> On 06/22/2015 11:58 AM, Eric Auger wrote: On 06/22/2015 11:53 AM, Paolo Bonzini wrote: > > > On 22/06/2015 11:49, Eric Au

Re: [Qemu-devel] [PATCH COLO-BLOCK v7 00/17] Block replication for continuous checkpoints

2015-07-07 Thread Paolo Bonzini
On 07/07/2015 11:13, Dr. David Alan Gilbert wrote: >> > This log is very stange. The NBD client connects to NBD server, and NBD >> > server wants to read data >> > from NBD client, but reading fails. It seems that the connection is closed >> > unexpectedly. Can you >> > give me more log and how

Re: [Qemu-devel] qemu build fails on xen

2015-07-07 Thread Paul Durrant
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: 07 July 2015 09:48 > To: Stefano Stabellini > Cc: Chen, Tiejun; pbonz...@redhat.com; r...@twiddle.net; > ehabk...@redhat.com; qemu-devel@nongnu.org; Paul Durrant; Peter > Maydell > Subject: Re: qemu build fails

Re: [Qemu-devel] [PATCH qemu v10 10/14] spapr_pci: Enable vfio-pci hotplug

2015-07-07 Thread Alexey Kardashevskiy
On 07/07/2015 07:31 AM, Thomas Huth wrote: On Mon, 6 Jul 2015 12:11:06 +1000 Alexey Kardashevskiy wrote: sPAPR IOMMU is managing two copies of an TCE table: 1) a guest view of the table - this is what emulated devices use and this is where H_GET_TCE reads from; 2) a hardware TCE table - only

Re: [Qemu-devel] [PATCH] block: update bdrv_drain_all()/bdrv_drain() comments

2015-07-07 Thread Stefan Hajnoczi
On Thu, Jul 02, 2015 at 05:24:41PM +0100, Stefan Hajnoczi wrote: > The doc comments for bdrv_drain_all() and bdrv_drain() are outdated: > > * The bdrv_drain() comment is a poor man's bdrv_lock()/bdrv_unlock() >which Fam Zheng is currently developing. Unfortunately this warning >was never

Re: [Qemu-devel] [PATCH qemu v10 14/14] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2015-07-07 Thread Thomas Huth
On Mon, 6 Jul 2015 12:11:10 +1000 Alexey Kardashevskiy wrote: > This adds support for Dynamic DMA Windows (DDW) option defined by > the SPAPR specification which allows to have additional DMA window(s) > > This implements DDW for emulated and VFIO devices. As all TCE root regions > are mapped a

Re: [Qemu-devel] [PATCH v2] net-hub: Drop can_receive

2015-07-07 Thread Fam Zheng
On Tue, 07/07 09:37, Stefan Hajnoczi wrote: > On Tue, Jul 07, 2015 at 02:30:30PM +0800, Fam Zheng wrote: > > This moves the semantics from net_hub_port_can_receive to receive > > functions, by returning 0 if all receiving ports return 0. Also, > > remember to flush the source port's queue in that c

Re: [Qemu-devel] [PATCH qemu v10 14/14] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2015-07-07 Thread Alexey Kardashevskiy
On 07/06/2015 09:06 PM, David Gibson wrote: On Mon, Jul 06, 2015 at 12:11:10PM +1000, Alexey Kardashevskiy wrote: This adds support for Dynamic DMA Windows (DDW) option defined by the SPAPR specification which allows to have additional DMA window(s) This implements DDW for emulated and VFIO dev

Re: [Qemu-devel] [RFC PATCH V6 01/18] cpu: make cpu_thread_is_idle public.

2015-07-07 Thread Alex Bennée
fred.kon...@greensocs.com writes: > From: KONRAD Frederic Why are we making this visible? Looking at the tree I can't see it being used outside the cpus.c. I see the function is modified later for async work. Is this something we are planing to use later? > > Signed-off-by: KONRAD Frederic >

Re: [Qemu-devel] [PATCH v3 15/16] ipmi: Add ACPI table entries

2015-07-07 Thread Igor Mammedov
On Mon, 8 Jun 2015 20:12:10 -0500 miny...@acm.org wrote: > From: Corey Minyard > > Use the new ACPI table construction tools to create an ACPI > entry for IPMI. Above doesn't tell what is purpose of patch. It would be nice for commit message to describe what the patch actually does with refere

Re: [Qemu-devel] [PATCH 06/10] qga: guest exec functionality for Windows guests

2015-07-07 Thread Denis V. Lunev
On 07/07/15 12:12, Olga Krishtal wrote: On 07/07/15 11:06, Denis V. Lunev wrote: On 07/07/15 04:31, Michael Roth wrote: Quoting Denis V. Lunev (2015-06-30 05:25:19) From: Olga Krishtal Child process' stdin/stdout/stderr can be associated with handles for communication via read/write interfac

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

2015-07-07 Thread Fam Zheng
On Tue, 07/07 12:10, Michael S. Tsirkin wrote: > On Tue, Jul 07, 2015 at 04:58:29PM +0800, Jason Wang wrote: > > > > > > On 07/07/2015 04:13 PM, Michael S. Tsirkin wrote: > > > On Tue, Jul 07, 2015 at 09:21:07AM +0800, Fam Zheng wrote: > > >> Since commit 6e99c63 "net/socket: Drop net_socket_can_

Re: [Qemu-devel] [PATCH v4 00/10] Consolidate crypto APIs & implementations

2015-07-07 Thread Paolo Bonzini
On 01/07/2015 19:10, Daniel P. Berrange wrote: > This small series covers the crypto consolidation patches > I previously posted: > > RFC: https://lists.nongnu.org/archive/html/qemu-devel/2015-04/msg02038.html > v1: https://lists.nongnu.org/archive/html/qemu-devel/2015-05/msg04267.html > v2: h

Re: [Qemu-devel] [PATCH qemu v10 13/14] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2015-07-07 Thread Alexey Kardashevskiy
On 07/07/2015 05:23 PM, Thomas Huth wrote: On Mon, 6 Jul 2015 12:11:09 +1000 Alexey Kardashevskiy wrote: This makes use of the new "memory registering" feature. The idea is to provide the userspace ability to notify the host kernel about pages which are going to be used for DMA. Having this i

Re: [Qemu-devel] [Bug 1472083] [NEW] Qemu 2.1.2 hang when stop command

2015-07-07 Thread Stefan Hajnoczi
On Tue, Jul 07, 2015 at 05:36:38AM -, changlimin wrote: > Qemu 2.1.2, Linux kernel 3.13.6, this is the stack. If you are running a distro packaged QEMU, please report this to the distro. If you have built QEMU from source, please try the latest stable release (QEMU 2.3). > #0 in ppoll () fr

[Qemu-devel] [PATCH] acpi: split out ICH ACPI support

2015-07-07 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 --- default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/acpi/Makefile.objs | 3 ++- 3 files changed, 4 insertion

Re: [Qemu-devel] [PATCH 06/10] qga: guest exec functionality for Windows guests

2015-07-07 Thread Olga Krishtal
On 07/07/15 12:12, Olga Krishtal wrote: On 07/07/15 11:06, Denis V. Lunev wrote: On 07/07/15 04:31, Michael Roth wrote: Quoting Denis V. Lunev (2015-06-30 05:25:19) From: Olga Krishtal Child process' stdin/stdout/stderr can be associated with handles for communication via read/write interfac

Re: [Qemu-devel] [PATCH v5 08/11] target-i386: exception handling for seg_helper functions

2015-07-07 Thread Pavel Dovgaluk
> From: Richard Henderson [mailto:rth7...@gmail.com] On Behalf Of Richard > Henderson > On 07/06/2015 09:26 AM, Pavel Dovgalyuk wrote: > > This patch fixes exception handling for seg_helper functions. > > > > Signed-off-by: Pavel Dovgalyuk > > > No, you don't want to discriminately change every

Re: [Qemu-devel] [RFC PATCH V6 02/18] replace spinlock by QemuMutex.

2015-07-07 Thread Alex Bennée
fred.kon...@greensocs.com writes: > From: KONRAD Frederic > > spinlock is only used in two cases: > * cpu-exec.c: to protect TranslationBlock > * mem_helper.c: for lock helper in target-i386 (which seems broken). > > It's a pthread_mutex_t in user-mode so better using QemuMutex directly in t

Re: [Qemu-devel] [virtio guest] vring_need_event() from virtqueue_kick_prepare()

2015-07-07 Thread Stefan Hajnoczi
On Mon, Jul 06, 2015 at 06:13:29PM +0300, Catalin Vasile wrote: > What is the logic behind vring_need_event() when used with > virtqueue_kick_prepare()? > What does the keyword >>just<< refer to from the following context: > /* The following is used with USED_EVENT_IDX and AVAIL_EVENT_IDX */ > /* A

Re: [Qemu-devel] [PATCH 12/12] i386/kvm: Hyper-v crash msrs set/get'ers and migration

2015-07-07 Thread Paolo Bonzini
On 03/07/2015 14:01, Denis V. Lunev wrote: > diff --git a/linux-headers/asm-x86/hyperv.h b/linux-headers/asm-x86/hyperv.h > index ce6068d..5f88dc7 100644 > --- a/linux-headers/asm-x86/hyperv.h > +++ b/linux-headers/asm-x86/hyperv.h > @@ -108,6 +108,8 @@ > #define HV_X64_HYPERCALL_PARAMS_XMM_AVAI

Re: [Qemu-devel] [PULL 00/11] VFIO updates for 2.4-rc0

2015-07-07 Thread Peter Maydell
On 6 July 2015 at 19:34, Alex Williamson wrote: > The following changes since commit 7edd8e4660beb301d527257f8e04ebec0f841cb0: > > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into > staging (2015-07-06 14:03:44 +0100) > > are available in the git repository at: > > > git:

Re: [Qemu-devel] [PATCH v4 0/9] GIC-500 implementation, software + KVM

2015-07-07 Thread Eric Auger
Hi Pavel, On 07/02/2015 04:13 PM, Pavel Fedin wrote: > This is a complete GICv3 implementation, both software emulation and KVM > acceleration are supported. do you plan to resend a version without TCG code, just using shared base class? Eric > > This series is a consolidated and updated patch se

Re: [Qemu-devel] [PATCH v6 0/12] HyperV equivalent of pvpanic driver

2015-07-07 Thread Paolo Bonzini
On 03/07/2015 14:01, Denis V. Lunev wrote: > Windows 2012 guests can notify hypervisor about occurred guest crash > (Windows bugcheck(BSOD)) by writing specific Hyper-V msrs. This patch does > handling of this MSR's by KVM and sending notification to user space that > allows to gather Windows gue

Re: [Qemu-devel] [PATCH qemu v10 13/14] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2015-07-07 Thread Thomas Huth
On Tue, 7 Jul 2015 20:05:25 +1000 Alexey Kardashevskiy wrote: > On 07/07/2015 05:23 PM, Thomas Huth wrote: > > On Mon, 6 Jul 2015 12:11:09 +1000 > > Alexey Kardashevskiy wrote: ... > >> diff --git a/hw/vfio/common.c b/hw/vfio/common.c > >> index 8eacfd7..0c7ba8c 100644 > >> --- a/hw/vfio/common

Re: [Qemu-devel] [PATCH 12/12] i386/kvm: Hyper-v crash msrs set/get'ers and migration

2015-07-07 Thread Paolo Bonzini
On 03/07/2015 14:01, Denis V. Lunev wrote: > @@ -904,6 +905,7 @@ typedef struct CPUX86State { > uint64_t msr_hv_guest_os_id; > uint64_t msr_hv_vapic; > uint64_t msr_hv_tsc; > +uint64_t msr_hv_crash_prm[HV_X64_MSR_CRASH_PARAMS]; Do not abbreviate variable names! The enum even

Re: [Qemu-devel] [RFC PATCH V6 02/18] replace spinlock by QemuMutex.

2015-07-07 Thread Paolo Bonzini
On 07/07/2015 12:15, Alex Bennée wrote: > Why are the locking rules different for CONFIG_USER versus system > emulation? Looking at the final tree: > >> > tb = tb_find_fast(env); > this eventually ends up doing a tb_lock on the find_slow path which IIRC > is when might end up do

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

2015-07-07 Thread Christian Borntraeger
Am 07.07.2015 um 10:53 schrieb Cornelia Huck: > From: Xu Wang > > The diag288 watchdog is no sysbus device, therefore it doesn't get > triggered on resets automatically using dc->reset. > > Let's register the reset handler manually, so we get correctly notified > again when a system reset was re

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

2015-07-07 Thread Peter Maydell
On 7 July 2015 at 05:40, Michael Roth wrote: > Hi Peter, > > Sorry for the last minute pull. This is a round-up of all tested/reviewed > qemu-ga patches posted prior to soft-freeze, along with 1 bug fix that > came in last week. > > This adds win32 implementations of: > guest-get-fsinfo > gues

Re: [Qemu-devel] [Qemu-block] [PATCH] blockjob: Don't sleep too short

2015-07-07 Thread Stefan Hajnoczi
On Mon, Jul 06, 2015 at 11:28:11AM +0800, Fam Zheng wrote: > diff --git a/include/block/blockjob.h b/include/block/blockjob.h > index 57d8ef1..3deb731 100644 > --- a/include/block/blockjob.h > +++ b/include/block/blockjob.h > @@ -146,11 +146,13 @@ void *block_job_create(const BlockJobDriver *driver

Re: [Qemu-devel] [Qemu-block] [PATCH] block: Initialize local_err in bdrv_append_temp_snapshot

2015-07-07 Thread Stefan Hajnoczi
On Mon, Jul 06, 2015 at 12:24:44PM +0800, Fam Zheng wrote: > Cc: qemu-sta...@nongnu.org > Signed-off-by: Fam Zheng > --- > block.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan pgpVhoeCiNN6u.pgp

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

2015-07-07 Thread Paolo Bonzini
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, but Intel also uses AMD's ABM flag to indicate support for both POPCNT and LZCNT. It has to be added to Haswell

Re: [Qemu-devel] [PATCH qemu v10 14/14] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2015-07-07 Thread Alexey Kardashevskiy
On 07/07/2015 07:33 PM, Thomas Huth wrote: On Mon, 6 Jul 2015 12:11:10 +1000 Alexey Kardashevskiy wrote: This adds support for Dynamic DMA Windows (DDW) option defined by the SPAPR specification which allows to have additional DMA window(s) This implements DDW for emulated and VFIO devices.

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

2015-07-07 Thread Peter Crosthwaite
On Tue, Jul 7, 2015 at 1:53 AM, Cornelia Huck wrote: > From: Xu Wang > > The diag288 watchdog is no sysbus device, therefore it doesn't get > triggered on resets automatically using dc->reset. > > Let's register the reset handler manually, so we get correctly notified > again when a system reset

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

2015-07-07 Thread Jason Wang
Rx should be recovered after cont. Signed-off-by: Jason Wang --- tests/virtio-net-test.c | 48 1 file changed, 48 insertions(+) diff --git a/tests/virtio-net-test.c b/tests/virtio-net-test.c index 97aa442..aeae80c 100644 --- a/tests/virtio-net-te

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

2015-07-07 Thread Jason Wang
Signed-off-by: Jason Wang --- tests/Makefile | 2 +- tests/virtio-net-test.c | 184 ++-- 2 files changed, 178 insertions(+), 8 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index eff5e11..56179e5 100644 --- a/tests/Makefile +++ b

Re: [Qemu-devel] [PATCH qemu v10 13/14] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2015-07-07 Thread Alexey Kardashevskiy
On 07/07/2015 08:21 PM, Thomas Huth wrote: On Tue, 7 Jul 2015 20:05:25 +1000 Alexey Kardashevskiy wrote: On 07/07/2015 05:23 PM, Thomas Huth wrote: On Mon, 6 Jul 2015 12:11:09 +1000 Alexey Kardashevskiy wrote: ... diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 8eacfd7..0c7ba8c 100

Re: [Qemu-devel] [PATCH v4 00/10] Consolidate crypto APIs & implementations

2015-07-07 Thread Gonglei
On 2015/7/7 18:03, Paolo Bonzini wrote: > > > On 01/07/2015 19:10, Daniel P. Berrange wrote: >> This small series covers the crypto consolidation patches >> I previously posted: >> >> RFC: https://lists.nongnu.org/archive/html/qemu-devel/2015-04/msg02038.html >> v1: https://lists.nongnu.org/arch

Re: [Qemu-devel] [BUG/RFC] Two cpus are not brought up normally in SLES11 sp3 VM after reboot

2015-07-07 Thread Igor Mammedov
On Mon, 6 Jul 2015 17:59:10 +0800 zhanghailiang wrote: > On 2015/7/6 16:45, Paolo Bonzini wrote: > > > > > > On 06/07/2015 09:54, zhanghailiang wrote: > >> > >> From host, we found that QEMU vcpu1 thread and vcpu7 thread were not > >> consuming any cpu (Should be in idle state), > >> All of VCPU

Re: [Qemu-devel] [PULL v3 for-2.4 08/11] virtio-ccw: migrate ->revision

2015-07-07 Thread Christian Borntraeger
Am 02.07.2015 um 16:10 schrieb Cornelia Huck: > We need to migrate the revision field as well. No compatibility > concerns as we already introduced migration of ->config_vector in > this release. > > Signed-off-by: Cornelia Huck > --- > hw/s390x/virtio-ccw.c | 2 ++ > 1 file changed, 2 insertion

Re: [Qemu-devel] [PATCH qemu v10 14/14] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2015-07-07 Thread Thomas Huth
On Tue, 7 Jul 2015 20:43:44 +1000 Alexey Kardashevskiy wrote: > On 07/07/2015 07:33 PM, Thomas Huth wrote: > > On Mon, 6 Jul 2015 12:11:10 +1000 > > Alexey Kardashevskiy wrote: ... > >> +static void rtas_ibm_create_pe_dma_window(PowerPCCPU *cpu, > >> + s

Re: [Qemu-devel] [virtio guest] vring_need_event() from virtqueue_kick_prepare()

2015-07-07 Thread Catalin Vasile
My vhost module respects the format vhost-net uses: /* summary */ mutex_lock(&vq->mutex); vhost_disable_notify(); for (;;) { head = vhost_get_vq_desc(); if (head == vq->num) { if (unlikely(vhost_enable_notify())) { vhost_disable_notify();

  1   2   3   4   5   >