[libvirt] Change of server

2014-06-26 Thread Daniel Veillard
I went ahead and switched earlier today, the new IP for libvirt.org is 91.121.203.120 , seems to me that all services are functionning as before, I also migrated the various cron. The DNS TTL should expire within 2 hours and everybody should see the new box then. it has twice the memory and twice

Re: [libvirt] [PATCH] block/sheepdog: rename management program from collie to dog

2014-06-26 Thread Hitoshi Mitake
Hi Eric, Daniel, thanks for your reply and sorry for my late reply. On Tue, Jun 24, 2014 at 1:43 AM, Eric Blake wrote: > On 06/23/2014 12:20 AM, Hitoshi Mitake wrote: >> The management program of latest sheepdog is named as "dog", "collie" >> is obsolete. This patch updates the name in the config

Re: [libvirt] securityselinuxlabeltest test fails on v1.2.5

2014-06-26 Thread Jincheng Miao
On 06/26/2014 11:38 PM, Scott Sullivan wrote: On 06/26/2014 10:09 AM, Ján Tomko wrote: On 06/26/2014 03:56 PM, Scott Sullivan wrote: 1) Labelling "disks" ... internal error: File /home/rpmbuild/packages/libvirt/tests/securityselinuxlabeldata/pl

Re: [libvirt] [PATCH v1.2.[1-5]-maint] qemu: blockcopy: Don't remove existing disk mirror info

2014-06-26 Thread Eric Blake
On 06/26/2014 07:56 AM, Peter Krempa wrote: > On 06/26/14 15:51, Eric Blake wrote: >> From: Peter Krempa >> >> When creating a new disk mirror the new struct is stored in a separate >> variable until everything went well. The removed hunk would actually >> remove existing mirror information for ex

Re: [libvirt] securityselinuxlabeltest test fails on v1.2.5

2014-06-26 Thread Eric Blake
On 06/26/2014 09:38 AM, Scott Sullivan wrote: > On 06/26/2014 10:09 AM, Ján Tomko wrote: >> On 06/26/2014 03:56 PM, Scott Sullivan wrote: >>> 1) Labelling >>> "disks" ... >>> internal error: File >>> /home/rpmbuild/packages/libvirt/tests/securitysel

Re: [libvirt] [PATCH] Add test for type none model dac seclabel

2014-06-26 Thread Eric Blake
On 06/10/2014 02:19 AM, Ján Tomko wrote: > --- > .../qemuxml2argv-seclabel-dac-none.args| 4 > .../qemuxml2argv-seclabel-dac-none.xml | 28 > ++ > tests/qemuxml2argvtest.c | 1 + > tests/qemuxml2xmltest.c

Re: [libvirt] [PATCH] test: add user_xattr check for securityselinuxlabeltest

2014-06-26 Thread Eric Blake
On 06/09/2014 05:36 AM, Jincheng Miao wrote: > libvirt unit test used setxattr with "user.libvirt.selinux" name to > emulate setfilecon of selinux. But for some old kernel filesystem > (like 2.6.32-431.el6.x86_64), if the filesystem is not mounted with > user_xattr flag, the setxattr with "user.lib

Re: [libvirt] [PATCH V2] libxl: detect support for save and restore

2014-06-26 Thread Jim Fehlig
Eric Blake wrote: > On 06/25/2014 06:09 PM, Jim Fehlig wrote: > >> libxl does not support save, restore, or migrate on all architectures, >> notably ARM. Detect whether libxl supports these operations using >> LIBXL_HAVE_NO_SUSPEND_RESUME. If not supported, drop advertisement of >> . >> >> Fou

Re: [libvirt] [for 1.2.6] Redundancy of virNetworkGetDHCPLeases and virNetworkGetDHCPLeasesForMAC

