Re: [libvirt] (Resend with updates) Live Migration with non-shared storage for kvm

2010-05-04 Thread Kenneth Nagin
Ph: +972-4-8296227 Cell: 054-6976227 Fx: +972-4- 8296113 "Do not look back in anger, or forward in fear, but around in awareness." --James Thurber Eric Blake wrote on 05/05/2010 01:04:23: > From: Eric Blake > To: Cole Robinson > Cc: Kenneth Nagin/Haifa/i...@ibmil, list libvirt > Date: 05/

[libvirt] [PATCH] util: fix va_start usage bug

2010-05-04 Thread Eric Blake
Detected by clang. POSIX requires that the second argument to va_start be the name of the last variable; and in some implementations, passing *path instead of path would dereference bogus memory instead of pulling arguments off the stack. * src/util/util.c (virBuildPathInternal): Use correct argu

Re: [libvirt] (Resend with updates) Live Migration with non-shared storage for kvm

2010-05-04 Thread Eric Blake
On 05/03/2010 07:52 AM, Cole Robinson wrote: > On 05/03/2010 04:13 AM, Kenneth Nagin wrote: >> > > ... > >> This the patch file: >> (See attached file: libvirt_migration_ns_100503.patch) >> > > ACK, patch looks fine now. Kenneth, I added a commit message, broke a few lines to fit in 80 columns

[libvirt] [PATCHv2 5/5] build: update gnulib

2010-05-04 Thread Eric Blake
81 patches to gnulib, picks up several new syntax checks. * .gnulib: Update to latest. * .x-sc_prohibit_always_true_header_tests: New file. * bootstrap.conf (gnulib_modules): Add sched. * src/util/processinfo.c (includes): is now guaranteed. * src/network/bridge_driver.c (includes): Drop useless

[libvirt] [PATCHv2 2/5] build: use gnulib's uname

