[libvirt] Schedule for the next release

2012-03-14 Thread Daniel Veillard
a problem, thanks ! 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

Re: [libvirt] [PATCH] python: add virDomainGetCPUStats python binding API

2012-03-14 Thread Daniel Veillard
On Wed, Mar 14, 2012 at 03:10:46AM -0600, Eric Blake wrote: > On 03/14/2012 03:02 AM, Daniel Veillard wrote: > > On Wed, Mar 14, 2012 at 03:06:38PM +0800, Alex Jia wrote: > >> On 03/14/2012 01:57 PM, Guannan Ren wrote: > >>>dom.cPUStats(True, 0) > >> I&#

Re: [libvirt] [PATCH] python: add virDomainGetCPUStats python binding API

2012-03-14 Thread Daniel Veillard
d you fix this in the patch :-) ? 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: [libvirt] [Resending][PATCH v2 2/2] x86: Allow sysinfo to fall back on /proc/cpuinfo if demidecode is absent

2012-03-14 Thread Daniel Veillard
can't be parsed programmatically as a replacement of the original ones 2/ the data may be misunderstood and lead to erroneous decision for example a schedule may start to stack 2 time more load on my machine based on the difference of report. So I'm a bit worried about applying it a

[libvirt] [PATCH] Fix a few typo in translated strings