2014-06-26 Thread Eric Blake
On 06/26/2014 07:36 AM, Daniel P. Berrange wrote: >>> Both of those return a list of lease structures and the only difference >>> is the presence of the @mac argument. >>> >>> We could unify those two APIs into one with the following signature: >>> >>> int >>> virNetworkGetDHCPLeases(virNetworkPtr

Re: [libvirt] securityselinuxlabeltest test fails on v1.2.5

2014-06-26 Thread Scott Sullivan
On 06/26/2014 10:09 AM, Ján Tomko wrote: On 06/26/2014 03:56 PM, Scott Sullivan wrote: 1) Labelling "disks" ... internal error: File /home/rpmbuild/packages/libvirt/tests/securityselinuxlabeldata/plain.raw context 'EOPNOTSUPP' did not match epect

Re: [libvirt] [PATCH] net: merge virNetworkGetDHCPLeases and virNetworkGetDHCPLeasesForMAC

2014-06-26 Thread Ján Tomko
On 06/26/2014 04:51 PM, Peter Krempa wrote: > Instead of maintaining two very similar APIs, add the "@mac" parameter > to virNetworkGetDHCPLeases and kill virNetworkGetDHCPLeasesForMAC. Both > of those functions would return data the same way, so making @mac an > optional filter simplifies a lot of

Re: [libvirt] [PATCH] qemu: fix guestfwd chardev option back how it was

2014-06-26 Thread Martin Kletzander
On Thu, Jun 26, 2014 at 04:48:23PM +0200, Ján Tomko wrote: On 06/26/2014 04:36 PM, Martin Kletzander wrote: Since commit d86c876a66e320b55220d00113027c9ad6199cff we are using guestfwd=tcp:IP:PORT,chardev=ID for guestfwd specification, however, that has not changed in qemu, so guestfwd does not w

[libvirt] [PATCH] net: merge virNetworkGetDHCPLeases and virNetworkGetDHCPLeasesForMAC

2014-06-26 Thread Peter Krempa
Instead of maintaining two very similar APIs, add the "@mac" parameter to virNetworkGetDHCPLeases and kill virNetworkGetDHCPLeasesForMAC. Both of those functions would return data the same way, so making @mac an optional filter simplifies a lot of stuff. --- daemon/remote.c | 69 +

Re: [libvirt] [PATCH] qemu: fix guestfwd chardev option back how it was

2014-06-26 Thread Ján Tomko
On 06/26/2014 04:36 PM, Martin Kletzander wrote: > Since commit d86c876a66e320b55220d00113027c9ad6199cff we are using > guestfwd=tcp:IP:PORT,chardev=ID for guestfwd specification, however, > that has not changed in qemu, so guestfwd does not work since. > > Apart from that, guestfwd is not working

[libvirt] [PATCH] qemu: fix guestfwd chardev option back how it was

2014-06-26 Thread Martin Kletzander
Since commit d86c876a66e320b55220d00113027c9ad6199cff we are using guestfwd=tcp:IP:PORT,chardev=ID for guestfwd specification, however, that has not changed in qemu, so guestfwd does not work since. Apart from that, guestfwd is not working with older qemu that doesn't have QEMU_CAPS_DEVICE. Both

Re: [libvirt] securityselinuxlabeltest test fails on v1.2.5

2014-06-26 Thread Ján Tomko
On 06/26/2014 03:56 PM, Scott Sullivan wrote: > 1) Labelling "disks" ... > internal error: File > /home/rpmbuild/packages/libvirt/tests/securityselinuxlabeldata/plain.raw > context 'EOPNOTSUPP' did not match epected > 'system_u:object_r:svirt_image_t

Re: [libvirt] [PATCH] docs: publish correct enum values

2014-06-26 Thread Eric Blake
On 06/25/2014 05:23 PM, Eric Blake wrote: > On 06/25/2014 03:09 PM, Eric Blake wrote: >> We publish libvirt-api.xml for others to use, and in fact, the >> libvirt-python bindings use it to generate enum values. However, >> we had an off-by-one bug that any enum that relied on C's rules >> for impl

Re: [libvirt] [PATCH v1.2.[1-5]-maint] qemu: blockcopy: Don't remove existing disk mirror info

