Re: [libvirt] [PATCH] qemuhelptest: convert runaway tab to spaces

2012-09-18 Thread Daniel Veillard
WN, > +QEMU_CAPS_SCSI_DISK_WWN, > QEMU_CAPS_SECCOMP_SANDBOX); Oops i fixed that trivial problem in your patch but forgot to check for syntax, mea culpa !!! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM searc

[libvirt] Entering freeze for 0.10.2

2012-09-18 Thread Daniel Veillard
iday. Then hopefully we can release next Monday or Tuesday. Give it a try, let's chase bugs :-) ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualizatio

Re: [libvirt] [PATCHv2 9/9] network: implement backend of virNetworkUpdate(IP_DHCP_HOST)

2012-09-18 Thread Daniel Veillard
to cleanup; > + > +/* find matching entry - all specified attributes must match */ > + for (ii = 0; ii < ipdef->nhosts; ii++) { > +if ((!host.mac || > + !virMacAddrCompare(host.mac, ipdef->hosts[ii].mac)) && > +

Re: [libvirt] [PATCHv2 8/9] network: restart radvd/dnsmasq if needed when libvirtd is restarted

2012-09-18 Thread Daniel Veillard
networkRefreshRadvd(network); > + } > + virNetworkObjUnlock(network); > +} > +} > + > static int > networkAddMasqueradingIptablesRules(struct network_driver *driver, > virNetworkObjPtr network, ACK, sounds

Re: [libvirt] [PATCHv2 6/9] network: implement virNetworkUpdate for bridge_driver

2012-09-18 Thread Daniel Veillard
ObjUnlock(network); > +networkDriverUnlock(driver); > + return ret; > +} > + > static int networkStart(virNetworkPtr net) { > struct network_driver *driver = net->conn->networkPrivateData; > virNetworkObjPtr network; > @@ -3057,6 +3160,7 @@ static virNetworkDri

Re: [libvirt] [PATCHv2 7/9] network: implement virNetworkUpdate for test_driver

2012-09-18 Thread Daniel Veillard
onn = network->conn->privateData; > virNetworkObjPtr privnet; > @@ -5722,6 +5772,7 @@ static virNetworkDriver testNetworkDriver = { > .networkCreateXML = testNetworkCreate, /* 0.3.2 */ > .networkDefineXML = testNetworkDefine, /* 0.3.2 */ > .networkUndefine = test

Re: [libvirt] [PATCHv2 5/9] network: reorganize dnsmasq and radvd config file / startup

2012-09-18 Thread Daniel Veillard
tr); > -virBufferFreeAndReset(&configbuf); > VIR_FREE(radvdpidbase); > VIR_FREE(pidfile); > return ret; > } > > +#if 0 > +/* currently unused, so they cause a build error unless we #if them out */ > +static int > +networkRefreshRadvd(

Re: [libvirt] [PATCHv2 4/9] conf: implement NetworkObj backend of virNetworkUpdate API