2010-05-04 Thread Eric Blake
* bootstrap.conf (gnulib_modules): Add uname. * configure.ac: Drop uname and sys/utsname.h checks. * src/nodeinfo.c (nodeGetInfo): Use uname unconditionally. --- bootstrap.conf |1 + configure.ac |4 ++-- src/nodeinfo.c | 12 ++-- 3 files changed, 5 insertions(+), 12 deletions(

[libvirt] [PATCHv2 4/5] build: drop more redundant configure checks

2010-05-04 Thread Eric Blake
* configure.ac (AC_CHECK_FUNCS_ONCE, AC_SYS_LARGEFILE): Rely on gnulib for strtok_r and large file support. (AC_OBJEXT): Drop call now done by AC_PROG_CC. (m4_foreach_w): Drop macro guaranteed by gnulib. (AC_C_CONST): Drop call declared obsolete by autoconf. Signed-off-by: Eric Blake --- configu

[libvirt] [PATCHv2 3/5] build: use gnulib's sys/wait.h

2010-05-04 Thread Eric Blake
* configure.ac: Drop sys/wait.h check. * src/libvirt.c (includes): Use header unconditionally. * src/remote/remote_driver.c (includes): Likewise. * src/storage/storage_backend.c (includes): Likewise. * src/util/ebtables.c (includes): Likewise. * src/util/hooks.c (includes): Likewise. * src/util/ipt

[libvirt] [PATCHv2 1/5] build: rely on gnulib's pthread module

2010-05-04 Thread Eric Blake
Gnulib can guarantee that pthread.h exists, but for now, it is a dummy header with no support for most pthread_* functions. Modify our use of pthread to use function checks, rather than header checks, to determine how much pthread support is present. * bootstrap.conf (gnulib_modules): Add pthread

[libvirt] [PATCHv2 0/5] build: update gnulib

2010-05-04 Thread Eric Blake
This replaces the first cut at this series: https://www.redhat.com/archives/libvir-list/2010-April/msg01341.html Changes since v1: squash the original 1/5 and 2/5 into one patch test every stage of the series on a cross-compile to mingw add new 5/5, and adjust to recent syntax checks available in

Re: [libvirt] [PATCH] pci: Give an explicit error if device not found

2010-05-04 Thread Eric Blake
On 04/30/2010 09:44 AM, Cole Robinson wrote: > @@ -1028,6 +1028,7 @@ pciGetDevice(unsigned domain, > unsigned function) > { > pciDevice *dev; > +char devdir[PATH_MAX]; Using PATH_MAX as an array size is dangerous; it fails on GNU Hurd where there is no minimum size. Also,

Re: [libvirt] [PATCH] qemu: Report cmdline output if VM dies early

2010-05-04 Thread Eric Blake
On 04/30/2010 09:44 AM, Cole Robinson wrote: > qemuReadLogOutput early VM death detection is racy and won't always work. > Startup then errors when connecting to the VM monitor. This won't report > the emulator cmdline output which is typically the most useful diagnostic. > > Check if the VM has d

Re: [libvirt] Alternative to XML Creation and Parsing?

2010-05-04 Thread Ganesh Pagade
Resending, as the previous one hasn't appeared after waiting for more than a day. My apologies if this is duplicate. Hello, We plan to develop a fancy GUI which would help creating and managing VMs/Domains for RHEL 5.4 KVM. However looking at the schemas provided in docs/schemas/ (Ex: domain.rng

Re: [libvirt] Fwd: Re: need your help about virito vmchannel

2010-05-04 Thread Matthew Booth
On 04/05/10 18:08, Cole Robinson wrote: > On 05/04/2010 12:38 PM, Matthew Booth wrote: >> FYI for the list. I haven't looked at this yet. >> >> Matt >> >> Original Message >> Subject: Re: need your help about virito vmchannel >> Date: Tue, 4 May 2010 18:00:02 +0530 >> From: Amit S

[libvirt] [PATCH] mingw32-libvirt.spec: bring up to date

2010-05-04 Thread Eric Blake
Right now, mingw32-portablexdr is not available in Fedora, but is present in fedora-mingw.git. With that package, plus redhat-rpm-config and this patch, it is once again possible to build mingw32-libvirt from a Fedora 12 host. * mingw32-libvirt.spec.in (__debug_install_post): Override. (%files):

Re: [libvirt] Fwd: Re: need your help about virito vmchannel

2010-05-04 Thread Daniel P. Berrange
On Tue, May 04, 2010 at 01:08:53PM -0400, Cole Robinson wrote: > On 05/04/2010 12:38 PM, Matthew Booth wrote: > > FYI for the list. I haven't looked at this yet. > > > > Matt > > > > Original Message > > Subject: Re: need your help about virito vmchannel > > Date: Tue, 4 May 201

Re: [libvirt] Fwd: Re: need your help about virito vmchannel

2010-05-04 Thread Cole Robinson
On 05/04/2010 12:38 PM, Matthew Booth wrote: > FYI for the list. I haven't looked at this yet. > > Matt > > Original Message > Subject: Re: need your help about virito vmchannel > Date: Tue, 4 May 2010 18:00:02 +0530 > From: Amit Shah > To: Matthew Booth > CC: Jianlin Liu >

Re: [libvirt] [PATCH] configure.ac: Avoid uname, which breaks cross-compilation

2010-05-04 Thread Eric Blake
On 05/04/2010 02:54 AM, Daniel Veillard wrote: > On Tue, May 04, 2010 at 01:41:55AM +0200, Matthias Bolte wrote: >> When cross-compiling on Linux, configure will misdetect the target as >> Linux because it uses uname instead of relying on the $host variable. >> This results in including libvirt_lin

[libvirt] Fwd: Re: need your help about virito vmchannel

2010-05-04 Thread Matthew Booth
FYI for the list. I haven't looked at this yet. Matt Original Message Subject: Re: need your help about virito vmchannel Date: Tue, 4 May 2010 18:00:02 +0530 From: Amit Shah To: Matthew Booth CC: Jianlin Liu On (Tue) May 04 2010 [13:18:30], Matthew Booth wrote: > On 04/05/10

Re: [libvirt] [PATCH] Don't wipe generated iface target in active domains

2010-05-04 Thread Jiri Denemark
> > Wipe generated interface target only when reading configuration of > > inactive domains. > > ACK. Thanks, pushed. Jirka -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH] Fix SCSI disk unplugging

2010-05-04 Thread Daniel P. Berrange
On Tue, May 04, 2010 at 05:18:24PM +0200, Wolfgang Mauerer wrote: > Detaching disk devices is not only possible for VIR_DOMAIN_DISK_BUS_VIRTIO, > but also for VIR_DOMAIN_DISK_BUS_SCSI, so take care of this possibility. > > Additionally, when the new-style device syntax is used, we do not need to >

[libvirt] [PATCH] Fix SCSI disk unplugging

2010-05-04 Thread Wolfgang Mauerer
Detaching disk devices is not only possible for VIR_DOMAIN_DISK_BUS_VIRTIO, but also for VIR_DOMAIN_DISK_BUS_SCSI, so take care of this possibility. Additionally, when the new-style device syntax is used, we do not need to check if the PCI address is valid since we don't need it to do the hot-unpl

Re: [libvirt] [PATCH] Don't wipe generated iface target in active domains

2010-05-04 Thread Eric Blake
On 05/04/2010 08:39 AM, jdene...@redhat.com wrote: > From: Jiri Denemark > > Wipe generated interface target only when reading configuration of > inactive domains. > --- > src/conf/domain_conf.c |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/src/conf/domain_conf

[libvirt] [PATCH] Don't wipe generated iface target in active domains

2010-05-04 Thread jdenemar
From: Jiri Denemark Wipe generated interface target only when reading configuration of inactive domains. --- src/conf/domain_conf.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 546ddf2..3e45f79 100644 --- a/src/c

Re: [libvirt] [PATCH] Various fixes for the spec file

2010-05-04 Thread Eric Blake
On 05/04/2010 03:14 AM, Daniel Veillard wrote: > This includes various things: > - fix the Requires: libvirt-client to use %{name} to allow easy renaming > - when building ESX support one need libcurl-devel > - remove Makefile[.in] from xml/nwfilter in the docs, as this breaks >parallel inst

Re: [libvirt] why we should use a mechanical indentation checker

2010-05-04 Thread Jim Meyering
Jim Meyering wrote: ... >> In either case, an automatic indentation checker would catch the problem. >> This is yet another reason to enforce an indentation style. >> The longer we wait, the harder it will become. > > No one objected to the patch in the parent, > and there was one ACK, so I'm about

Re: [libvirt] why we should use a mechanical indentation checker

2010-05-04 Thread Jim Meyering
Jim Meyering wrote: > I introduced a bug with this supposedly-safe, no-semantic-change delta: > > > http://libvirt.org/git/?p=libvirt.git;a=commitdiff;h=b6719eab9e95c5daeeea85 > > See if you can spot it. > > Here is the loop in question, as it was prior to my erroneous change: > > for (i =

Re: [libvirt] [PATCH 0/3] lxc: Fix domain lookup and error handling

2010-05-04 Thread Jiri Denemark
> Jiri Denemark (3): > lxc: Use virDomainFindByUUID for domain lookup > lxc: Make SetMemory work for active domains only > lxc: Check domain is active/inactive as required by operation > > src/lxc/lxc_driver.c | 138 > ++ > 1 files changed,

Re: [libvirt] [PATCH 2/3] lxc: Make SetMemory work for active domains only

2010-05-04 Thread Daniel Veillard
On Tue, May 04, 2010 at 11:56:56AM +0200, Jiri Denemark wrote: > > > @@ -642,27 +642,30 @@ static int lxcDomainSetMemory(virDomainPtr dom, > > > unsigned long newmem) { > > > goto cleanup; > > > } > > > > > > -if (virDomainObjIsActive(vm)) { > > > -if (driver->cgroup ==

Re: [libvirt] [PATCH 2/3] lxc: Make SetMemory work for active domains only

2010-05-04 Thread Jiri Denemark
> > @@ -642,27 +642,30 @@ static int lxcDomainSetMemory(virDomainPtr dom, > > unsigned long newmem) { > > goto cleanup; > > } > > > > -if (virDomainObjIsActive(vm)) { > > -if (driver->cgroup == NULL) { > > -lxcError(VIR_ERR_NO_SUPPORT, > > -

[libvirt] [PATCH] Various fixes for the spec file

2010-05-04 Thread Daniel Veillard
This includes various things: - fix the Requires: libvirt-client to use %{name} to allow easy renaming - when building ESX support one need libcurl-devel - remove Makefile[.in] from xml/nwfilter in the docs, as this breaks parallel install ation of i686 and x86_64 packages - don't include nw

Re: [libvirt] [PATCH] configure.ac: Avoid uname, which breaks cross-compilation

2010-05-04 Thread Daniel Veillard
On Tue, May 04, 2010 at 01:41:55AM +0200, Matthias Bolte wrote: > When cross-compiling on Linux, configure will misdetect the target as > Linux because it uses uname instead of relying on the $host variable. > This results in including libvirt_linux.syms into libvirt.syms and > therefore trying to

Re: [libvirt] qemu-kvm spending time in do_info_migrate() during virDomainSave(); 50ms polling too fast?

2010-05-04 Thread Daniel Veillard
On Mon, May 03, 2010 at 02:46:35PM -0500, Charles Duffy wrote: > On Mon, May 3, 2010 at 1:48 PM, Matthias Bolte < > matthias.bo...@googlemail.com> wrote: > > > 2010/5/3 Charles Duffy : > > > The question then -- is the 50ms poll in > > qemuDomainWaitForMigrationComplete > > > (called from qemudDom