Re: [libvirt] [PATCH v3 0/9] Selective block device migration implementation

2015-06-02 Thread Kashyap Chamarthy
On Mon, Jun 01, 2015 at 04:41:34PM -0400, John Ferlan wrote: On 06/01/2015 04:01 PM, Kashyap Chamarthy wrote: [. . .] $ git log --oneline | head -9 a98cb8d virsh: selective block device migration f57141e qemu: migration: selective block device migration 2757805 util: add

[libvirt] [PATCH v4 1/6] tests: Add a bunch of new tests to virsh-optparse

2015-06-02 Thread Andrea Bolognani
The new tests deal with numeric options of three kinds: regular, scaled and timeouts. For each, both valid and invalid inputs are provided, hopefully covering all cases: this should allow us to avoid regressions when changing the relevant code in virsh. --- tests/virsh-optparse | 179

[libvirt] [PATCH] qemu: monitor: Add memory balloon support for virtio-ccw

2015-06-02 Thread Boris Fiuczynski
The search for the memory ballon driver object is extended by a second known name virtio-ballon-ccw in support for virtio-ccw. Signed-off-by: Boris Fiuczynski fiu...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger borntrae...@de.ibm.com --- src/qemu/qemu_monitor.c | 9 + 1 file

[libvirt] [PATCH] nwfilter: Fix sscanf off-by-one error in virNWFilterSnoopLeaseFileLoad

2015-06-02 Thread Erik Skultety
We allocate 16 bytes for IPv4 address and 55 bytes for interface key, therefore we should read up to 15/54 bytes and let the last byte reserved for terminating null byte in sscanf. https://bugzilla.redhat.com/show_bug.cgi?id=1226400 --- src/nwfilter/nwfilter_dhcpsnoop.c | 4 ++-- 1 file changed,

[libvirt] [PATCH v4 6/6] virsh: Move error messages inside vshCommandOpt*() functions

2015-06-02 Thread Andrea Bolognani
--- tests/vcpupin| 4 +- tests/virsh-optparse | 26 - tools/virsh-domain-monitor.c | 9 +-- tools/virsh-domain.c | 134 +++ tools/virsh-host.c | 61 +++- tools/virsh-interface.c |

[libvirt] [PATCH v4 0/6] virsh: Further improve handling of integer options

2015-06-02 Thread Andrea Bolognani
As suggested by Michal: now that we have a generic error message for failures related to the parsing of integer options, it makes sense to perform the corresponding check in a single spot instead of replicating it every time vshCommandOpt*() is used. Andrea Bolognani (6): tests: Add a bunch of

[libvirt] [PATCH v4 2/6] virsh: Use standard error messages in vshCommandOptTimeoutToMs()

2015-06-02 Thread Andrea Bolognani
I missed this in the first time around, thanks Michal for noticing. --- tests/virsh-optparse | 12 ++-- tools/virsh.c| 8 ++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/virsh-optparse b/tests/virsh-optparse index 37a8d42..952fcc4 100755 ---

[libvirt] [PATCH v4 3/6] virsh: Improve vshCommandOptTimeoutToMs()

2015-06-02 Thread Andrea Bolognani
Use vshCommandOptUInt() instead of parsing the value as a signed integer and checking whether it's positive afterwards. Improve comments as well. --- tools/virsh.c | 45 +++-- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/tools/virsh.c

[libvirt] [PATCH v4 4/6] virsh: Make vshCommandOptScaledInt() use vshCommandOpt()

2015-06-02 Thread Andrea Bolognani
This aligns it to the other vshCommandOpt*() functions. --- tools/virsh.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index 55caa87..cd2bfef 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -1804,16 +1804,16 @@

[libvirt] [PATCH v4 5/6] virsh: Pass vshControl to all vshCommandOpt*() calls

2015-06-02 Thread Andrea Bolognani
This will allow us to use vshError() to report errors from inside vshCommandOpt*(), instead of replicating the same logic and error messages all over the place. We also have more context inside the vshCommandOpt*() functions, for example the actual value used on the command line, which means we