2012-03-12 Thread Daniel Veillard
76,7 @@ qemuMonitorJSONBlockIoThrottleInfo(virJSONValuePtr result, if ((inserted = virJSONValueObjectGet(temp_dev, "inserted")) == NULL || inserted->type != VIR_JSON_TYPE_OBJECT) { qemuReportError(VIR_ERR_INTERNAL_ERROR, "%s", -

Re: [libvirt] [PATCH 1/9] Add support for event tray moved of removable disks

2012-03-12 Thread Daniel Veillard
On Fri, Mar 09, 2012 at 06:49:20PM +0800, Osier Yang wrote: > On 2012年03月09日 16:55, Daniel Veillard wrote: > >On Mon, Mar 05, 2012 at 06:25:39PM +0800, Osier Yang wrote: > >>This patch introduces a new event type for the QMP event > >>DEVICE_TRAY_MOVED, which occurs w

Re: [libvirt] [PATCH v3] qemu: Support numad

2012-03-12 Thread Daniel Veillard
olean XML element . Codes are refactored > accordingly. > > * v1 overrides the cpuset specified by 2, > v2 doesn't do that, but just silently ignored. > > * xml2xml test is added A relatively long patch, but I went through it and it looks okay, ACK from me

Re: [libvirt] [PATCH RFC 0/8] qemu: Cache results of parsing qemu help output

2012-03-12 Thread Daniel Veillard
> http://downloads.linux.hp.com/~lts/Libvirt/ > > I have installed the patched libvirt on a fedora 16 system and successfully > defined and launched a vm. Testing in progress. I'll place an annotated > test log ont the site above when complete. > > I also need to

Re: [libvirt] [PATCH RFC 3/8] qemu: add qemu emulator cache framework

2012-03-12 Thread Daniel Veillard
t; 0) > +goto error; > +break; > + > +case QEMU_PROBE_CPU_MODELS: > +if (qemuCapsCacheCPUModels(emulator) != 0 || > +virBitmapSetBit(emulator->cachedProbes, QEMU_PROBE_CPU_MODELS) < > 0) > +goto error; > +

Re: [libvirt] [PATCHv2] qemu: support disk filenames with comma

2012-03-12 Thread Daniel Veillard
peString(virBufferPtr buf, const char *format, > const char *str); > diff --git > a/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-sheepdog.args > b/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-sheepdog.args > index 4b3f816..c6089e1 100644 > --- a/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-network-sheepdog.args

Re: [libvirt] [PATCH 4/9] qemu: Do not start with source for removable disks if tray is open

2012-03-09 Thread Daniel Veillard
a-d65c16db1809 > + 219136 > + 219136 > + 1 > + > +hvm > + > + > + > + destroy > + restart > + destroy > + > +/usr/bin/qemu > + > + > + > + > + > + > + > + > + &

Re: [libvirt] [PATCH 5/9] qemu: Update tray status while tray moved event is emitted

2012-03-09 Thread Daniel Veillard
ayOpened; > +if (virDomainSaveStatus(driver->caps, driver->stateDir, vm) < 0) { > +VIR_WARN("Unable to save status on vm %s after tray moved event", > + vm->def->name); > +} > } > > virDomainOb

Re: [libvirt] [PATCH 3/9] conf: Parse and for the tray attribute

2012-03-09 Thread Daniel Veillard
t; @@ -13,7 +13,7 @@ > > > > - > + > > > > diff --git a/tests/vmx2xmldata/vmx2xml-esx-in-the-wild-2.xml > b/tests/vmx2xmldata/vmx2xml-esx-in-the-wild-2.xml > index 2e07963..e98bb58 100644 > --- a/tests/vmx2xmldata/vmx2xml-e

Re: [libvirt] [PATCH 2/9] docs: Add documentation for new attribute tray of disk target

2012-03-09 Thread Daniel Veillard
On Mon, Mar 05, 2012 at 06:25:40PM +0800, Osier Yang wrote: > Example XML: > > > > > > > --- > docs/formatdomain.html.in | 13 + > docs/schemas/domaincommon.rng |8 > 2 files changed, 17 insertions(+), 4 deletions(-) > > diff --git a/

Re: [libvirt] [PATCH 1/9] Add support for event tray moved of removable disks

2012-03-09 Thread Daniel Veillard
remoteDomainBuildEventDiskChange, >sizeof(remote_domain_event_disk_change_msg), >(xdrproc_t)xdr_remote_domain_event_disk_change_msg }, > +{ REMOTE_PROC_DOMAIN_EVENT_TRAY_MOVED, > + remoteDomainBuildEventTrayMoved, > + sizeof(remote_domain_event_tray_moved_msg), > + (xdrp

Re: [libvirt] libvirt_tck autotest wrapper looks good, commited

2012-03-09 Thread Daniel Veillard
it;a=commit;h=a4203c516530a81166c5f9525fbc16d0d9a1bd11 I don't think it was submitted yet to autot...@test.kernel.org, Lucas do you think that's ready ? thanks ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM

Re: [libvirt] [PATCH v2] virsh: Use option alias for outmoded "--persistent"

2012-03-08 Thread Daniel Veillard
On Thu, Mar 08, 2012 at 07:38:57PM +0800, Osier Yang wrote: > Since VIR_DOMAIN_AFFECT_{LIVE,CONFIG,CURRENT} was created, > all new virsh commands use "--config" to represents the > persistent changing. This patch add "--config" option > for the old commands which still use "--persistent", > and "--

[libvirt] Important, switch of server for libvirt.org

2012-02-29 Thread Daniel Veillard
work right (the search is not setup yet and I need to reaactivate various crons, but nearly everything should just work (TM)) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillar

Re: [libvirt] [PATCH] docs: comments wiping supported algorithms

2012-02-29 Thread Daniel Veillard
B: Not all algorithms of wiping are expected to work, it depends on > > concrete B version. > > I'd word this slightly differently: > > B the availability of algorithms may be limited by the version > of the C binary installed on the host. yeah, that's

Re: [libvirt] Need your help with virsh desc

2012-02-29 Thread Daniel Veillard
9.10 http://libvirt.org/git/?p=libvirt.git;a=commit;h=b79ba8382e2205c416d7c4836ac9ee08c72e2c56 use that construct instead but don't ask us to modify description because it is in use already for complex use case and I will definitely not modify that data on input, it would be a terr

Re: [libvirt] [PATCH] docs: comments wiping supported algorithms

2012-02-29 Thread Daniel Veillard
89 100644 > >--- a/tools/virsh.pod > >+++ b/tools/virsh.pod > >@@ -2081,6 +2081,8 @@ B > >pfitzner33 - Roy Pfitzner's 33-random-pass method: random x33. > >random - 1-pass pattern: random. > > > >+B: Not all algorithms of wiping are expected to w

[libvirt] [PATCH] Do not include binaries in EXTRA_DIST

2012-02-28 Thread Daniel Veillard
7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -72,7 +72,6 @@ EXTRA_DIST = \ nwfilterxml2xmlout \ oomtrace.pl \ qemuhelpdata \ - qemumonitortest \ qemuxml2argvdata \ qemuxml2xmloutdata \ qemuxmlnsdata \ -- Daniel Veillard

Re: [libvirt] [Libvirt-announce] Release of libvirt-0.9.10

2012-02-20 Thread Daniel Veillard
On Mon, Feb 20, 2012 at 10:05:02AM -0700, Eric Blake wrote: > On 02/20/2012 03:15 AM, Daniel Veillard wrote: > > On Mon, Feb 20, 2012 at 09:59:23AM +0100, Jiri Denemark wrote: > >> On Mon, Feb 20, 2012 at 11:26:50 +0800, Daniel Veillard wrote: > >>> diff --git a

Re: [libvirt] [Libvirt-announce] Release of libvirt-0.9.10

2012-02-20 Thread Daniel Veillard
On Mon, Feb 20, 2012 at 09:59:23AM +0100, Jiri Denemark wrote: > On Mon, Feb 20, 2012 at 11:26:50 +0800, Daniel Veillard wrote: > > diff --git a/src/util/virfile.h b/src/util/virfile.h > > index ec1e90b..184677c 100644 > > --- a/src/util/virfile.h > > +++ b/src/util/vir

Re: [libvirt] [Libvirt-announce] Release of libvirt-0.9.10

2012-02-19 Thread Daniel Veillard
On Tue, Feb 14, 2012 at 07:59:16PM +1100, Justin Clift wrote: > On 14/02/2012, at 7:31 PM, Daniel Veillard wrote: > > On Tue, Feb 14, 2012 at 07:18:32PM +1100, Justin Clift wrote: > >> On 14/02/2012, at 4:15 PM, Daniel Veillard wrote: > >>> As planned I made the rele

Re: [libvirt] Support for older libxml2 [Was: [PATCH] Fixed URI parsing]

2012-02-15 Thread Daniel Veillard
ot;::" ls32 / [ *5( h16 ":" ) h16 ] "::" h16 / [ *6( h16 ":" ) h16 ] "::" ls32= ( h16 ":" h16 ) / IPv4address ; least-significant 32 bits of address h16

Re: [libvirt] [Libvirt-announce] Release of libvirt-0.9.10

2012-02-14 Thread Daniel Veillard
On Tue, Feb 14, 2012 at 07:18:32PM +1100, Justin Clift wrote: > On 14/02/2012, at 4:15 PM, Daniel Veillard wrote: > > As planned I made the release yesterday, it is tagged in git and > > available at: > > ftp://libvirt.org/libvirt/ > > both as tarball and signed rp

[libvirt] Release of libvirt-0.9.10

2012-02-13 Thread Daniel Veillard
(Daniel Veillard) - build: fix bootstrap on fresh clone (Eric Blake) - tests: Add qemuxml2argv tests for PPC64 pseries machine (Michael Ellerman) - tests: Teach qemuxml2argvtest about spapr-vio addresses (Michael Ellerman) - Disable netcf if building without libvirtd (Daniel P. Berrange) - build: fix

Re: [libvirt] [PATCH] virpidfile: Allow whitespace character on the end of pidfile

2012-02-13 Thread Daniel Veillard
StrToLong_ll(pidstr, &endptr, 10, &pid_value) < 0 || > +!(*endptr == '\0' || c_isspace(*endptr)) || > (pid_t) pid_value != pid_value) { > rc = -1; > goto cleanup; Okay, thanks for chasing this last minute issue, ACK please pus

Re: [libvirt] availability of rc2 for 0.9.10

2012-02-13 Thread Daniel Veillard
On Mon, Feb 13, 2012 at 02:24:05PM +0100, Paolo Bonzini wrote: > On 02/08/2012 07:59 AM, Daniel Veillard wrote: > >ftp://libvirt.org/libvirt/libvirt-0.9.10-rc2.tar.gz > >the rpms are available too and the git tree is tagged. > > > > Hopefully that one is more usabl

Re: [libvirt] availability of rc2 for 0.9.10

2012-02-07 Thread Daniel Veillard
On Mon, Feb 06, 2012 at 03:21:21PM +0800, Daniel Veillard wrote: > We are now entering the freeze for libvirt-0.9.10 > Hopefully all the API changes needed for that version are > already commited to git head. Okay I made an rc2 release with the python bindings fix (thanks !)

Re: [libvirt] Start of freeze for libvirt-0.9.10 and availability of rc1

2012-02-06 Thread Daniel Veillard
Try to do an rpmbuild --rebuild libvirt-0.9.10-rc1.tar.gz to get a list of possible missing build packages. However I don't see how that could possibly affect qemuxml2argvtest ... Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfin

[libvirt] Start of freeze for libvirt-0.9.10 and availability of rc1

2012-02-05 Thread Daniel Veillard
think I will make an release candidate 2 tarball on Wednesday, and I'm hoping for a final release next Monday the 13th. Please give it a try ! thanks in advance, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search e

Re: [libvirt] [PATCH v2 2/2] Added RSS reporting

2012-02-03 Thread Daniel Veillard
tats[i].val); > +if (stats[i].tag == VIR_DOMAIN_MEMORY_STAT_RSS) > +vshPrint (ctl, "rss %llu\n", stats[i].val); > } > > virDomainFree(dom); Looks fine, and works for me, ACK too I'm pushing the 2 patches but please provide one missing item: th