2012-09-18 Thread Daniel Veillard
istPtr to search > diff --git a/src/conf/network_conf.h b/src/conf/network_conf.h > index 0d37a8b..c8ed2ea 100644 > --- a/src/conf/network_conf.h > +++ b/src/conf/network_conf.h > @@ -326,6 +326,14 @@ int virNetworkSetBridgeName(const virNetworkObjListPtr > nets, > &

Re: [libvirt] [PATCHv2 3/9] network: utility functions for updating network config

2012-09-18 Thread Daniel Veillard
t a/src/test/test_driver.c b/src/test/test_driver.c > index fbd8ed0..1bd0d61 100644 > --- a/src/test/test_driver.c > +++ b/src/test/test_driver.c > @@ -579,7 +579,7 @@ static int testOpenDefault(virConnectPtr conn) { > > if (!(netdef = virNetworkDefParseString(defaultNetworkXML)

Re: [libvirt] [PATCHv2 1/9] network: define new API virNetworkUpdate

2012-09-18 Thread Daniel Veillard
> +error: > +virDispatchError(network->conn); > +return -1; > +} > + > +/** > * virNetworkCreate: > * @network: pointer to a defined network > * > diff --git a/src/libvirt_public.syms b/src/libvirt_public.syms > index d965c7f..2c924d5 100644 > ---

Re: [libvirt] [PATCHv2 2/9] network: implement RPC calls for virNetworkUpdate

2012-09-18 Thread Daniel Veillard
intindex; > +remote_nonnull_string xml; > +u_int flags; > +}; > struct remote_network_create_args { > remote_nonnull_network net; > }; > @@ -2406,4 +2414,5 @@ enum remote_procedure { >

Re: [libvirt] [PATCHv3 0/4] qemu: Add seccomp sandbox support

2012-09-18 Thread Daniel Veillard
est.c +++ b/tests/qemuhelptest.c @@ -845,6 +845,7 @@ mymain(void) QEMU_CAPS_SCSI_LSI, QEMU_CAPS_VIRTIO_SCSI_PCI, QEMU_CAPS_BLOCKIO, + QEMU_CAPS_SCSI_DISK_WWN, QEMU_CAPS_SECCOMP_SANDBOX); return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE; -- Daniel Vei

Re: [libvirt] [PATCH 4/4] qemu: Use disk wwn in qemu command line

2012-09-17 Thread Daniel Veillard
@@ -471,6 +471,10 @@ mymain(void) > DO_TEST("disk-scsi-disk-split", > QEMU_CAPS_DRIVE, QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG, > QEMU_CAPS_SCSI_CD, QEMU_CAPS_SCSI_LSI, > QEMU_CAPS_VIRTIO_SCSI_PCI); > +DO_TEST("disk-scsi-disk-wwn", > +QEMU_CAPS_DRI

Re: [libvirt] [PATCH 3/4] qemu: Add caps to indentify if setting wwn is supported by qemu

2012-09-17 Thread Daniel Veillard
= 107, /* Is ide-drive.wwn available? */ > +QEMU_CAPS_SCSI_DISK_WWN = 108, /* Is scsi-disk.wwn available? */ > > QEMU_CAPS_LAST, /* this must always be the last item */ > }; ACK, but we will need to make sure that capability is still handled

Re: [libvirt] [PATCH 1/4] schema: Add schema for disk

2012-09-17 Thread Daniel Veillard
44 > --- a/docs/schemas/nodedev.rng > +++ b/docs/schemas/nodedev.rng > @@ -245,12 +245,6 @@ > > > > - > - > - [0-9a-fA-F]{16} > - > - > - > > >fc_host Looks fine, ACK, Daniel -- Daniel Veillard |

Re: [libvirt] [PATCH 2/4] conf: Parse and format disk

2012-09-17 Thread Daniel Veillard
rValidateWWN(const char *wwn) { > +int i; > + > +for (i = 0; wwn[i]; i++) > +if (!c_isxdigit(wwn[i])) > +break; > + > +if (i != 16 || wwn[i]) { > +virReportError(VIR_ERR_INTERNAL_ERROR, "%s", > + _("Malformed ww

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-17 Thread Daniel Veillard
that service, in that case i will try it, but not right now :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ -- libvir-l

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-17 Thread Daniel Veillard
On Mon, Sep 17, 2012 at 02:32:03PM +0200, Wido den Hollander wrote: > On 17-09-12 14:20, Daniel Veillard wrote: > >On Mon, Sep 17, 2012 at 10:35:02AM +0200, Wido den Hollander wrote: [...] > >>However, maven central didn't fetch 0.4.9 yet. No clue why it ain't >

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-17 Thread Daniel Veillard
On Mon, Sep 17, 2012 at 10:35:02AM +0200, Wido den Hollander wrote: > > > On 14-09-12 18:09, Daniel Veillard wrote: > >On Fri, Sep 14, 2012 at 05:36:10PM +0200, Wido den Hollander wrote: > >>On 09/14/2012 04:59 PM, Daniel Veillard wrote: > >[...] > >>&g

Re: [libvirt] [PATCH 0/6 v3] New APIs to get/set node memory tunables

2012-09-15 Thread Daniel Veillard
20 +++ > src/rpc/gendispatch.pl |3 + > src/uml/uml_driver.c|2 + > src/xen/xen_driver.c|3 + > tools/virsh-host.c | 116 ++ > tools/virsh.pod |8 ++ > 21 files changed, 889 insertions

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-14 Thread Daniel Veillard
On Fri, Sep 14, 2012 at 05:36:10PM +0200, Wido den Hollander wrote: > On 09/14/2012 04:59 PM, Daniel Veillard wrote: [...] > >http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.pom > >doesn't seems to have any section though ... > >

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-14 Thread Daniel Veillard
On Fri, Sep 14, 2012 at 04:18:21PM +0200, Wido den Hollander wrote: > On 09/13/2012 02:19 PM, Daniel Veillard wrote: > >On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote: > >>On 09/10/2012 03:23 PM, Daniel Veillard wrote: > >>>On Mon, Sep 10, 2012

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-14 Thread Daniel Veillard
On Fri, Sep 14, 2012 at 04:18:21PM +0200, Wido den Hollander wrote: > On 09/13/2012 02:19 PM, Daniel Veillard wrote: > >On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote: > >>On 09/10/2012 03:23 PM, Daniel Veillard wrote: > >>>On Mon, Sep 10, 2012

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-14 Thread Daniel Veillard
On Fri, Sep 14, 2012 at 04:01:55PM +0200, Wido den Hollander wrote: > On 09/13/2012 02:19 PM, Daniel Veillard wrote: [...] > >>Come to think of it, a 0.4.9 release under MIT would however be > >>preferable for CloudStack 4.0. > > > > Okay, you get it, it'

Re: [libvirt] [PATCH] fix memory leak in virCopyLastError

2012-09-14 Thread Daniel Veillard
On Fri, Sep 14, 2012 at 03:34:29PM +0800, Hu Tao wrote: > On Fri, Sep 14, 2012 at 03:10:13PM +0800, Daniel Veillard wrote: > > On Fri, Sep 14, 2012 at 02:24:15PM +0800, Hu Tao wrote: > > > memset before virResetError will cause memory leak. > > > > > > virRese

Re: [libvirt] [PATCH 6/6] node_memory: Expose the APIs to Python bindings

2012-09-14 Thread Daniel Veillard
* > @@ -6116,6 +6239,8 @@ static PyMethodDef libvirtMethods[] = { > {(char *) "virDomainBlockPeek", libvirt_virDomainBlockPeek, > METH_VARARGS, NULL}, > {(char *) "virDomainMemoryPeek", libvirt_virDomainMemoryPeek, > METH_VARARGS, NULL}, >

Re: [libvirt] [PATCH 5/6] node_memory: Expose the APIs to virsh

2012-09-14 Thread Daniel Veillard
}, > {"nodecpustats", cmdNodeCpuStats, opts_node_cpustats, info_nodecpustats, > 0}, > {"nodeinfo", cmdNodeinfo, NULL, info_nodeinfo, 0}, > {"nodememstats", cmdNodeMemStats, opts_node_memstats, info_nodememstats, > 0}, > diff --git a/tools/

Re: [libvirt] [PATCH 4/6] node_memory: Support get/set memory parameters for drivers

2012-09-14 Thread Daniel Veillard
enUnifiedDomainOpenConsole, /* 0.8.6 */ > .isAlive = xenUnifiedIsAlive, /* 0.9.8 */ > .nodeSuspendForDuration = nodeSuspendForDuration, /* 0.9.8 */ > +.nodeGetMemoryParameters = nodeGetMemoryParameters, /* 0.10.2 */ > +.nodeSetMemoryParameters = nodeSetMemoryParameters, /* 0.10.2 */ > };

Re: [libvirt] [PATCH 3/6] node_memory: Implement the internal APIs

2012-09-14 Thread Daniel Veillard
goto cleanup; > + > +if ((tmp = strchr(buf, '\n'))) > +*tmp = '\0'; > + > +if (virStrToLong_ull(buf, NULL, 10, &full_scans) < 0) { > +virReportError(VIR_ERR_INTERNAL_ERROR, "%s", > +

Re: [libvirt] [PATCH 2/6] node_memory: Wire up the RPC protocol

2012-09-14 Thread Daniel Veillard
esn't cost much to increase that a bit, on the other hand if we hit the limit raising it becomes a deployment problem. I would raise that arbitrarilly a bit higher (32 or 64) to avoid the issue in the long term. > /* UUID. VIR_UUID_BUFLEN definition comes from libvirt.h */ >

Re: [libvirt] [PATCH 1/6] node_memory: Define the APIs to get/set memory parameters

2012-09-14 Thread Daniel Veillard
ValidateSet(conn, params, nparams) < 0) > +goto error; > + > +if (conn->driver->nodeSetMemoryParameters) { > +int ret; > + ret = conn->driver->nodeSetMemoryParameters(conn, params, > + np

Re: [libvirt] [PATCH 0/6 v2] New APIs to get/set node memory parameters

2012-09-14 Thread Daniel Veillard
l/uml_driver.c|2 + > src/xen/xen_driver.c|3 + > tools/virsh-host.c | 116 ++ > tools/virsh.pod |8 + > 21 files changed, 972 insertions(+), 1 deletions(-) > > -- > 1.7.7.3 > > -- > libvir-list maili

Re: [libvirt] [PATCH] fix memory leak in virCopyLastError

2012-09-14 Thread Daniel Veillard
API, we can't justify behaviour just on how it is used internally. NACK, at least the explanation need to be fixed What is the scenario for the leak ? Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engi

Re: [libvirt] [PATCH 1/2] Add support for EOI with APIC

2012-09-13 Thread Daniel Veillard
nBoot) > VIR_ENUM_DECL(virDomainFeature) > +VIR_ENUM_DECL(virDomainApicEoi) > VIR_ENUM_DECL(virDomainLifecycle) > VIR_ENUM_DECL(virDomainLifecycleCrash) > VIR_ENUM_DECL(virDomainPMState) > diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms > index 0494e1f..5

Re: [libvirt] [PATCH] Don't overwrite errors raised by qemuMonitorHMPCommand

2012-09-13 Thread Daniel Veillard
gful in different ways. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ -- libvir-list mailing list libvir-list@redhat.com https://

Re: [libvirt] [PATCH] parallels: implement containers creation

2012-09-13 Thread Daniel Veillard
els-ct-simple.xml > @@ -0,0 +1,27 @@ > + > + 1010 > + 88576506-d611-41c2-b6b6-c9043704a0dd > + > + 262144 > + 262144 > + 8 > + > + exe > + /sbin/init > + > + > + destroy > + destroy > + destroy > + > + > + >

[libvirt] Release of libvirt-java-0.4.9

2012-09-13 Thread Daniel Veillard
as libvirt-java-0.4.9.tar.gz and rpms at ftp://libvirt.org/libvirt/java it's also tagged in git. Content is slim: - Change Licence to MIT and release 0.4.9 (Daniel Veillard) - Update the maven jar coordinates (Daniel Veillard) (but it is broken one month later no mirror seems to export

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-13 Thread Daniel Veillard
On Mon, Sep 10, 2012 at 03:46:43PM +0200, Wido den Hollander wrote: > On 09/10/2012 03:23 PM, Daniel Veillard wrote: > >On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote: > >>On 09/10/2012 02:29 PM, Daniel Veillard wrote: > >>>any idea how to tell

Re: [libvirt] [PATCH 3/4] parallels: fix parallelsDomainDefineXML for existing containers

2012-09-12 Thread Daniel Veillard
On Wed, Sep 12, 2012 at 04:32:52PM +0400, Dmitry Guryanov wrote: > On 120912 16:14:47, Daniel Veillard wrote: > > On Mon, Sep 10, 2012 at 07:22:44PM +0400, Dmitry Guryanov wrote: > > > Fix code, which checks what is changed in virDomainDef structure. > > > It l

Re: [libvirt] Memory free in libvirt JNA

2012-09-12 Thread Daniel Veillard
The virt and res will not increase. > I think we must provide the free functions for all the memory allocated by > libvirt. Okay, can you work on making a patch ? To be honnest I'm very unlikely to have time for this in the short term, Daniel -- Daniel Veillard | libxml Gnome

Re: [libvirt] [PATCH 3/4] parallels: fix parallelsDomainDefineXML for existing containers

2012-09-12 Thread Daniel Veillard
BootDevs != 0 || > +!STREQ_NULLABLE(old->os.init, new->os.init) || > +(new->os.initargv != NULL && new->os.initargv[0] != NULL)) { > + > +virReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", > + _("changing OS parameter

[libvirt] Reminder about proposed schedule for next release

2012-09-12 Thread Daniel Veillard
or 25, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ -- libvir-list mailing list libvir-list@redhat.com https

Re: [libvirt] [PATCH 4/4] parallels: implement containers creation

2012-09-12 Thread Daniel Veillard
That patch has a problem, it doesn't carry the expected code in domain parsing but on the other hand include a gnulib version rebase, please fix and repost, I'm keeping your patch 1, 2 and 3 (amended with the indentation fix in a local git branch), if you can send me a correct 4/4 the

Re: [libvirt] [PATCH 2/4] parallels: handle unlimited cpus on containers

2012-09-12 Thread Daniel Veillard
einfo.cpus; > +def->maxvcpus = def->vcpus; > +} else { > +parallelsParseError(); > +goto cleanup; > +} > +} else { > parallelsParseError(); > goto cleanup; > } > -def->vcpus = x; > -

Re: [libvirt] [PATCH 1/4] parallels: add support of containers to the driver

2012-09-12 Thread Daniel Veillard
in_name) > int ret = -1; > > jobj = parallelsParseOutput(PRLCTL, "list", "-j", "-a", "-i", "-H", > -"--vmtype", "vm", domain_name, NULL); > +"--v

Re: [libvirt] [PATCH 1/2] parallels: fix parallelsDoCmdRun in case of command failure

2012-09-12 Thread Daniel Veillard
ommandFree(cmd); > -if (ret) > +if (ret && outbuf) > VIR_FREE(*outbuf); > return ret; > } > -- > 1.7.1 ACK, the two patches are no-brainer fixes, pushed, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.or

Re: [libvirt] RFC: take two on live update of network configuration

2012-09-11 Thread Daniel Veillard
s ? If not that mean deleting one of the host at random. Is that okay ? I would think yes. Would that be equivalent to virNetworkUpdate(net, VIR_NETWORK_SECTION_IP_DHCP_HOST, 0, NULL, VIR_NETWORK_UPDATE_DELETE | VIR_NETWORK_UPDATE_LIVE

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-10 Thread Daniel Veillard
On Mon, Sep 10, 2012 at 03:00:57PM +0200, Wido den Hollander wrote: > On 09/10/2012 02:29 PM, Daniel Veillard wrote: > >any idea how to tell the main maven site to refetch ? Even though we > >added the checksums, http://search.maven.org still don't show 0.4.8 > > >

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-10 Thread Daniel Veillard
On Thu, Sep 06, 2012 at 04:47:45PM +0200, Wido den Hollander wrote: > On 09/06/2012 10:38 AM, Daniel Veillard wrote: > > it's maven which should fetch data from libvirt.org > >and i though I had updated everything as needed: > > > >http://libvirt.org/

Re: [libvirt] [PATCH v0] qemu: Add sandbox support.

2012-09-07 Thread Daniel Veillard
On Fri, Sep 07, 2012 at 01:29:25PM +0200, Ján Tomko wrote: > On 09/07/12 05:25, Daniel Veillard wrote: > > > > The problem is that libvirt and qemu releases are a priori not > > tied, doing what you suggest would mean to try to guess the actual > > qemu version used b

Re: [libvirt] [PATCH v0] qemu: Add sandbox support.

2012-09-06 Thread Daniel Veillard
On Thu, Sep 06, 2012 at 11:53:06AM -0400, Corey Bryant wrote: > > > On 09/06/2012 02:45 AM, Daniel Veillard wrote: > >On Thu, Sep 06, 2012 at 02:27:19PM +0800, Daniel Veillard wrote: > >>On Mon, Sep 03, 2012 at 02:03:39PM +0200, Ján Tomko wrote: > >>>QEMU (

Re: [libvirt] [PATCH v0] qemu: Add sandbox support.

2012-09-06 Thread Daniel Veillard
think we need a followup patch for the test area, we need to extend tests/qemuhelpdata/ and tests/qemuhelptest.c to detect the new feature, and check it's processed and exposed correctly, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan..

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-06 Thread Daniel Veillard
On Thu, Sep 06, 2012 at 05:08:21PM +0200, Wido den Hollander wrote: > On 09/06/2012 05:04 PM, Daniel Veillard wrote: > >On Thu, Sep 06, 2012 at 04:47:45PM +0200, Wido den Hollander wrote: > >>A tcpdump shows me it is looking for: > >>* libvirt-0.4.8.pom.md5 &

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-06 Thread Daniel Veillard
On Thu, Sep 06, 2012 at 04:47:45PM +0200, Wido den Hollander wrote: > On 09/06/2012 10:38 AM, Daniel Veillard wrote: > I added libvirt.org as a manual repository and while fetching the > dependencies I saw: > > [INFO] snapshot org.apache.cloudstack:xapi:5.6.100-1-SNAPSHOT: > ch

Re: [libvirt] Libvir JNA report SIGSEGV

2012-09-06 Thread Daniel Veillard
ed in some ways, I take patches ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ -- libvir-list mailing list libvir-list@re

Re: [libvirt] Libvir JNA report SIGSEGV

2012-09-06 Thread Daniel Veillard
atch(Exception e){} > } > } Then it's a java bug. The loop doesn't call or use libvirt in any way. If it crashes in the loop it's java crashing to me ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veilla

Re: [libvirt] [libvirt-java] Upload 0.4.8 to central Maven repository

2012-09-06 Thread Daniel Veillard
2/org/libvirt/libvirt/0.4.8/ http://libvirt.org/maven2/org/libvirt/libvirt/maven-metadata-local.xml if you can get an idea why it is not fetching then I will fix, but I have tried to set everything up, and didn't got feedback that it was broken or anything, Daniel -- Daniel Veillard |

Re: [libvirt] Libvir JNA report SIGSEGV

2012-09-06 Thread Daniel Veillard
malloc(sizeof(char) * 1); > virConnectGetVersion(conn, &version); > virConnectGetVersion(conn, &version1); > free(hostname); > sleep(1); > } > return; > } Maybe you need to increase the stack or memory size of you java

Re: [libvirt] [PATCH] build: improved handling of , BSD

2012-09-06 Thread Daniel Veillard
> #ifdef __linux__ > diff --git a/src/util/virnetdevbridge.c b/src/util/virnetdevbridge.c > index a29e4b2..4efb98d 100644 > --- a/src/util/virnetdevbridge.c > +++ b/src/util/virnetdevbridge.c > @@ -31,10 +31,8 @@ > > #include > #include > +#include > &g

Re: [libvirt] [PATCH] Define DYNLIB_NAME on OpenBSD.

2012-09-06 Thread Daniel Veillard
efined(__APPLE__) > # define DYNLIB_NAME "VBoxXPCOMC.dylib" This one is a no-brainer, ACK and pushed, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ htt

Re: [libvirt] Compile libvirt on Solaris

2012-09-06 Thread Daniel Veillard
.h. linux/if_bridge.h and linux/if_tun.h are > required. Obviously these files are missing on Solaris platform. Anybody > can help how to solve this issue? I'm not sure we still have an active maintainer on Solaris, John Levon didn't posted here for ages ... Daniel -- Daniel Ve

Re: [libvirt] [PATCH v0] qemu: Add sandbox support.

2012-09-05 Thread Daniel Veillard
On Thu, Sep 06, 2012 at 02:27:19PM +0800, Daniel Veillard wrote: > On Mon, Sep 03, 2012 at 02:03:39PM +0200, Ján Tomko wrote: > > QEMU (since 1.2-rc0) supports setting up a syscall whitelist through > > libseccomp on linux kernel from 3.5-rc1. This is enabled by specifying > >

Re: [libvirt] [PATCH v0] qemu: Add sandbox support.

2012-09-05 Thread Daniel Veillard
level. In general, if available sandboxing should be turned on unless we hit a bug, so if it work as expected, it should always be on, which to me would be an indication to have that as a global default for the driver (and on by default). If you have to rely on the user explicit set

Re: [libvirt] [PATCH] pci: Save and restore each devices/functions behind the bus

2012-09-05 Thread Daniel Veillard
t; goto out; > } > + > +/* Restore the config space of devices behind the same bus */ > +if (list) { > +for (i = 0; i < list->count; i++) { > +pciDevice *pci = list->devs[i]; > + > +if (pciWrite(pci, 0, config_spaces[i

Re: [libvirt] [PATCH 1/1 V2] Migrate per-port data for Open vSwitch ports during Qemu Live Migration

2012-09-05 Thread Daniel Veillard
ML networking related data to the XML passed along the domain in the migration - one patch using that generic mechanism to carry the OpenVSwitch per port data The first part defining the data extension etc ought to be generic (but probably network related) and the second part specific

Re: [libvirt] [PATCHv6 0/2] Implementation of virConnectListAllDomains() for esx and hyperv

2012-09-05 Thread Daniel Veillard
+) I was hoping to see feedback on actual users, but since we are at v6 and nobody replied, let's push them and see ACK, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ ht

Re: [libvirt] [PATCH] Fix adding ports to OVS bridges without VLAN tags

2012-09-04 Thread Daniel Veillard
On Tue, Sep 04, 2012 at 09:03:22PM +, Kyle Mestery (kmestery) wrote: > On Aug 31, 2012, at 9:09 AM, Daniel Veillard wrote: > > On Fri, Aug 31, 2012 at 01:32:34PM +, Kyle Mestery (kmestery) wrote: > >> On Aug 30, 2012, at 10:23 PM, Daniel Veillard wrote: > >>>

Re: [libvirt] [PATCH 1/2] build: define WITH_INTERFACE for the driver

2012-09-04 Thread Daniel Veillard
letest.c > @@ -79,7 +79,7 @@ mymain(void) > #ifdef WITH_NWFILTER > TEST("nwfilter", NULL); > #endif > -#ifdef WITH_NETCF > +#ifdef WITH_INTERFACE > TEST("interface", NULL); > #endif > #ifdef WITH_QEMU > diff --git a/tools/virsh.c

Re: [libvirt] [PATCH] nwfilter: drop use of awk

2012-09-04 Thread Daniel Veillard
th)) { > + !grep_cmd_path) { > VIR_ERROR(_("essential tools to support ip(6)tables " >"firewalls could not be located")); > VIR_FREE(iptables_cmd_path); > @@ -4333,7 +4328,6 @@ ebiptablesDriverInit(bool privileged) >

Re: [libvirt] Heads up 0.10.1 release on Friday

2012-09-03 Thread Daniel Veillard
On Mon, Sep 03, 2012 at 08:37:13AM +0200, Guido Günther wrote: > On Fri, Aug 31, 2012 at 02:36:07PM +0800, Daniel Veillard wrote: > > On Thu, Aug 30, 2012 at 08:44:57PM +0200, Guido Günther wrote: > > > On Wed, Aug 29, 2012 at 11:19:42PM +0800, Daniel Veillard wrote: > >

Re: [libvirt] [PATCH] qemu: fix remote port searching

2012-08-31 Thread Daniel Veillard
On Fri, Aug 31, 2012 at 04:31:56PM +0200, Martin Kletzander wrote: > On 08/31/2012 04:29 PM, Daniel Veillard wrote: > > On Fri, Aug 31, 2012 at 04:09:39PM +0200, Martin Kletzander wrote: > > Hum, too bad that would have been good in 0.10.1, but after all > > 0.10.2 shoul

Re: [libvirt] [PATCH] qemu: fix remote port searching

2012-08-31 Thread Daniel Veillard
gt;> vm->def->graphics[0]->data.spice.port == -1) { > >> -port = qemuProcessNextFreePort(driver, > >> QEMU_REMOTE_PORT_MIN); > >> +port = qemuProcessNextFreePort(driver, > >> driver->remotePortMin

Re: [libvirt] [PATCH] Fix adding ports to OVS bridges without VLAN tags

2012-08-31 Thread Daniel Veillard
On Fri, Aug 31, 2012 at 01:32:34PM +, Kyle Mestery (kmestery) wrote: > On Aug 30, 2012, at 10:23 PM, Daniel Veillard wrote: > > On Thu, Aug 30, 2012 at 04:38:06PM -0400, Kyle Mestery wrote: [...] > > Still there is something which looks wrong, if we don't have a profileID

[libvirt] Release of libvirt-0.10.1

2012-08-31 Thread Daniel Veillard
mu: Remove redundant parameter from qemuAgentSend (Jiri Denemark) - network: get vlan info for Open vSwitch interfaces from proper source (Laine Stump) - Small cleanup on previous patch (Daniel Veillard) - Fix a crash when using Open vSwitch virtual ports (Kyle Mestery) - qemu: Sort the numa params on

Re: [libvirt] [PATCH] virsh: fixed incorrect timing report

2012-08-31 Thread Daniel Veillard
double diff_ms = (((after.tv_sec - before.tv_sec) * 1000.0) + > >((after.tv_usec - before.tv_usec) / 1000.0)); > > > > vshPrint(ctl, _("\n(Time: %.3f ms)\n\n"), diff_ms); > > ACK Pushed :-) Daniel -- Danie

Re: [libvirt] [PATCH 1/2] conf: Fix parsing of seclabels without model

2012-08-31 Thread Daniel Veillard
> + _("missing security model " > + "when using multiple labels")); > goto error; > } > } > } > + > return 0; > > error: > @@ -8170,7 +8189,7 @@