Re: [libvirt] [PATCH v3 0/5] virsh: Further improve handling of integer options

2015-06-02 Thread Andrea Bolognani
On Sun, 2015-05-31 at 15:19 -0400, John Ferlan wrote: First of all, thanks for the review :) Patch 2 had some comments which should be simple to fix I've commented in detail in your other mail, should have taken care of them all. Patch 4 had a couple of NIT's about going beyond 80 columns on

Re: [libvirt] [PATCH] qemu: fix unsuitable error report when get memory stats

2015-06-02 Thread Wang Yufei
On 2015/6/1 15:36, Peter Krempa wrote: On Sat, May 30, 2015 at 09:35:35 +0800, Wang Yufei wrote: On 2015/5/29 19:16, Peter Krempa wrote: On Fri, May 29, 2015 at 17:17:07 +0800, Wang Yufei wrote: From: Zhang Bo oscar.zhan...@huawei.com when we run the command 'virsh dommemstat xxx',

Re: [libvirt] [PATCH v3 2/5] virsh: Improve vshCommandOptTimeoutToMs().

2015-06-02 Thread Andrea Bolognani
On Sun, 2015-05-31 at 15:09 -0400, John Ferlan wrote: int vshCommandOptTimeoutToMs(vshControl *ctl, const vshCmd *cmd, int *timeout) { -int rv = vshCommandOptInt(cmd, timeout, timeout); +int ret; +unsigned int utimeout; -if (rv 0 || (rv 0 *timeout 1)) {

Re: [libvirt] [PATCH] nwfilter: Fix sscanf off-by-one error in virNWFilterSnoopLeaseFileLoad

2015-06-02 Thread Martin Kletzander
On Tue, Jun 02, 2015 at 10:18:34AM +0200, Erik Skultety wrote: We allocate 16 bytes for IPv4 address and 55 bytes for interface key, therefore we should read up to 15/54 bytes and let the last byte reserved for terminating null byte in sscanf. https://bugzilla.redhat.com/show_bug.cgi?id=1226400

Re: [libvirt] [PATCH] qemu: fix wrong call addressrelease function when attach RNG device success

2015-06-02 Thread John Ferlan
On 05/31/2015 07:29 AM, Luyao Huang wrote: Add a return value check to avoid the wrong address release. Signed-off-by: Luyao Huang lhu...@redhat.com --- src/qemu/qemu_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ACK - although I'll make an adjustment to the commit

Re: [libvirt] [PATCH] qemu: fix forget pass the return value to variable @ret

2015-06-02 Thread John Ferlan
On 05/31/2015 09:27 AM, Luyao Huang wrote: If we do not pass the return value from qemuDomainRemoveRNGDevice() function to variable @ret, qemuDomainRemoveDevice() functiuon will always fail when recive rng device unplug event from qemu monitor. Signed-off-by: Luyao Huang lhu...@redhat.com

Re: [libvirt] [PATCH] conf:audit: fix no audit log when start a vm with iothread

2015-06-02 Thread John Ferlan
On 05/31/2015 10:07 AM, Luyao Huang wrote: Signed-off-by: Luyao Huang lhu...@redhat.com --- src/conf/domain_audit.c | 2 ++ 1 file changed, 2 insertions(+) ACK - Will adjust commit message slightly before pushing... John -- libvir-list mailing list libvir-list@redhat.com

[libvirt] [PATCH] storage: add RBD support to disk source pool translation

2015-06-02 Thread Thibault VINCENT
Hello, We needed this to avoid redundancies when defining domains with RBD backends, because monitor list and authentication secret could not be pulled from the storage pool. I didn't find any bit of documentation to update, actually it already implies that disks with source type 'volume' would

[libvirt] Repository with Parallels SDK sources moved

2015-06-02 Thread Sergey Bronnikov
Hello, repository with Parallels SDK has been moved from https://github.com/CloudServer/parallels-sdk to https://src.openvz.org/projects/OVZ/repos/libprlsdk/browse. Please update GIT settings. -- OpenVZ survey http://goo.gl/forms/orYmy0SjFB -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH] qemu: fix wrong call addressrelease function when attach RNG device success

2015-06-02 Thread lhuang
On 06/03/2015 02:04 AM, John Ferlan wrote: On 05/31/2015 07:29 AM, Luyao Huang wrote: Add a return value check to avoid the wrong address release. Signed-off-by: Luyao Huang lhu...@redhat.com --- src/qemu/qemu_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ACK -

[libvirt] [PATCHv3] qemu: fix unsuitable error report when get memory stats

2015-06-02 Thread Wang Yufei
From: Zhang Bo oscar.zhan...@huawei.com when we run the command 'virsh dommemstat xxx', althrough memballoon's model is set 'none' in vm's XML, it still reports an error in libvirtd.log. error : qemuMonitorFindBalloonObjectPath:1042 : internal error: Cannot determine balloon device path

Re: [libvirt] [PATCH] conf:audit: fix no audit log when start a vm with iothread

2015-06-02 Thread lhuang
On 06/03/2015 02:06 AM, John Ferlan wrote: On 05/31/2015 10:07 AM, Luyao Huang wrote: Signed-off-by: Luyao Huang lhu...@redhat.com --- src/conf/domain_audit.c | 2 ++ 1 file changed, 2 insertions(+) ACK - Will adjust commit message slightly before pushing... Thanks again for your

Re: [libvirt] [PATCH] qemu: fix forget pass the return value to variable @ret

2015-06-02 Thread lhuang
On 06/03/2015 02:05 AM, John Ferlan wrote: On 05/31/2015 09:27 AM, Luyao Huang wrote: If we do not pass the return value from qemuDomainRemoveRNGDevice() function to variable @ret, qemuDomainRemoveDevice() functiuon will always fail when recive rng device unplug event from qemu monitor.

Re: [libvirt] [RFC] libvirt support multi-thread compression for live migration

2015-06-02 Thread Qiao,Liyong
On 2015年06月03日 01:02, Eric Blake wrote: On 06/02/2015 07:56 AM, Qiao, Liyong wrote: Hi Eric Thanks for replying the mail, replied in lines. +virdomainMigrateGetParameters(virDomainPtr domain, + int *level, + int *threads, +

[libvirt] [PATCH] storage: add RBD support to disk source pool translation

2015-06-02 Thread Thibault VINCENT
Domains can now reference disks of type 'volume' with an underlying RBD pool. It won't allow mapping snapshots, pools don't list them yet, only COW clones. - virStorageTranslateDiskSourcePool: add case to copy RBD attributes - virStorageAddRBDPoolSourceHost: new helper to copy monitor hosts ---

Re: [libvirt] [PATCH] nwfilter: Fix sscanf off-by-one error in virNWFilterSnoopLeaseFileLoad

2015-06-02 Thread Erik Skultety
On 06/02/2015 11:35 AM, Martin Kletzander wrote: On Tue, Jun 02, 2015 at 10:18:34AM +0200, Erik Skultety wrote: We allocate 16 bytes for IPv4 address and 55 bytes for interface key, therefore we should read up to 15/54 bytes and let the last byte reserved for terminating null byte in sscanf.

Re: [libvirt] [PATCH] nwfilter: Fix sscanf off-by-one error in virNWFilterSnoopLeaseFileLoad

2015-06-02 Thread Martin Kletzander
On Tue, Jun 02, 2015 at 12:21:32PM +0200, Erik Skultety wrote: On 06/02/2015 11:35 AM, Martin Kletzander wrote: On Tue, Jun 02, 2015 at 10:18:34AM +0200, Erik Skultety wrote: We allocate 16 bytes for IPv4 address and 55 bytes for interface key, therefore we should read up to 15/54 bytes and

Re: [libvirt] [RFC] libvirt support multi-thread compression for live migration

2015-06-02 Thread Eric Blake
[correcting list address: libvirt-list, not libver-list] On 06/02/2015 05:58 AM, Feng, Shaohe wrote: Hi folks: I'd like to request some comments on enabling multi-thread compression in libvirt. Currently, qemu upstream has supported multi-thread compression for live migration. $ git log

Re: [libvirt] [PATCH 07/35] qemu: Refactor qemuDomainHelperGetVcpus by reusing virBitmapToDataBuf

2015-06-02 Thread Ján Tomko
On Fri, May 29, 2015 at 03:33:28PM +0200, Peter Krempa wrote: Get rid of the unnecessary allocation and copying of the bitmap and clean up some unnecesary temporary variables. --- src/qemu/qemu_driver.c | 20 +++- 1 file changed, 3 insertions(+), 17 deletions(-) ACK Jan

Re: [libvirt] [PATCH 08/35] libxl: Reuse virBitmapToData in libxlDomainSetVcpuAffinities

2015-06-02 Thread Ján Tomko
On Fri, May 29, 2015 at 03:33:29PM +0200, Peter Krempa wrote: --- src/libxl/libxl_domain.c | 21 - 1 file changed, 4 insertions(+), 17 deletions(-) ACK diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c index c7f0ed9..89782c3 100644 ---

Re: [libvirt] [PATCH 2/2] Simplify virNodeCountThreadSiblings

2015-06-02 Thread Erik Skultety
On 06/02/2015 02:53 PM, Ján Tomko wrote: Use a for cycle instead of while. s/cycle/loop Do not opencode c_isxdigit and virHexToBin. --- src/nodeinfo.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/nodeinfo.c b/src/nodeinfo.c index

Re: [libvirt] [RFC] libvirt support multi-thread compression for live migration

2015-06-02 Thread Qiao, Liyong
Hi Eric Thanks for replying the mail, replied in lines. BR, Eli(Li Yong)Qiao -Original Message- From: Eric Blake [mailto:ebl...@redhat.com] Sent: Tuesday, June 02, 2015 8:21 PM To: Feng, Shaohe; libvir-list@redhat.com Cc: Qiao, Liyong; Bhandaru, Malini K; Ding, Jian-feng; Chylinski,

Re: [libvirt] [PATCH 14/35] qemu: process: Refactor setup of memory ballooning

2015-06-02 Thread Ján Tomko
On Fri, May 29, 2015 at 03:33:35PM +0200, Peter Krempa wrote: Since the monitor code now supports ullongs when setting balloon size, drop the legacy code with overflow checking. Additionally the comment mentioning that the job is treated as a sync job does not make sense any more since the

[libvirt] [PATCH v2 04/22] qemu: Use domain condition for synchronous block jobs

2015-06-02 Thread Jiri Denemark
By switching block jobs to use domain conditions, we can drop some pretty complicated code in NBD storage migration. Moreover, we are getting ready for migration events (to replace our 50ms polling on query-migrate). The ultimate goal is to have a single loop waiting (virDomainObjWait) for any

[libvirt] [PATCH v2 00/22] Add support for migration events

2015-06-02 Thread Jiri Denemark
QEMU will soon (patches are available on qemu-devel) get support for migration events which will finally allow us to get rid of polling query-migrate every 50ms. However, we first need to be able to wait for all events related to migration (migration status changes, block job events, async abort

[libvirt] [PATCH v2 09/22] qemu: Cancel disk mirrors after libvirtd restart

2015-06-02 Thread Jiri Denemark
When libvirtd is restarted during migration, we properly cancel the ongoing migration (unless it managed to almost finished before the restart). But if we were also migrating storage using NBD, we would completely forget about the running disk mirrors. Signed-off-by: Jiri Denemark

[libvirt] [PATCH v2 08/22] qemu: Refactor qemuMonitorBlockJobInfo

2015-06-02 Thread Jiri Denemark
query-block-jobs QMP command returns all running block jobs at once, while qemuMonitorBlockJobInfo would only report one. This is not very nice in case we need to check several block jobs. This patch refactors the monitor code to always parse all block jobs and store them in a hash.

[libvirt] [PATCH v2 02/22] qemu: Introduce qemuBlockJobUpdate

2015-06-02 Thread Jiri Denemark
The wrapper is useful for calling qemuBlockJobEventProcess with the event details stored in disk's privateData, which is the most likely usage of qemuBlockJobEventProcess. Signed-off-by: Jiri Denemark jdene...@redhat.com --- Notes: Already ACKed in version 1. Version 2: - no

[libvirt] [PATCH v2 11/22] qemu_monitor: Wire up SPICE_MIGRATE_COMPLETED event

2015-06-02 Thread Jiri Denemark
Signed-off-by: Jiri Denemark jdene...@redhat.com --- Notes: Version 2: - new patch src/qemu/qemu_monitor.c | 12 src/qemu/qemu_monitor.h | 6 ++ src/qemu/qemu_monitor_json.c | 10 ++ 3 files changed, 28 insertions(+) diff --git

[libvirt] [PATCH v2 01/22] conf: Introduce per-domain condition variable

2015-06-02 Thread Jiri Denemark
Complex jobs, such as migration, need to monitor several events at once, which is impossible when each of the event uses its own condition variable. This patch adds a single condition variable to each domain object. This variable can be used instead of the other event specific conditions.

Re: [libvirt] [PATCH v2 19/22] qemu: Work around weired migration status changes

2015-06-02 Thread Ján Tomko
s/weired/weird/ in the commit message Jan On Tue, Jun 02, 2015 at 02:34:24PM +0200, Jiri Denemark wrote: When cancelling migration we can see the following conversation on QMP monitor: {execute:migrate_cancel,id:libvirt-33} {timestamp: {seconds: 1432899178, microseconds: 844907}, event:

[libvirt] Bug 1227257

2015-06-02 Thread 王松波
I report a bug [Bug 1227257] . In the environment libvirt-1.2.16.tar.gz + qemu-img version 2.1.2 + ceph version 0.94.1. libvirt pool will become inactive after one client does vol.delete and the other does pool.refresh in the same pool simultaneously. The reason is that rbd_list and rbd_open

Re: [libvirt] [PATCH v3 0/5] virsh: Further improve handling of integer options

2015-06-02 Thread John Ferlan
On 06/02/2015 05:35 AM, Andrea Bolognani wrote: On Sun, 2015-05-31 at 15:19 -0400, John Ferlan wrote: First of all, thanks for the review :) Patch 2 had some comments which should be simple to fix I've commented in detail in your other mail, should have taken care of them all.

[libvirt] [PATCH v2 22/22] qemu: cancel drive mirrors when p2p connection breaks

2015-06-02 Thread Jiri Denemark
When a connection to the destination host during a p2p migration drops, we know we will have to cancel the migration; it doesn't make sense to waste resources by trying to finish the migration. We already do so after sending migrate command to QEMU and we should do it while waiting for drive

[libvirt] [PATCH v2 05/22] qemu: Don't mess with disk-mirrorState

2015-06-02 Thread Jiri Denemark
This patch reverts commit 76c61cdca20c106960af033e5d0f5da70177af0f. VIR_DOMAIN_DISK_MIRROR_STATE_ABORT says we asked for a block job to be aborted rather than saying it was aborted. Let's just use VIR_DOMAIN_DISK_MIRROR_STATE_NONE consistently whenever a block job finishes since no caller depends

[libvirt] [PATCH v2 19/22] qemu: Work around weired migration status changes

2015-06-02 Thread Jiri Denemark
When cancelling migration we can see the following conversation on QMP monitor: {execute:migrate_cancel,id:libvirt-33} {timestamp: {seconds: 1432899178, microseconds: 844907}, event: MIGRATION, data: {status: cancelling}} {return: {}, id: libvirt-33} {timestamp: {seconds: 1432899178,

[libvirt] [PATCH v2 10/22] qemu: Use domain condition for asyncAbort

2015-06-02 Thread Jiri Denemark
To avoid polling for asyncAbort flag changes. Signed-off-by: Jiri Denemark jdene...@redhat.com --- Notes: Version 2: - rewritten using domain condition src/qemu/qemu_domain.c| 5 +++-- src/qemu/qemu_domain.h| 2 +- src/qemu/qemu_migration.c | 11 --- 3 files changed,

[libvirt] [PATCH v2 03/22] qemu: Properly report failed migration

2015-06-02 Thread Jiri Denemark
Because we are polling we may detect some errors after we asked QEMU for migration status even though they occurred before. If this happens and QEMU reports migration completed successfully, we would happily report the migration succeeded even though we should have cancelled it because of the

[libvirt] [PATCH v2 06/22] Pass domain object to private data formatter/parser

2015-06-02 Thread Jiri Denemark
So that they can format private data (e.g., disk private data) stored elsewhere in the domain object. Signed-off-by: Jiri Denemark jdene...@redhat.com --- Notes: Version 2: - no changes src/conf/domain_conf.c | 4 ++-- src/conf/domain_conf.h | 6 -- src/libxl/libxl_domain.c |

Re: [libvirt] Bug 1227257

2015-06-02 Thread Cedric Bosdonnat
王松波你好, Thanks a lot for reporting a bug and providing a patch for it. However, you will need to send the patch using git send-email to this mailing list: it will ease the review and integration in master. Thanks a lot for your help, -- Cedric On Tue, 2015-06-02 at 20:27 +0800, 王松波 wrote: I

[libvirt] [PATCH 1/2] Report errors in virNodeCountThreadSiblings

2015-06-02 Thread Ján Tomko
Use virFileReadAll which reports an error when the file is larger than the specified maximum. https://bugzilla.redhat.com/show_bug.cgi?id=1207849 --- src/nodeinfo.c | 22 -- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/src/nodeinfo.c b/src/nodeinfo.c index

Re: [libvirt] [PATCH v2 2/2] storage: RBD: do not return error when deleting non-existent volume

2015-06-02 Thread Erik Skultety
On 06/02/2015 02:47 PM, Martin Kletzander wrote: On Thu, May 28, 2015 at 05:29:55PM +0200, Erik Skultety wrote: RBD API returns negative value of errno, in that case we can silently ignore if RBD tries to delete a non-existent volume, just like FS backend does. ---

[libvirt] [PATCH v2 12/22] qemu: Do not poll for spice migration status

2015-06-02 Thread Jiri Denemark
QEMU_CAPS_SEAMLESS_MIGRATION capability says QEMU supports SPICE_MIGRATE_COMPLETED event. Thus we can just drop all code which polls query-spice and replace it with waiting for the event. Signed-off-by: Jiri Denemark jdene...@redhat.com --- Notes: Version 2: - new patch

[libvirt] [PATCH 2/2] Simplify virNodeCountThreadSiblings

2015-06-02 Thread Ján Tomko
Use a for cycle instead of while. Do not opencode c_isxdigit and virHexToBin. --- src/nodeinfo.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/nodeinfo.c b/src/nodeinfo.c index 9db3233..2fafe2d 100644 --- a/src/nodeinfo.c +++ b/src/nodeinfo.c @@ -361,15

Re: [libvirt] [PATCH v2 2/2] storage: RBD: do not return error when deleting non-existent volume

2015-06-02 Thread Martin Kletzander
On Thu, May 28, 2015 at 05:29:55PM +0200, Erik Skultety wrote: RBD API returns negative value of errno, in that case we can silently ignore if RBD tries to delete a non-existent volume, just like FS backend does. --- src/storage/storage_backend_rbd.c | 6 +++--- 1 file changed, 3 insertions(+), 3

Re: [libvirt] [PATCH v4 0/6] virsh: Further improve handling of integer options

2015-06-02 Thread John Ferlan
On 06/02/2015 05:17 AM, Andrea Bolognani wrote: As suggested by Michal: now that we have a generic error message for failures related to the parsing of integer options, it makes sense to perform the corresponding check in a single spot instead of replicating it every time vshCommandOpt*() is

Re: [libvirt] [PATCH v2 1/2] storage: Don't update volume objs list before we successfully create one

2015-06-02 Thread Martin Kletzander
On Mon, Jun 01, 2015 at 03:14:24PM +0200, Martin Kletzander wrote: On Thu, May 28, 2015 at 05:29:54PM +0200, Erik Skultety wrote: We do update pool volume object list before we actually create any volume. If buildVol fails, we then try to delete the volume in the storage as well as remove it

[libvirt] [PATCH v2 18/22] qemu: Update migration state according to MIGRATION event

2015-06-02 Thread Jiri Denemark
We don't need to call query-migrate every 50ms when we get the current migration state via MIGRATION event. Signed-off-by: Jiri Denemark jdene...@redhat.com --- Notes: Version 2: - new patch src/qemu/qemu_migration.c | 14 -- src/qemu/qemu_process.c | 31

[libvirt] [PATCH v2 17/22] qemu_monitor: Wire up MIGRATION event

2015-06-02 Thread Jiri Denemark
Thanks to Juan's work QEMU finally emits an event whenever migration state changes. Signed-off-by: Jiri Denemark jdene...@redhat.com --- Notes: The MIGRATION event is not supported by QEMU yet, this patch is based on the current patches available on qemu-devel mailing list. However,

[libvirt] [PATCH v2 14/22] qemu: Refactor qemuMigrationUpdateJobStatus

2015-06-02 Thread Jiri Denemark
Once we start waiting for migration events instead of polling query-migrate, priv-job.current will not be regularly updated anymore because we will get the current status directly from the events. Thus virDomainGetJob{Info,Stats} will have to query QEMU, but they can't just blindly update

[libvirt] [PATCH v2 13/22] qemu: Refactor qemuDomainGetJob{Info, Stats}

2015-06-02 Thread Jiri Denemark
Move common parts of qemuDomainGetJobInfo and qemuDomainGetJobStats into a separate API (qemuDomainGetJobStatsInternal). Signed-off-by: Jiri Denemark jdene...@redhat.com --- Notes: Version 2: - new patch src/qemu/qemu_driver.c | 113 ++--- 1

[libvirt] [PATCH v2 07/22] qemu: Make qemuMigrationCancelDriveMirror usable without async job

2015-06-02 Thread Jiri Denemark
We don't have an async job when reconnecting to existing domains after libvirtd restart. Signed-off-by: Jiri Denemark jdene...@redhat.com --- Notes: Version 2: - no changes src/qemu/qemu_migration.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git

[libvirt] [PATCH v2 21/22] qemu: Wait for migration events on domain condition

2015-06-02 Thread Jiri Denemark
Since we already support the MIGRATION event, we just need to make sure the domain condition is signalled whenever a p2p connection drops or the domain is paused due to IO error and we can avoid waking up every 50 ms to check whether something happened. Signed-off-by: Jiri Denemark

[libvirt] [PATCH v2 20/22] qemuDomainGetJobStatsInternal: Support migration events

2015-06-02 Thread Jiri Denemark
When QEMU supports migration events qemuDomainJobInfo structure is no longer updated with migration statistics. We have to enter a job and explicitly ask QEMU every time virDomainGetJob{Info,Stats} is called. Signed-off-by: Jiri Denemark jdene...@redhat.com --- Notes: Version 2: - new

[libvirt] [PATCH v2 15/22] qemu: Don't pass redundant job name around

2015-06-02 Thread Jiri Denemark
Instead of passing current job name to several functions which already know what the current job is we can generate the name where we actually need to use it. Signed-off-by: Jiri Denemark jdene...@redhat.com --- Notes: Version 2: - new patch src/qemu/qemu_migration.c | 54

[libvirt] [PATCH v2 16/22] qemu: Refactor qemuMigrationWaitForCompletion

2015-06-02 Thread Jiri Denemark
Checking status of all part of migration and aborting it when something failed is a complex thing which makes the waiting loop hard to read. This patch moves all the checks into a separate function similarly to what was done for drive mirror loops. Signed-off-by: Jiri Denemark jdene...@redhat.com

[libvirt] [PATCH 0/2] Report errors in virNodeCountThreadSiblings

2015-06-02 Thread Ján Tomko
https://bugzilla.redhat.com/show_bug.cgi?id=1207849 Ján Tomko (2): Report errors in virNodeCountThreadSiblings Simplify virNodeCountThreadSiblings src/nodeinfo.c | 34 +++--- 1 file changed, 7 insertions(+), 27 deletions(-) -- 2.3.6 -- libvir-list mailing list

Re: [libvirt] [PATCH 0/2] Report errors in virNodeCountThreadSiblings

2015-06-02 Thread Martin Kletzander
On Tue, Jun 02, 2015 at 02:53:43PM +0200, Ján Tomko wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1207849 Ján Tomko (2): Report errors in virNodeCountThreadSiblings Simplify virNodeCountThreadSiblings src/nodeinfo.c | 34 +++--- 1 file changed, 7

Re: [libvirt] [PATCH v4 0/6] virsh: Further improve handling of integer options

2015-06-02 Thread Andrea Bolognani
On Tue, 2015-06-02 at 09:23 -0400, John Ferlan wrote: ACK series... and pushed Thanks :) -- Andrea Bolognani Software Engineer - Virtualization Team $ python -c print('a'.join(['', 'bologn', '@redh', 't.com'])) -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH] build: silence ar warnings on rawhide

2015-06-02 Thread Daniel P. Berrange
On Tue, Jun 02, 2015 at 09:24:26AM -0600, Eric Blake wrote: Newer binutils 'ar' has added an option 'D' for deterministic builds, and at least on rawhide, this option is enabled by default. But it conflicts with the 'u' optimization where the linker only modifies libraries based on file

Re: [libvirt] [PATCH] virsh: Fix Ctrl-C behavior when watching a job

2015-06-02 Thread Ján Tomko
On Mon, Jun 01, 2015 at 09:05:59PM +0200, Jiri Denemark wrote: When watching a job (save, managedsave, dump, migrate) virsh spawns a thread to call the appropriate API and waits for the result while watching for interruption signals (SIGINT, Ctrl-C on the terminal). Whenever such signal is

[libvirt] [PATCH] build: silence ar warnings on rawhide

2015-06-02 Thread Eric Blake
Newer binutils 'ar' has added an option 'D' for deterministic builds, and at least on rawhide, this option is enabled by default. But it conflicts with the 'u' optimization where the linker only modifies libraries based on file timestamps, but can result in different library ordering based on

Re: [libvirt] [PATCH] qemu: monitor: Add memory balloon support for virtio-ccw

2015-06-02 Thread Ján Tomko
On Tue, Jun 02, 2015 at 11:27:35AM +0200, Boris Fiuczynski wrote: The search for the memory ballon driver object is extended by a second known name virtio-ballon-ccw in support for virtio-ccw. Signed-off-by: Boris Fiuczynski fiu...@linux.vnet.ibm.com Reviewed-by: Christian Borntraeger

Re: [libvirt] [PATCH] build: silence ar warnings on rawhide

2015-06-02 Thread Eric Blake
On 06/02/2015 09:27 AM, Daniel P. Berrange wrote: On Tue, Jun 02, 2015 at 09:24:26AM -0600, Eric Blake wrote: Newer binutils 'ar' has added an option 'D' for deterministic builds, and at least on rawhide, this option is enabled by default. But it conflicts with the 'u' optimization where the

Re: [libvirt] [RFC] libvirt support multi-thread compression for live migration

2015-06-02 Thread Eric Blake
On 06/02/2015 07:56 AM, Qiao, Liyong wrote: Hi Eric Thanks for replying the mail, replied in lines. +virdomainMigrateGetParameters(virDomainPtr domain, + int *level, + int *threads, + int

Re: [libvirt] [PATCHv2] Always add 'console' matching the 'serial' device

2015-06-02 Thread John Ferlan
On 05/28/2015 09:55 AM, Ján Tomko wrote: We have been formatting the first serial device also as a console device, but only if there were no other consoles. If there is a serial device present in the XML, but no serial console, or if there isn't any console at all but the domain

[libvirt] [PATCH] util: process: @pid in virProcessSetAffinity's BSD impl is not unused

2015-06-02 Thread Peter Krempa
--- Pushed as trivial. src/util/virprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virprocess.c b/src/util/virprocess.c index 7a79970..501569f 100644 --- a/src/util/virprocess.c +++ b/src/util/virprocess.c @@ -537,7 +537,7 @@ int