Re: [libvirt] [PATCH v2 1/2] Added RSS information gathering into qemudGetProcessInfo

2012-02-03 Thread Daniel Veillard
goto cleanup; > @@ -3648,6 +3658,7 @@ qemudDomainGetVcpus(virDomainPtr dom, > if (priv->vcpupids != NULL && > qemudGetProcessInfo(&(info[i].cpuTime), > &(info[i].cpu), > +

Re: [libvirt] [PATCH 1/2] Added RSS information gathering into qemudGetProcessInfo

2012-02-03 Thread Daniel Veillard
if (priv->vcpupids != NULL && > qemudGetProcessInfo(&(info[i].cpuTime), > &(info[i].cpu), > +NULL, > vm->pi

Re: [libvirt] [PATCH] lxc: Fix build with AppArmor

2012-02-03 Thread Daniel Veillard
t; endif > endif > EXTRA_DIST += $(LXC_CONTROLLER_SOURCES) ACK, assuming you didn't push yet as a build breaker ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veilla

Re: [libvirt] [PATCHv2 2/2] qemu: increase the timeout before sending SIGKILL to qemu process

2012-02-03 Thread Daniel Veillard
p but there is absolutely no garantee. On linux we could try to be a bit smart and detect completely stuck guests by looking at /proc/$pid/io rchar and wchar if that doesn't move at all in the iterations we can probably consider it dead, if it does well we can be pretty sure that SIGKILL will lo

Re: [libvirt] [PATCHv2 1/2] qemu: new GRACEFUL flag for virDomainDestroy w/ QEMU support

2012-02-03 Thread Daniel Veillard
> /* Stop autodestroy in case guest is restarted */ > qemuProcessAutoDestroyRemove(driver, vm); > diff --git a/src/qemu/qemu_process.h b/src/qemu/qemu_process.h > index 062d79e..4ae6b4b 100644 > --- a/src/qemu/qemu_process.h > +++ b/src/qemu/qemu_process.h > @@ -1,7 +

[libvirt] Small postpone of the 0.9.10 freeze

2012-02-02 Thread Daniel Veillard
ys to try to push features to git before 0.9.10 freeze, 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 ma

Re: [libvirt] [PATCH] vmware: detect when a domain was shut down from the inside

2012-02-02 Thread Daniel Veillard
onn->privateData; > virDomainObjPtr vm; > +int state; > int ret = -1; > > vmwareDriverLock(driver); > @@ -914,7 +969,10 @@ vmwareDomainGetInfo(virDomainPtr dom, virDomainInfoPtr > info) > goto cleanup; > } > > -info-

Re: [libvirt] [PATCHv3 2/4] API: Add api to set and get domain metadata

2012-02-02 Thread Daniel Veillard
metadata; > +remote_string key; > +remote_string uri; > +u_int flags; > +}; > +struct remote_domain_get_metadata_args { > +remote_nonnull_domain dom; > +int type

Re: [libvirt] [PATCHv3 1/4] xml: Add element to allow short description of domains

2012-02-02 Thread Daniel Veillard
41-864e-0949-8cc7d3bae9f8 > + 65536 > + 65536 > + A short description of this domain > + > + A longer explanation that this domain is a test domain > + for validating domain schemas. > + > + 1 > + > +hvm > + > + > + > + >

Re: [libvirt] Schedule for libvirt-0.9.10 release

2012-01-28 Thread Daniel Veillard
On Wed, Jan 18, 2012 at 10:02:48PM +0800, Daniel Veillard wrote: [...] > Second I would really like to keep the monthly shedule, and have the > release done by February 6 or earlier, so this would mean entering the > 0.9.10 freeze on Monday 30, i.e. in a bit less than two weeks.

Re: [libvirt] [PATCH][RFC] adding a title to the domain description informations

2012-01-24 Thread Daniel Veillard
On Tue, Jan 24, 2012 at 08:06:31AM -0700, Eric Blake wrote: > On 01/24/2012 07:18 AM, Daniel Veillard wrote: > > The idea is that currently we have only the domain name usable as > > a description for the domain. It is not really a good human readable > > identifier, as the k

[libvirt] [PATCH][RFC] adding a title to the domain description informations

2012-01-24 Thread Daniel Veillard
1,7 @@ struct _virDomainDef { unsigned char uuid[VIR_UUID_BUFLEN]; char *name; char *description; +char *title; struct { unsigned int weight; -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engi

[libvirt] Schedule for libvirt-0.9.10 release

2012-01-18 Thread Daniel Veillard
n entering the 0.9.10 freeze on Monday 30, i.e. in a bit less than two weeks. I hope this is okay, Daniel [1] actually the addition of fine grained access control would be a good reason for such a version bump -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsof

Re: [libvirt] [PATCH] Remove dmidecode dependancy outside PC arches

2012-01-17 Thread Daniel Veillard
On Tue, Jan 17, 2012 at 04:50:03PM +0100, Jiri Denemark wrote: > On Tue, Jan 17, 2012 at 23:45:10 +0800, Daniel Veillard wrote: > > The new dependancy is only available on ix86, x86_64 and ia64 > > > > diff --git a/libvirt.spec.in b/libvirt.spec.in > > index d06c06

[libvirt] [PATCH] Remove dmidecode dependancy outside PC arches

2012-01-17 Thread Daniel Veillard
i686 x86_64 ia64 # For virConnectGetSysinfo Requires: dmidecode +%endif # For service management %if %{with_systemd} Requires(post): systemd-units -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search engine http://rpmfind.net

Re: [libvirt] [PATCH v2] docs: Add missed RNG schema for interface

2012-01-17 Thread Daniel Veillard
t; diff --git a/tests/qemuxml2argvdata/qemuxml2argv-net-server.xml > b/tests/qemuxml2argvdata/qemuxml2argv-net-server.xml > new file mode 100644 > index 000..eca440d > --- /dev/null > +++ b/tests/qemuxml2argvdata/qemuxml2argv-net-server.xml > @@ -0,0 +1,29 @@ > + >

[libvirt] Release of libvirt-0.9.9

2012-01-06 Thread Daniel Veillard
: Document spurious wakeups on virCondWait (Michal Privoznik) Portability: - build: fix mingw virCommand build (Eric Blake) - tests: avoid test failure on rawhide gnutls (Eric Blake) - build: drop check for ANSI compiler (Eric Blake) - Fix build on s390(x) and other stange arches (Daniel Veill

Re: [libvirt] [PATCH] tests: work around pdwtags 1.9 failure

2012-01-06 Thread Daniel Veillard
exit $$st; \ > + < $(@F)-t1 > $(@F)-t3; \ > + case $$? in 8) rm -f $(@F)-t?; exit 0;; 0) ;; *) exit 1;; esac;\ > + diff -u $(@F)-t3 $@; st=$$?; rm -f $(@F)-t?; exit $$st; \ > + fi;

Re: [libvirt] In freeze for libvirt-0.9.9 and availability of rc2

2012-01-05 Thread Daniel Veillard
On Thu, Jan 05, 2012 at 09:11:18PM +0100, Peter Krempa wrote: > Dňa 5.1.2012 16:37, Daniel Veillard wrote / napísal(a): > >On Fri, Dec 30, 2011 at 02:30:43PM +0800, Daniel Veillard wrote: > >I have made a release candidate 2 tarball (and associated rpms) at > > ftp:

[libvirt] In freeze for libvirt-0.9.9 and availability of rc2

2012-01-05 Thread Daniel Veillard
On Fri, Dec 30, 2011 at 02:30:43PM +0800, Daniel Veillard wrote: > We are now entering the freeze for libvirt-0.9.9 . > We hadn't yet reviewed Taku Izumi second version of his patchset > maybe we can pull his next version in rc2. Sorry I made rc2 earlier today and Taku Izumi pa

Re: [libvirt] [PATCH] seclabel: fix regression in libvirtd restart

2012-01-05 Thread Daniel Veillard
| > +if (type == VIR_DOMAIN_SECLABEL_STATIC || > !(flags & VIR_DOMAIN_XML_INACTIVE) || > (default_seclabel && !def->norelabel)) { > p = virXPathStringLimit("string(./label[1])", > VIR_SECURITY_LABEL_BUFL

Re: [libvirt] [PATCH] Support Xen domctl v8

2012-01-05 Thread Daniel Veillard
didn't actually test it, but also didn't > spot anything obviously wrong, so: > > ACK. > > I think it is low-enough risk to be okay if you push before 0.9.9. Agreed :-) thanks to both of you :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http:

Re: [libvirt] [PATCH v5] Implement DNS SRV record into the bridge driver

2012-01-02 Thread Daniel Veillard
december but I forgot it. Since it's relatively contained, I'm pushing it in spite of the freeze, we already delayed it over one release. Blame me if it breaks something it was my fault I forgot the patch ! ACK and pushed, thanks ! Daniel -- Daniel Veillard | libxml Gnome

[libvirt] Start of freeze for libvirt-0.9.9 and availability of rc1

2011-12-29 Thread Daniel Veillard
e git tree is tagged. Note that this will fail to puild outside of PC and PPC arches, but the fix is in git now. I think I will make an rc2 on Tues or Wed and then try to make the release around Friday next week if things looks good. Please give it a try ! thanks in advance, Daniel -- D

[libvirt] [PATCH] Fix build on s390(x) and other stange arches

2011-12-29 Thread Daniel Veillard
ve parsed clock speed out of /proc/cpuinfo. Get the core, socket -- 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 li

Re: [libvirt] [PATCHv2 0/6] Expose per-disk label overrides.

2011-12-29 Thread Daniel Veillard
s testing can really validate the approach. That's why I'm inclined to push this as part of the release candidate to try to augment testing. So ACK, I'm pushing this, I just had to slightly rebase patch #4 because the context in one of the documentation example XML changed slightl

Re: [libvirt] [PATCH] Require avahi as an rpm dependancy

2011-12-29 Thread Daniel Veillard
On Thu, Dec 29, 2011 at 09:56:02PM +0800, Daniel Veillard wrote: > On Thu, Dec 29, 2011 at 09:37:42PM +0800, Osier Yang wrote: > > On 2011年12月29日 21:19, Daniel Veillard wrote: > > >As seen in https://bugzilla.redhat.com/show_bug.cgi?id=746111 > > > > > >I

Re: [libvirt] [PATCH] Require avahi as an rpm dependancy

2011-12-29 Thread Daniel Veillard
On Thu, Dec 29, 2011 at 09:37:42PM +0800, Osier Yang wrote: > On 2011年12月29日 21:19, Daniel Veillard wrote: > >As seen in https://bugzilla.redhat.com/show_bug.cgi?id=746111 > > > >If compiled with the daemon and avahi support, then it's better > >to require avahi

[libvirt] [PATCH] Require avahi as an rpm dependancy

2011-12-29 Thread Daniel Veillard
+++ b/libvirt.spec.in @@ -272,6 +272,9 @@ Requires: %{name}-client = %{version}-%{release} Requires: module-init-tools # for /sbin/ip & /sbin/tc Requires: iproute +%if ! %{with_avahi} +Requires: avahi +%endif %endif %if %{with_network} Requires: dnsmasq >= 2.41 -- Daniel Veillard

Re: [libvirt] [PATCH] remove a static limit on max domains in python bindings

2011-12-29 Thread Daniel Veillard
On Thu, Dec 29, 2011 at 12:36:14PM +0800, Osier Yang wrote: > On 2011年12月29日 09:56, Daniel Veillard wrote: > >* python/libvirt-override.c: remove the predefined array in the > > virConnectListDomainsID binding and call virConnectNumOfDomains > > to do a proper allocatio

Re: [libvirt] [PATCH] qemu: fix inf-loop in blkio parameters

2011-12-28 Thread Daniel Veillard
devices[i].path); > + devices[j].path); > break; > } > } > -if (i != ndevices) { > +if (j != ndevices) { > ret = -1; &g

[libvirt] [PATCH] remove a static limit on max domains in python bindings

2011-12-28 Thread Daniel Veillard
intWrap(ids[i])); + +if (ids) { + for (i = 0;i < c_retval;i++) { + PyList_SetItem(py_retval, i, libvirt_intWrap(ids[i])); + } + free(ids); } + return(py_retval); } Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan

[libvirt] Release schedule for libvirt 0.9.9

2011-12-27 Thread Daniel Veillard
-) 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://www.redhat.com/mailma