Re: [libvirt] [PATCH 2/2] conf: Avoid formatting auto-generated DAC labels

2012-08-31 Thread Daniel Veillard
char *baselabel;/* base name of label string */ > int type; /* virDomainSeclabelType */ > bool norelabel; > +bool implicit; /* true if seclabel is auto-added */ > }; > Okay, ACK, the WIP version we both tested, I'm pushing it Daniel

Re: [libvirt] [PATCH V1 1/3] Implement virMacAddrIsBroadcastRaw

2012-08-31 Thread Daniel Veillard
On Fri, Aug 31, 2012 at 06:37:29AM -0400, Stefan Berger wrote: > On 08/30/2012 11:33 PM, Daniel Veillard wrote: > >On Thu, Aug 30, 2012 at 02:29:49PM -0400, Stefan Berger wrote: > >>Index: libvirt-acl/src

Re: [libvirt] [PATCH 1/3] cgroup: read more data from cgroup cpuacct.usage_percpu

2012-08-31 Thread Daniel Veillard
MAX_CPU * size(counter) . A counter should not be more than 20 char (very large already) and MAX_CPU of 4096 doesn't sound crazy though I'm sure we will have bigger. So 100KB is already a maxed out value ... for that test case. Since virFileReadAll will allocate (a bit more) up t