2014-06-26 Thread Peter Krempa
On 06/26/14 15:51, Eric Blake wrote: > From: Peter Krempa > > When creating a new disk mirror the new struct is stored in a separate > variable until everything went well. The removed hunk would actually > remove existing mirror information for example when the api would be run > if a mirror stil

[libvirt] [PATCHv4 2/4]vbox: Implement vboxUniformedAPI in vbox_tmpl.c

2014-06-26 Thread Taowei
Implement vboxUniformedAPI for each vbox API version. Some common code and definitions are moved to vbox_common.c and vbox_uniformed_api.h. --- src/vbox/vbox_tmpl.c | 419 +- 1 file changed, 245 insertions(+), 174 deletions(-) diff --git a/src/vbo

Re: [libvirt] securityselinuxlabeltest test fails on v1.2.5

2014-06-26 Thread Scott Sullivan
On 06/25/2014 01:18 PM, Eric Blake wrote: On 06/25/2014 11:08 AM, Scott Sullivan wrote: I am trying to build v1.2.5-maint, however I have one test failing causing the build to fail: TEST: securityselinuxlabeltest !!!. 4 FAIL Can you rerun this to

[libvirt] [PATCH v1.2.[1-5]-maint] qemu: blockcopy: Don't remove existing disk mirror info