Re: [libvirt] [PATCHv2] daemon: clean up daemonization

2011-12-27 Thread Daniel Veillard
_("%s: error: %s. Check /var/log/messages or run > without " > - "--daemon for more info.\n"), argv0, > +_("%s: error: %s. Check /var/log/messages or run " > + "without --daemon for mor

Re: [libvirt] [PATCH v5] Implement DNS SRV record into the bridge driver

2011-12-19 Thread Daniel Veillard
;10' weight='10' /> > + > + > + > + > + /> > + /> > + > + > + > + > + > + > + > + > + > + > + > diff --git a/tests/networkxml2argvtest.c b/tests/networkxml2argvtest.c > index 4a11d6f..2dd9b7f 100644 > --- a/tests/networkxml2argvtest.c > +++ b/tests/networkxml2argvtest.

[libvirt] Release of libvirt-0.9.8

2011-12-08 Thread Daniel Veillard
entation or reporting issues ! Let's not forget the translation teams at transifex [1] with special kudos for ukainian who have 100% complete localization if I believe transifex statistics :-) Daniel [1] https://www.transifex.net/projects/p/libvirt/resource/strings/ -- Daniel Veillard |

Re: [libvirt] [PATCHv3 2/2] spec: don't use chkconfig --list

2011-12-07 Thread Daniel Veillard
On Wed, Dec 07, 2011 at 07:58:40PM -0700, Eric Blake wrote: > On 12/07/2011 07:53 PM, Daniel Veillard wrote: > >>>> # We check this by looking to see if the daemon is already installed > >>>> -/sbin/chkconfig --list libvirtd 1>/dev/null 2>

Re: [libvirt] [PATCH 1/2] maint: use common xml quoting style

2011-12-07 Thread Daniel Veillard
Also if someone uses an XML editor on one of our fragment it's very likely that the ' will be turned into " because the distinction is not part of the XML infoset (i.e. the amount of data an XML parser should report to the application) and the tool will serialize back using h

Re: [libvirt] [PATCHv3 2/2] spec: don't use chkconfig --list

2011-12-07 Thread Daniel Veillard
d this has to be '/bin/chkconfig > libvirtd', not '/sbin/chkconfig'. > > > > > ACK. > > I'll push the corrected version. Humm ... here on Fedora 14 it's definitely /sbin/chkconfig there is no /bin/chkconfig, let's wait after the

[libvirt] In freeze for libvirt-0.9.8 and availability of rc2

2011-12-04 Thread Daniel Veillard
On Fri, Dec 02, 2011 at 02:30:35PM +0100, Peter Krempa wrote: > On 12/02/2011 01:42 AM, Daniel Veillard wrote: > >On Thu, Dec 01, 2011 at 02:11:24PM -0700, Eric Blake wrote: > >>But that means we really are committing to an rc2. > > > > Definitely. For example ther

Re: [libvirt] [Libvirt-announce] Start of freeze for libvirt-0.9.8 and availability of rc1

2011-12-01 Thread Daniel Veillard
On Thu, Dec 01, 2011 at 02:11:24PM -0700, Eric Blake wrote: > On 11/30/2011 10:48 PM, Daniel Veillard wrote: > > We are now entering the freeze for libvirt-0.9.8 . > > For portability sake I think adding more support for PPC machines > > should still be allowed for a few

Re: [libvirt] [PATCH] Fix build for platforms lacking struct ifreq

2011-12-01 Thread Daniel Veillard
if the config does not match, or > interface does not exist, -1 on error > */ > -#ifdef __linux__ > +#if defined(HAVE_STRUCT_IFREQ) > int virNetDevValidateConfig(const char *ifname, > const unsigned char *macaddr, int ifindex) > { > @@ -924,7 +924,7 @@ int virNe

[libvirt] Start of freeze for libvirt-0.9.8 and availability of rc1

2011-11-30 Thread Daniel Veillard
ftp://libvirt.org/libvirt/libvirt-0.9.8-rc1.tar.gz and the git tree is tagged. I think I will make an rc2 on Mon or Thu and then try to make the release around Thursday next week if things looks good. Please give it a try ! thanks in advance, Daniel -- Daniel Veillard | libxml Gnome XML

Re: [libvirt] [PATCH] spec: mark directories in /var/run as ghosts

2011-11-30 Thread Daniel Veillard
irt/network/ > +%ghost %dir %{_localstatedir}/run/libvirt/network/ > %dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/ > %dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/dnsmasq/ > %endif ACK, and pushed for 0.9.8-rc1, thanks ! Daniel -- Danie

Re: [libvirt] [PATCH] virsh: Fix possible deadlock when virsh is about to exit

2011-11-30 Thread Daniel Veillard
ds to add a timeout that will make next poll return > > immediately without blocking. > > --- > > tools/virsh.c | 39 +-- > > 1 files changed, 33 insertions(+), 6 deletions(-) > > ACK. ACK too, and pushed ! thanks ! Da

Re: [libvirt] 'make check' hangs

2011-11-30 Thread Daniel Veillard
first time too, on F14, I was blaming my system as I got an oops earlier, but apparently that's not it ! I got it again, and it's the virsh-synopsis test which fails to finish. I had to try 4 time before reproducing it... Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit

Re: [libvirt] 'make check' hangs

2011-11-30 Thread Daniel Veillard
k event loop */ > +int timer = virEventAddTimeout(-1, NULL, NULL, NULL); > +if (timer != -1) > +virEventRemoveTimeout(timer); > + > +virThreadJoin(&ctl->eventLoop); > +ctl->eventLoopStarted = false; >

Re: [libvirt] [PATCH 2/3] Make logging async signal safe wrt time stamp generation

2011-11-30 Thread Daniel Veillard
to cleanup; > > -if (!(timestamp = virLogFormatTimestamp())) > -goto cleanup; > +if (virTimeStringNowRaw(timestamp) < 0) > +timestamp[0] = '\0'; > > /* > * Log based on defaults, first store in the history buffer, > @@ -7

Re: [libvirt] [PATCH 3/3] Remove time APIs from src/util/util.h

2011-11-30 Thread Daniel Veillard
gettimeofday(&cur_time, NULL); > -localtime_r(&cur_time.tv_sec, &time_info); > - > - strftime(timestr, sizeof(timestr), "%Y-%m-%d %H:%M:%S", &time_info); > - > -if (virAsprintf(×tamp, "%s.%03d", > -timestr, (int) cur_ti

Re: [libvirt] [PATCH 1/3] Add internal APIs for dealing with time

2011-11-30 Thread Daniel Veillard
e there is also a version without the Raw postfix > which raises a full libvirt error. These versions are not async > signal safe ACK, I didn't spot anything :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind

Re: [libvirt] [PATCH 00/14] Cleanup node suspend code

2011-11-30 Thread Daniel Veillard
alues > - Patch 3 changes the capabilities XML schema > - Patch 11 ensures we don't probe suspend info unles we need it > - Patch 14 fixes a bug > > > Obviously due to 1 & 3 we need to do this before the next release ACK to the serie ! Daniel -- Daniel Veilla

Re: [libvirt] All virsh commands testing failed with git head

2011-11-29 Thread Daniel Veillard
On Tue, Nov 29, 2011 at 06:59:46PM +0800, Osier Yang wrote: > On 2011年11月29日 18:55, Daniel Veillard wrote: > >On Tue, Nov 29, 2011 at 06:46:26PM +0800, Osier Yang wrote: > >>Part of the error log is pasted, looks like it's caused by > >>the calling of vir

Re: [libvirt] [PATCH] examples: Correct the example command to use testnode.xml

2011-11-29 Thread Daniel Veillard
to/this/dir/testnode.xml on the absolute server, reached with test protocol from an URI perspective, so we need at least and extra / because "" server means local host: test:///absolute/path/to/this/dir/testnode.xml Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmls

Re: [libvirt] All virsh commands testing failed with git head

2011-11-29 Thread Daniel Veillard
t it, but I didn't expected failures like this 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 li

Re: [libvirt] [ PATCH v5 0/4] API to invoke S3/S4 on a host and also resume from within libvirt

2011-11-29 Thread Daniel Veillard
lock being initialized. So my changes certainly need reviews, but the first version is commited now. Thanks, but in the future, please run "make check" and "make syntax-check" on all commits before posting them to the list, Daniel -- Daniel Veillard | libxml Gnome X

Re: [libvirt] [PATCH] Add 'Hybrid-Suspend' power management discovery for the host

2011-11-28 Thread Daniel Veillard
8..eda60d2 100644 > --- a/src/util/util.h > +++ b/src/util/util.h > @@ -264,14 +264,16 @@ void virTypedParameterArrayClear(virTypedParameterPtr > params, int nparams); > /* Power Management Capabilities of the host system */ > > enum virHostPMCapability { > -VIR_HO

Re: [libvirt] [PATCH 2/5] Support CPU placement in LXC driver

2011-11-28 Thread Daniel Veillard
pumap); > + > +return 0; > +} > + > + > /** > * lxcSetContainerResources > * @def: pointer to virtual machine structure > @@ -347,6 +407,9 @@ static int lxcSetContainerResources(virDomainDefPtr def) > {'c', LXC_DEV_MAJ_TTY, LXC_DEV_MIN_

Re: [libvirt] ACLs for libvirt

2011-11-24 Thread Daniel Veillard
rloaded by allowing override. > * virDomainAttachDevice API - need to todo different checks for the >different types of device being attached & potentially multiple >checks if the attached device references other host resources. >eg a PCI device attach with man

Re: [libvirt] [PATCH] conf: Don't drop console definition on domain restart

2011-11-24 Thread Daniel Veillard
no_memory; > - chr->deviceType = VIR_DOMAIN_CHR_DEVICE_TYPE_CONSOLE; > -chr->targetType = VIR_DOMAIN_CHR_CONSOLE_TARGET_TYPE_SERIAL; > +if (create_stub) { > +/* And create a stub placeholder */ > +if (VIR_ALLOC(

Re: [libvirt] [PATCH] storage: Skip socket and fifo on pool-start

2011-11-24 Thread Daniel Veillard
return -1; > } > > -if (fstat(fd, &sb) < 0) { > -virReportSystemError(errno, > - _("cannot stat file '%s'"), > - path); > -VIR_FORCE_CLOSE(fd); > -return -1; > -}

Re: [libvirt] [PATCH 5/5] Refactor initial LXC mem tune / device ACL code

2011-11-24 Thread Daniel Veillard
ot;, > + _("Unable to get cgroup for driver")); > +return rc; > +} > + > +rc = virCgroupForDomain(driver, def->name, &cgroup, 1); > +if (rc != 0) { > +virReportSystemError(-rc, > + _

Re: [libvirt] [PATCH] build: Properly generate and check virkeepaliveprotocol-structs

2011-11-24 Thread Daniel Veillard
ww.redhat.com/archives/libvir-list/2011-November/msg01052.html > > They would still be optional for tarball builds, of course, but having > them required when doing autogen.sh on libvirt.git may help more > developers catch problems up front. Wasn't the problem that cppi isn't u

Re: [libvirt] [PATCH 4/5] Add support for blkio tuning of LXC containers

2011-11-24 Thread Daniel Veillard
D_PARAM_UINT; > + > + switch (i) { > +case 0: /* fill blkio weight here */ > +if (virStrcpyStatic(param->field, VIR_DOMAIN_BLKIO_WEIGHT) > == NULL) { > +lxcError(VIR_ERR_INTERNAL_ERROR, > +

Re: [libvirt] [PATCH 3/5] Add support for CPU quota/period to LXC driver

2011-11-24 Thread Daniel Veillard
"%s", _("cgroup CPU controller is not mounted")); > goto cleanup; > } > > -if (virCgroupForDomain(driver->cgroup, vm->def->name, &group, 0) != 0) > +if (virCgroupForDomain(driver->cgroup, vm->def->name, &group

Re: [libvirt] [PATCH 1/5] Support NUMA memory placement for LXC containers

2011-11-24 Thread Daniel Veillard
ic int lxcSetContainerNUMAPolicy(virDomainDefPtr def) > +{ > +if (def->numatune.memory.nodemask) { > +lxcError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", > + _("NUMA policy is not available on this platform")); > +return -1; > +

Re: [libvirt] [PATCHv6 7/7] Add tests for blkdeviotune

2011-11-24 Thread Daniel Veillard
+ b/tests/qemuxml2xmltest.c > @@ -191,6 +191,7 @@ mymain(void) > DO_TEST("event_idx"); > > DO_TEST("usb-redir"); > +DO_TEST("blkdeviotune"); > > /* These tests generate different XML */ > DO_TEST_DIFFERENT("balloon-d

<    5   6   7   8   9   10   11   12   13   14   >