Re: [libvirt] [PATCH 3/3] cgroup: fix libvirtd crash caused by messed memory

2012-08-31 Thread Daniel Veillard
, 10, &cpu_time) < 0) { > @@ -13580,7 +13583,7 @@ qemuDomainGetPercpuStats(virDomainPtr domain, > } > > sum_cpu_pos = sum_cpu_time; > -for (i = 0; i <= max_id; i++) { > + for (i = 0; i <= id; i++) { > if (!map[i]) > cpu_time =

Re: [libvirt] [PATCH] qemu: Don't ignore CPU tuning config if required cgroups are missing

2012-08-30 Thread Daniel Veillard
pported, so claim success */ > > @@ -656,10 +669,8 @@ int qemuSetupCgroupForEmulator(struct qemud_driver > *driver, > } > > for (i = 0; i < VIR_CGROUP_CONTROLLER_LAST; i++) { > -if (!qemuCgroupControllerActive(driver, i)) { > - VIR_WAR

Re: [libvirt] [PATCH] virsh: Document subdriver option of attach-disk

2012-08-30 Thread Daniel Veillard
mode I or I. > I<--config> indicates the changes will affect the next boot of the domain, > for compatibility purposes, I<--persistent> is alias of I<--config>. ACK Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veilla

Re: [libvirt] [PATCH] docs: Fix typo in CPU tuning

2012-08-30 Thread Daniel Veillard
<emulatorpin cpuset="1-3"/%gt; > +<emulatorpin cpuset="1-3"/> > <shares>2048</shares> > <period>100</period> > <quota>-1</quota> ACK unfortunately that's an error the XML parser can't find :

Re: [libvirt] Heads up 0.10.1 release on Friday

2012-08-30 Thread Daniel Veillard
On Thu, Aug 30, 2012 at 08:44:57PM +0200, Guido Günther wrote: > On Wed, Aug 29, 2012 at 11:19:42PM +0800, Daniel Veillard wrote: > > I was a bit afraid of the .0 effect on release name, but we really > > have a number of problem with 0.10.0 that ought to be fixed in a >

Re: [libvirt] [PATCH v2] conf: Fix parsing of seclabels without model

2012-08-30 Thread Daniel Veillard
r: missing security model when using multiple labels FAILED ... thinkpad:~/libvirt/tests -> grep -C2 seclabel qemuxml2argvdata/qemuxml2argv-seclabel-none.xml thinkpad:~/libvirt/tests -> So the new code following your patch is unable to parse the construct I just can't

Re: [libvirt] [PATCH V1 3/3] nwfilter: adapt IP learning for broadcasted DHCP replies

2012-08-30 Thread Daniel Veillard
->ether_dhost) == 0 || > + /* allow Broadcast replies from DHCP server */ > + virMacAddrIsBroadcastRaw(ether_hdr->ether_dhost)) { > /* packets to the VM */ > if (etherType == ETHERTYPE_IP && >

Re: [libvirt] [PATCH V1 2/3] nwfilter: accept broadcasted DHCP replies in DHCP snooping code

2012-08-30 Thread Daniel Veillard
" -p ipv4 --ip-protocol udp" > + " %s" > + " --ip-sport 67 --ip-dport 68" > + " -j ACCEPT") CMD_SEPARATOR > +

Re: [libvirt] [PATCH V1 1/3] Implement virMacAddrIsBroadcastRaw

2012-08-30 Thread Daniel Veillard
drCompare; > virMacAddrFormat; > virMacAddrGenerate; > virMacAddrGetRaw; > +virMacAddrIsBroadcastRaw; > virMacAddrIsMulticast; > virMacAddrIsUnicast; > virMacAddrParse; ACK, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/

Re: [libvirt] [PATCH] Fix adding ports to OVS bridges without VLAN tags

2012-08-30 Thread Daniel Veillard
t;, "set", "Interface", ifname, ifaceid_ex_id, > "--", "set", "Interface", ifname, vmid_ex_id, Okay, ACK, pushed, thanks ! Still there is something which looks wrong, if we don't have a profileID why do we end up

Re: [libvirt] [PATCH] Fix xen driver following changes to make it stateful

2012-08-30 Thread Daniel Veillard
le("xen"); > -# endif > -# ifdef WITH_LIBXL > -virDriverLoadModule("libxl"); > -# endif > #else > # ifdef WITH_NETWORK > networkRegister(); > @@ -416,6 +419,9 @@ static void daemonInitialize(void) > # ifdef WITH_NWFILTER > nwfilterRegiste

Re: [libvirt] [PATCH] security: Re-apply commit ce53382ba28179d3a504b29b4f888b6e130d53f0

2012-08-30 Thread Daniel Veillard
else > +} else { > seclabel->type = VIR_DOMAIN_SECLABEL_NONE; > +seclabel->norelabel = true; > +} > } > > if ((seclabel->type == VIR_DOMAIN_SECLABEL_NONE) && ACK, Daniel -- Daniel Veillard

Re: [libvirt] [PATCH 2/2] vcpupin: Fix returning of arrays from virDomainVcpuPinAdd

2012-08-30 Thread Daniel Veillard
/src/xen/xend_internal.c > index 99def42..984f040 100644 > --- a/src/xen/xend_internal.c > +++ b/src/xen/xend_internal.c > @@ -2303,7 +2303,7 @@ xenDaemonDomainPinVcpu(virDomainPtr domain, unsigned > int vcpu, > } > def->cputune.nvcpupin = 0; >

Re: [libvirt] [PATCH 1/2] qemu: Fix possible infinite loop and segfault on error path.

2012-08-30 Thread Daniel Veillard
} > -VIR_FREE(ret); > virReportOOMError(); > > return NULL; Whoops, ACK ! Please push BTW I'm unclear what our prefered style is for if (ret) { ... VIR_FREE(ret); } vs if (ret) { ... } VIR_FREE(ret); because that pattern appears twice in the rep

Re: [libvirt] [PATCH 0/2] Revert to blocking behavior of qemuAgentCommand

2012-08-30 Thread Daniel Veillard
2 Let's try to get the new API fixed for the next release then Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ -

Re: [libvirt] [PATCHv2] qemu: Clean up security driver initialisation and config file

2012-08-30 Thread Daniel Veillard
> -if (!hasDAC && driver->privileged) { > +if (driver->privileged) { > if (!(mgr = virSecurityManagerNewDAC(QEMU_DRIVER_NAME, > driver->user, > driver->

Re: [libvirt] [PATCHv2] network: get vlan info for Open vSwitch interfaces from proper source

2012-08-30 Thread Daniel Veillard
e, &net->mac, > vm->uuid, NULL, > > virDomainNetGetActualVirtPortProfile(net), > - &net->vlan, > + virDomainNetGetActua

Re: [libvirt] [PATCH] Fix a crash when using Open vSwitch virtual ports

2012-08-30 Thread Daniel Veillard
t;trunk == true) { > > 'cond == true' as a condition is a pointless change, 'cond' is sufficient. Okay, i pushed a tiny cleanup for this, thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com

Re: [libvirt] [PATCH] Fix a crash when using Open vSwitch virtual ports

2012-08-29 Thread Daniel Veillard
"--", "set", "Interface", ifname, vmid_ex_id, > @@ -135,7 +134,8 @@ int virNetDevOpenvswitchAddPort(const char *brname, const > char *ifname, > > ret = 0; > cleanup: > -VIR_FREE(buf); > +if (virBufferUse(&

Re: [libvirt] [PATCH] Fix configuration of QEMU security drivers

2012-08-29 Thread Daniel Veillard
virSecurityManagerPtr primary) > -{ > -virSecurityStackAddPrimary(mgr, primary); > -} > - > -void virSecurityStackSetSecondary(virSecurityManagerPtr mgr, > - virSecurityManagerPtr secondary) > -{ > -virSecurityStackA

Re: [libvirt] [PATCH] qemu: Sort the numa params only when it requires to affect the live config

2012-08-29 Thread Daniel Veillard
> +params[swap_hard_limit_index] = param; > +} > +} else { > +if (hard_limit_index > swap_hard_limit_index) { > +param = params[hard_limit_index]; > +params[hard_limit_index

<    2   3   4   5   6   7   8   9   10   11   >