2014-06-26 Thread Eric Blake
From: Peter Krempa When creating a new disk mirror the new struct is stored in a separate variable until everything went well. The removed hunk would actually remove existing mirror information for example when the api would be run if a mirror still exists. (cherry picked from commit 02b364e186d

[libvirt] [PATCHv4 1/4]vbox: Add definitions for vboxUniformedAPI

2014-06-26 Thread Taowei
Introducing a new file vbox_uniformed_api to define the uniformed API and some other common types used by the API. All symbols defined in this file are treated the same in vbox_common.c as well as vbox_tmpl.c. Other specified defines will be put in vbox_CAPI_v*.h , vbox_tmpl.c(version specified) an

[libvirt] [PATCHv4 0/4] vbox: Rewrite vbox driver.

2014-06-26 Thread Taowei
Use vboxUniformedAPI to rewrite vbox driver. vboxInitialize and vboxDomainSave are rewrited in this way. Taowei (4): add definitions for vboxUniformedAPI implement vboxUniformedAPI in vbox_tmpl.c use vboxUniformedAPI to generate common code install vboxUniformedAPI po/POTFILES.in

[libvirt] [PATCHv4 4/4]vbox: Install vboxUniformedAPI

2014-06-26 Thread Taowei
Install the uniformed API for common code. --- src/vbox/vbox_driver.c | 35 +++ 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/src/vbox/vbox_driver.c b/src/vbox/vbox_driver.c index 7d004b2..e90b7ef 100644 --- a/src/vbox/vbox_driver.c +++ b/src/vbo

[libvirt] [PATCHv4 3/4]vbox: Use vboxUniformedAPI to write common code

2014-06-26 Thread Taowei
In vbox_common.c: vboxInitialize and vboxDomainSave are rewrited with vboxUniformedAPI. In vbox_common.h Some common definitions in vbox_CAPI_v*.h are directly extracted to this file. Some other incompatible defintions are simplified here. So we can write common code with it. --- po/POTFILES.in

[libvirt] [PATCHv6 6/7] qemu: Add support for networked disks for block commit

2014-06-26 Thread Peter Krempa
Now that we are able to select images from the backing chain via indexed access we should also convert possible network sources to qemu-compatible strings before passing them to qemu. --- src/qemu/qemu_driver.c | 39 ++- 1 file changed, 34 insertions(+), 5 delet

Re: [libvirt] [for 1.2.6] Redundancy of virNetworkGetDHCPLeases and virNetworkGetDHCPLeasesForMAC

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 06:00:22PM +0530, Nehal J Wani wrote: > On Thu, Jun 26, 2014 at 4:58 PM, Peter Krempa wrote: > > Hi, > > > > when reviewing the patch to add python bindings for the said APIs it > > occurred to me that the two APIs are so close in their prototypes and > > way of functioning

[libvirt] [PATCHv6 7/7] qemu: Add support for networked disks for block pull/block rebase

2014-06-26 Thread Peter Krempa
Now that we are able to select images from the backing chain via indexed access we should also convert possible network sources to qemu-compatible strings before passing them to qemu. --- src/qemu/qemu_driver.c | 45 + 1 file changed, 41 insertions(+), 4

[libvirt] [PATCHv6 4/7] lib: Introduce flag VIR_DOMAIN_BLOCK_COMMIT_RELATIVE

2014-06-26 Thread Peter Krempa
Introduce flag for the block commit API to allow the commit operation to leave the chain relatively addressed. Also adds a virsh switch to enable this behavior. --- include/libvirt/libvirt.h.in | 3 +++ src/libvirt.c| 5 + tools/virsh-domain.c | 6 ++ tools/virsh.po

[libvirt] [PATCHv6 3/7] qemu: monitor: Add support for backing name specification for block-stream

2014-06-26 Thread Peter Krempa
To allow changing the name that is recorded in the top of the current image chain used in a block pull/rebase operation, we need to specify the backing name to qemu. This is done via the "backing-file" attribute to the block-stream commad. --- src/qemu/qemu_driver.c | 8 src/qemu/q

[libvirt] [PATCHv6 5/7] lib: Introduce flag VIR_DOMAIN_BLOCK_REBASE_RELATIVE

2014-06-26 Thread Peter Krempa
Introduce flag for the block rebase API to allow the rebase operation to leave the chain relatively addressed. Also adds a virsh switch to enable this behavior. --- include/libvirt/libvirt.h.in | 3 +++ src/libvirt.c| 3 +++ tools/virsh-domain.c | 12 ++-- tools/v

[libvirt] [PATCHv6 0/7] Rest of the relative backing and network commit series

2014-06-26 Thread Peter Krempa
Mostly cosmetical changes since the last round. Peter Krempa (7): qemu: caps: Add capability for change-backing-file command qemu: monitor: Add argument for specifying backing name for block commit qemu: monitor: Add support for backing name specification for block-stream lib: Int

[libvirt] [PATCHv6 1/7] qemu: caps: Add capability for change-backing-file command

2014-06-26 Thread Peter Krempa
This command allows to change the backing file name recorded in the metadata of a qcow (or other) image. The capability also notifies that the "block-stream" and "block-commit" commands understand the "backing-file" attribute. --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h |

[libvirt] [PATCHv6 2/7] qemu: monitor: Add argument for specifying backing name for block commit

2014-06-26 Thread Peter Krempa
To allow changing the name that is recorded in the overlay of the TOP image used in a block commit operation, we need to specify the backing name to qemu. This is done via the "backing-file" attribute to the block-commit command. --- src/qemu/qemu_driver.c | 1 + src/qemu/qemu_monitor.c

Re: [libvirt] [PATCH] Fix typo s/SASL_CONF_DIR/SASL_CONF_PATH/ in QEMU VNC code

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 02:18:51PM +0200, Christophe Fergeau wrote: > Hey, > > On Thu, Jun 26, 2014 at 11:49:21AM +0100, Daniel P. Berrange wrote: > > The QEMU VNC client arg code has a long standing typo > > of SASL_CONF_DIR when it should be SASL_CONFIG_PATH for > > the env variable name. > > Y

Re: [libvirt] [python PATCH] maint: document development against uninstalled libvirt

2014-06-26 Thread Eric Blake
On 06/26/2014 03:38 AM, Daniel P. Berrange wrote: >> >> Now all I have to do is run 'python setup.py build' to build against >> installed libvirt, vs. 'make' to build against development libvirt, at >> least for my machine. > > It occurs to me that if we edit the 'run' script in libvirt GIT to >

Re: [libvirt] [for 1.2.6] Redundancy of virNetworkGetDHCPLeases and virNetworkGetDHCPLeasesForMAC

2014-06-26 Thread Nehal J Wani
On Thu, Jun 26, 2014 at 4:58 PM, Peter Krempa wrote: > Hi, > > when reviewing the patch to add python bindings for the said APIs it > occurred to me that the two APIs are so close in their prototypes and > way of functioning that we could actually merge them into one. > > Both of those return a li

Re: [libvirt] [PATCH] Fix typo s/SASL_CONF_DIR/SASL_CONF_PATH/ in QEMU VNC code

2014-06-26 Thread Christophe Fergeau
Hey, On Thu, Jun 26, 2014 at 11:49:21AM +0100, Daniel P. Berrange wrote: > The QEMU VNC client arg code has a long standing typo > of SASL_CONF_DIR when it should be SASL_CONFIG_PATH for > the env variable name. You've already sent this last Octoer ;) Ján Tomko pointed out that the log should men

Re: [libvirt] [PATCH] qemu: don't label anything before locking the domain

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 01:57:34PM +0200, Martin Kletzander wrote: > On Thu, Jun 26, 2014 at 12:42:52PM +0100, Daniel P. Berrange wrote: > >On Thu, Jun 26, 2014 at 01:20:02PM +0200, Martin Kletzander wrote: > >>If locking the domain failed, files were already labelled and thus we > >>restored the p

Re: [libvirt] [PATCH] qemu: don't label anything before locking the domain

2014-06-26 Thread Martin Kletzander
On Thu, Jun 26, 2014 at 12:42:52PM +0100, Daniel P. Berrange wrote: On Thu, Jun 26, 2014 at 01:20:02PM +0200, Martin Kletzander wrote: If locking the domain failed, files were already labelled and thus we restored the previous label on them. Having disks on NFS means the domain having the lock

Re: [libvirt] [PATCH] qemu: don't label anything before locking the domain

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 12:42:52PM +0100, Daniel P. Berrange wrote: > On Thu, Jun 26, 2014 at 01:20:02PM +0200, Martin Kletzander wrote: > > If locking the domain failed, files were already labelled and thus we > > restored the previous label on them. Having disks on NFS means the > > domain havin

Re: [libvirt] [PATCH] qemu: don't label anything before locking the domain

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 01:20:02PM +0200, Martin Kletzander wrote: > If locking the domain failed, files were already labelled and thus we > restored the previous label on them. Having disks on NFS means the > domain having the lock already gets permission denial. > > This code moves the labellin

Re: [libvirt] [PATCH] Add PKG_CONFIG_PATH to run.in script.

2014-06-26 Thread Jiri Denemark
On Thu, Jun 26, 2014 at 11:54:11 +0100, Daniel Berrange wrote: > Allow people to build external bindings using the 'run' script > by defining the PKG_CONFIG_PATH var in it. eg to build Python > you could do > >../libvirt/run python setup.py build > > Signed-off-by: Daniel P. Berrange ACK J

[libvirt] [for 1.2.6] Redundancy of virNetworkGetDHCPLeases and virNetworkGetDHCPLeasesForMAC

2014-06-26 Thread Peter Krempa
Hi, when reviewing the patch to add python bindings for the said APIs it occurred to me that the two APIs are so close in their prototypes and way of functioning that we could actually merge them into one. Both of those return a list of lease structures and the only difference is the presence of

[libvirt] [PATCH] qemu: don't label anything before locking the domain

2014-06-26 Thread Martin Kletzander
If locking the domain failed, files were already labelled and thus we restored the previous label on them. Having disks on NFS means the domain having the lock already gets permission denial. This code moves the labelling part into the command hook since it's still privileged, and also moves the

[libvirt] [PATCH] Add PKG_CONFIG_PATH to run.in script.

2014-06-26 Thread Daniel P. Berrange
Allow people to build external bindings using the 'run' script by defining the PKG_CONFIG_PATH var in it. eg to build Python you could do ../libvirt/run python setup.py build Signed-off-by: Daniel P. Berrange --- run.in | 7 +++ 1 file changed, 7 insertions(+) diff --git a/run.in b/run.

[libvirt] [PATCH] Fix typo s/SASL_CONF_DIR/SASL_CONF_PATH/ in QEMU VNC code

2014-06-26 Thread Daniel P. Berrange
The QEMU VNC client arg code has a long standing typo of SASL_CONF_DIR when it should be SASL_CONFIG_PATH for the env variable name. Signed-off-by: Daniel P. Berrange --- src/qemu/qemu_command.c| 2 +- tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.args

Re: [libvirt] [PATCH V2] libxl: detect support for save and restore

2014-06-26 Thread Ian Campbell
On Wed, 2014-06-25 at 18:09 -0600, Jim Fehlig wrote: > libxl does not support save, restore, or migrate on all architectures, > notably ARM. Detect whether libxl supports these operations using > LIBXL_HAVE_NO_SUSPEND_RESUME. If not supported, drop advertisement of > . > > Found by Ian Campbell

Re: [libvirt] [PATCH RFC 4/4] qemu: Implement virConnectGetDomainCapabilities

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 12:18:28PM +0200, Michal Privoznik wrote: > Signed-off-by: Michal Privoznik > --- > src/libvirt_private.syms | 1 + > src/qemu/qemu_capabilities.c | 82 ++ > src/qemu/qemu_capabilities.h | 4 ++ > src/qemu/qemu_driver.c | 102

Re: [libvirt] [PATCH RFC 2/4] Introduce virConnectGetDomainCapabilities

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 12:18:26PM +0200, Michal Privoznik wrote: > static virNetworkDriver network_driver = { > diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x > index 4b75bdb..9d141e9 100644 > --- a/src/remote/remote_protocol.x > +++ b/src/remote/remote_protocol.x > @@

Re: [libvirt] [PATCH RFC 1/4] Introduce domain_capabilities

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 12:18:25PM +0200, Michal Privoznik wrote: > Signed-off-by: Michal Privoznik > --- > src/Makefile.am| 1 + > src/conf/domain_capabilities.c | 217 > + > src/conf/domain_capabilities.h | 89 + > src/

Re: [libvirt] [PATCH RFC 0/4] Expose Expose IOMMU and VFIO host capabilities

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 12:18:24PM +0200, Michal Privoznik wrote: > *** NOT FOR UPSTREAM MERGE *** > > This is pure RFC, that's why it contains just code without any documentation, > RNG schemas, tests, ..., with sparse commit messages. I just want to make sure > I'm on the right track this time.

[libvirt] [PATCH RFC 4/4] qemu: Implement virConnectGetDomainCapabilities

2014-06-26 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- src/libvirt_private.syms | 1 + src/qemu/qemu_capabilities.c | 82 ++ src/qemu/qemu_capabilities.h | 4 ++ src/qemu/qemu_driver.c | 102 +++ 4 files changed, 189 insertions(+

[libvirt] [PATCH RFC 3/4] virsh: expose virConnectGetDomainCapabilities

2014-06-26 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- tools/virsh-host.c | 84 ++ 1 file changed, 84 insertions(+) diff --git a/tools/virsh-host.c b/tools/virsh-host.c index 734f1a8..2f926d6 100644 --- a/tools/virsh-host.c +++ b/tools/virsh-host.c @@ -69,6 +69,8

[libvirt] [PATCH RFC 0/4] Expose Expose IOMMU and VFIO host capabilities

2014-06-26 Thread Michal Privoznik
*** NOT FOR UPSTREAM MERGE *** This is pure RFC, that's why it contains just code without any documentation, RNG schemas, tests, ..., with sparse commit messages. I just want to make sure I'm on the right track this time. BTW: The ACL issue on the command is still not resolved and honestly, I've

[libvirt] [PATCH RFC 1/4] Introduce domain_capabilities

2014-06-26 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- src/Makefile.am| 1 + src/conf/domain_capabilities.c | 217 + src/conf/domain_capabilities.h | 89 + src/libvirt_private.syms | 5 + 4 files changed, 312 insertions(+) create mo

[libvirt] [PATCH RFC 2/4] Introduce virConnectGetDomainCapabilities

2014-06-26 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- include/libvirt/libvirt.h.in | 7 ++ src/driver.h | 9 src/libvirt.c| 52 src/libvirt_public.syms | 1 + src/remote/remote_driver.c | 1 + src/remote/remote_pro

Re: [libvirt] [PATCH] Initial implementation of new job control api

2014-06-26 Thread Martin Kletzander
On Wed, Jun 18, 2014 at 05:59:47PM -0400, Tucker DiNapoli wrote: This is my initial definition of a new internal job control api. I am working on this as a part of the google summer of code. These patches contain the core job control api and deal only with managing individual jobs. I am currently

[libvirt] [RFC] powerpc : Add support for VM in compat mode

2014-06-26 Thread Prerna Saxena
PowerISA allows processors to run VMs in binary compatibility ("compat") mode supporting an older version of ISA. Eg,in compatibility mode, a POWER8 host can run a "Power7" VM,conforming to PowerISA v2.06, while a POWER7 host can run a "POWER6" VM, conforming to PowerISA v2.05. QEMU has recently

Re: [libvirt] [PATCHv3 3/3] lxc: update doc to mention features/capabilities/* domain configuration

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 10:40:29AM +0200, Cédric Bosdonnat wrote: > --- > docs/drvlxc.html.in | 47 +++ > 1 file changed, 47 insertions(+) ACK Regards, Daniel -- |: http://berrange.com -o-http://www.flickr.com/photos/dberrange/ :| |: http://

Re: [libvirt] [PATCHv3 2/3] lxc domain from xml: convert lxc.cap.drop

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 10:40:28AM +0200, Cédric Bosdonnat wrote: > --- > src/lxc/lxc_native.c | 25 > ++ > tests/lxcconf2xmldata/lxcconf2xml-blkiotune.xml| 2 ++ > tests/lxcconf2xmldata/lxcconf2xml-cpusettune.xml | 2 ++ > tests/lxcconf2x

Re: [libvirt] [PATCHv3 1/3] lxc: allow to keep or drop capabilities

2014-06-26 Thread Daniel P. Berrange
On Thu, Jun 26, 2014 at 10:40:27AM +0200, Cédric Bosdonnat wrote: > Added in the section of LXC domains > configuration. This section can contain elements named after the > capabilities like: > > , keep CAP_MKNOD capability >drop CAP_SYS_CHROOT capability > > Users can restrict or give mo

[libvirt] Issue about do Auto Core Dump with compress file format on FC 20

2014-06-26 Thread zhengqin
Hi, I'm trying to do Auto Core Dump with compress file format for dump_image_format (such as: bzip2) on Fedora Core 20, but the generated dump image format is not "bzip2". Here are my steps: 1. Prepare a running guest with following configuration in guest's xml # virsh dumpxml domU

Re: [libvirt] [python PATCH] maint: document development against uninstalled libvirt

2014-06-26 Thread Daniel P. Berrange
On Wed, Jun 25, 2014 at 11:12:52AM -0600, Eric Blake wrote: > On 06/25/2014 10:59 AM, Peter Krempa wrote: > > On 06/25/14 18:53, Eric Blake wrote: > >> Thanks to Dan's recent work in libvirt.git, it is much easier to > >> develop against uninstalled libvirt. Mention how. > >> > >> * README: More d

Re: [libvirt] [PATCH] libxl: detect support for save and restore

2014-06-26 Thread Daniel P. Berrange
On Wed, Jun 25, 2014 at 01:10:20PM -0600, Eric Blake wrote: > On 06/25/2014 12:13 PM, Jim Fehlig wrote: > > libxl does not support save, restore, or migrate on all architectures, > > notably ARM. Detect whether libxl supports these operations using > > LIBXL_HAVE_NO_SUSPEND_RESUME. If not support

Re: [libvirt] [PATCHv3 26/26] qemu: blockcopy: Don't remove existing disk mirror info

2014-06-26 Thread Peter Krempa
On 06/26/14 05:29, Eric Blake wrote: > On 06/25/2014 10:55 AM, Peter Krempa wrote: >> When creating a new disk mirror the new struct is stored in a separate >> variable until everything went well. The removed hunk would actually >> remove existing mirror information for example when the api would b

[libvirt] [PATCHv3 2/3] lxc domain from xml: convert lxc.cap.drop

2014-06-26 Thread Cédric Bosdonnat
--- src/lxc/lxc_native.c | 25 ++ tests/lxcconf2xmldata/lxcconf2xml-blkiotune.xml| 2 ++ tests/lxcconf2xmldata/lxcconf2xml-cpusettune.xml | 2 ++ tests/lxcconf2xmldata/lxcconf2xml-cputune.xml | 2 ++ tests/lxcconf2xmldata/lxcconf2xml-

[libvirt] [PATCHv3 1/3] lxc: allow to keep or drop capabilities

2014-06-26 Thread Cédric Bosdonnat
Added in the section of LXC domains configuration. This section can contain elements named after the capabilities like: , keep CAP_MKNOD capability drop CAP_SYS_CHROOT capability Users can restrict or give more capabilities than the default using this mechanism. --- docs/schemas/domaincom

[libvirt] [PATCHv3 0/3] lxc keep/drop capabilities

2014-06-26 Thread Cédric Bosdonnat
I found out that the previous versions were not building on older kernels. Thus n lxc/lxc_container.c I added a bunch of #ifndef CAP_XXX #define CAP_XXX -1 #endif And capabilities are handled later only if they are valid. I'm not sure the lxc_container.c file is the best place to put those, but a

[libvirt] [PATCHv3 3/3] lxc: update doc to mention features/capabilities/* domain configuration

2014-06-26 Thread Cédric Bosdonnat
--- docs/drvlxc.html.in | 47 +++ 1 file changed, 47 insertions(+) diff --git a/docs/drvlxc.html.in b/docs/drvlxc.html.in index fc4bc20..403ce24 100644 --- a/docs/drvlxc.html.in +++ b/docs/drvlxc.html.in @@ -540,6 +540,53 @@ debootstrap, whatever) under

Re: [libvirt] Entering freeze for libvirt-1.2.6

2014-06-26 Thread Nehal J Wani
> Python bindings can't be built, but that's just because > virNetwork*DHCPLease* are not covered. I have sent a patch for the python bindings for virNetwork*DHCPLease* APIs: http://www.redhat.com/archives/libvir-list/2014-June/msg01300.html Regards, Nehal J Wani -- libvir-list mailing list lib

Re: [libvirt] RFC: network interface "tags" vs. portgroups

2014-06-26 Thread Laine Stump
On 06/19/2014 09:08 AM, Michal Privoznik wrote: > On 10.06.2014 12:01, Laine Stump wrote: >> A couple releases ago (commit 7d5bf484, first appeared in 1.2.2) I >> modified the domain interface status xml to show what resources are >> actually in use for an interface, superseding the interface confi

[libvirt] Fix a typo in a localized string

2014-06-26 Thread Daniel Veillard
As pointed by Yuri Chornoivan in transifex: https://fedora.transifex.com/projects/p/libvirt/translate/#uk/strings/27026506 pushed as trivial since same string is used before and after that broken one, Daniel diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c index 4ba9ad7..b27ab02 100644 --

Re: [libvirt] Entering freeze for libvirt-1.2.6

2014-06-26 Thread Martin Kletzander
On Thu, Jun 26, 2014 at 11:05:55AM +0800, Daniel Veillard wrote: As stated yesterday, we just entered freeze for libvirt-1.2.6, I have pushed a first release candidate tarball and signed rpms at the usual place: ftp://libvirt.org/libvirt/ I gave it a try and with my limited testing it looks