[libvirt] [PATCH v4 0/4] vcpupin: configure inactive domain's CPU affinity setting

2011-06-10 Thread Taku Izumi
Hi all, I'll resend this patchset because what sent yesterday was broken. Sorry to be a nuisance. -- This patchset enables us to configure inactive domains' CPU affinity setting. This is the rebased version, but retains the version number. *[PATCH v4 1/4] vcpupin: introduce a new libvirt API

[libvirt] [PATCH v4 1/4] vcpupin: introduce a new libvirt API (virDomainPinVcpuFlags)

2011-06-10 Thread Taku Izumi
This patch introduces a new libvirt API (virDomainPinVcpuFlags). Signd-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- include/libvirt/libvirt.h.in |5 ++ src/driver.h |7 +++ src/libvirt.c| 76 +++

[libvirt] [PATCH v4 2/4] vcpupin: implement the code to address the new API in the qemu driver

2011-06-10 Thread Taku Izumi
This patch implements the code to address the new API (virDomainPinVcpuFlags) in the qemu driver. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- src/qemu/qemu_driver.c | 99 + 1 file changed, 76 insertions(+), 23 deletions(-) Index:

[libvirt] [PATCH v4 3/4] vcpupin: implement the remote protocol to address the new API

2011-06-10 Thread Taku Izumi
This patch implements the remote protocol to address the new API (virDomainPinVcpuFlags). Signd-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- daemon/remote.c | 42 ++ src/remote/remote_driver.c |1 + src/remote/remote_protocol.x |

[libvirt] [PATCH v4 4/4] vcpupin: add the new option to virsh vcpupin command

2011-06-10 Thread Taku Izumi
This patch adds the new option (--live, --config and --current) to virsh vcpupin command. The behavior of above aption is the same as that of virsh setmem, virsh setvcpus, and whatnot. When the --config option is specified, the command affects a persistent domain, while --live option is

[libvirt] [PATCH 0/4] RFC: vcpupin: some improvements of virsh vcpupin command

2011-06-10 Thread Taku Izumi
Hi all, I'll resend this patchset because what sent yesterday was broken. Sorry to be a nuisance. --- This patchset improves virsh vcpupin command like the following: (i) introduce special markup - and ^ which are similar to XML schema of cpuset attribute # virsh vcpupin VM 0 0-8,^4

[libvirt] [PATCH 1/4] vcpupin: improve vcpupin definition of virsh vcpupin

2011-06-10 Thread Taku Izumi
When using vcpupin command, we have to speficy comma-separated list as cpulist, but this is tedious in case the number of phsycal cpus is large. This patch improves this by introducing special markup - and ^ which are similar to XML schema of cpuset attribute. That is: # virsh vcpupin Guest

[libvirt] [PATCH 2/4] vcpupin: add reset option to virsh vcpupin command

2011-06-10 Thread Taku Izumi
When resetting vcpupin setting, we have to specify all host physical cpus as a cpulist parameter of virsh vcpupin command. It's a little tedious. This patch changes to allow to receive the special keyword 'r' as a cpulist parameter of virsh vcpupin command when resetting vcpupin setting. If you

[libvirt] [PATCH 3/4] vcpupin: add virDomainVcpupinDel function

2011-06-10 Thread Taku Izumi
This patch add the private API (virDomainVcpupinDel). This API can delete the vcpupin setting of a specified virtual cpu. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- src/conf/domain_conf.c | 39 +++ src/conf/domain_conf.h |2 ++

[libvirt] [PATCH 4/4] vcpupin: add vcpupin resetting feature to qemu driver

2011-06-10 Thread Taku Izumi
Pinning to all physical cpus means resetting, hence it is preferable to delete vcpupin setting of XML. This patch changes qemu driver to delete vcpupin setting by invoking virDomainVcpupinDel API when pinning the specified virtual cpu to all host physical cpus. Signed-off-by: Taku Izumi

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Wen Congyang
At 06/09/2011 03:20 AM, Adam Litke Write: Hi all. In this post I would like to bring up 3 issues which are tightly related: 1. unwanted behavior when using cfs hardlimits with libvirt, 2. Scaling cputune.share according to the number of vcpus, 3. API proposal for CFS hardlimits support.

Re: [libvirt] [PATCH 00/10 V2] Add support for send keys to guest

2011-06-10 Thread Gui Jianfeng
CC: Daniel Hey guys, any comments about this revision? Gui Lai Jiangshan wrote: Add API virDomainSendKey() and virsh send-key command. PATCH 01~04 prepare PATCH 05~10 Add support for send keys to guest Python version of virDomainSendKey() has not been implemented yet, it will be done

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Daniel P. Berrange
On Wed, Jun 08, 2011 at 02:20:23PM -0500, Adam Litke wrote: Hi all. In this post I would like to bring up 3 issues which are tightly related: 1. unwanted behavior when using cfs hardlimits with libvirt, 2. Scaling cputune.share according to the number of vcpus, 3. API proposal for CFS

Re: [libvirt] [PATCH] xenapi: Improve error message on session failure

2011-06-10 Thread Daniel Veillard
On Tue, Jun 07, 2011 at 06:35:55AM -0600, Eric Blake wrote: On 06/07/2011 05:01 AM, Matthew Booth wrote: XenAPI session login can fail for a number of reasons, but currently no specific reason is displayed to the user, e.g.: virsh -c XenAPI://citrix-xen.example.com/ Enter username

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Wen Congyang
At 06/10/2011 05:20 PM, Daniel P. Berrange Write: On Wed, Jun 08, 2011 at 02:20:23PM -0500, Adam Litke wrote: Hi all. In this post I would like to bring up 3 issues which are tightly related: 1. unwanted behavior when using cfs hardlimits with libvirt, 2. Scaling cputune.share according to

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Taku Izumi
--- snip --- cputune ... cfs_period100/cfs_period cfs_quota50/cfs_quota /cputune --- snip --- I think the element name should be generic and the percentage (0..100 or 0..vcpu*100) is better as the element value. That's intuitive to me. How about the follwing?

[libvirt] [RFC PATCH] Set and reset MAC for PASSTHROUGH mode

2011-06-10 Thread Dirk Herrendoerfer
there is a problem present in libvirt that when a PASSTHROUGH mode DIRECT NIC connection is made the MAC address of the NIC is not automatically set and reset to the configured VM MAC and back again. The attached patch fixes this problem by setting and resetting the MAC while remembering the

[libvirt] [PATCH] Added capability to set and restore the MAC address of a NIC when using PASSTHROUGH mode with DIRECT type NICs. This is required to support SRIOV capable NICs with firmware implement

2011-06-10 Thread Dirk Herrendoerfer
--- src/libvirt_macvtap.syms |2 + src/qemu/qemu_command.c | 48 +++ src/qemu/qemu_process.c | 45 ++ src/util/macvtap.c | 149 ++ src/util/macvtap.h |6 ++ 5 files changed, 250 insertions(+), 0

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Adam Litke
On 06/10/2011 05:25 AM, Taku Izumi wrote: --- snip --- cputune ... cfs_period100/cfs_period cfs_quota50/cfs_quota /cputune --- snip --- I think the element name should be generic and the percentage (0..100 or 0..vcpu*100) is better as the element value. That's

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Adam Litke
On 06/10/2011 04:20 AM, Daniel P. Berrange wrote: On Wed, Jun 08, 2011 at 02:20:23PM -0500, Adam Litke wrote: Hi all. In this post I would like to bring up 3 issues which are tightly related: 1. unwanted behavior when using cfs hardlimits with libvirt, 2. Scaling cputune.share according to

Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-10 Thread Adam Litke
On 06/10/2011 04:45 AM, Wen Congyang wrote: === 3 === Besides the above issues, I would like to open a discussion on what the libvirt API for enabling cpu hardlimits should look like. Here is what I was thinking: Two additional scheduler parameters (based on the names given in the cgroup

Re: [libvirt] does libvirt get disk-info.alias, when attaching a disk by virDomainAttachDevice?

2011-06-10 Thread Osier Yang
On 06/09/2011 01:26 PM, 李敬伟 wrote: Hi, I am using libvirt 0.9.1 on CentOS 5.5 64bit , Created a vm :virsh create libvirt.xml Attached a disk ,virsh attach-disk 3 /opt/vms/test.img vdb When getting blosk stats ,virsh domblkstats 3 vdb ,it showed error: Failed to get block stats 3

[libvirt] Fwd: cvs commit: ports/devel/libvirt Makefile distinfo pkg-plist ports/devel/libvirt/files patch-docs__apibuild.py patch-src__util__command.c

2011-06-10 Thread Jason Helfman
libvirt has been updated in the FreeBSD portstree. Thanks, Jason -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html E4AD 7CF1 1396 27F6 79DD 4342 5E92 AD66 8C8C FBA5 ---BeginMessage--- jlaffaye2011-06-10 21:44:41 UTC FreeBSD ports

Re: [libvirt] [PATCH 05/16] apparmor: Convert virExec usage to virCommand

2011-06-10 Thread Jamie Strandboge
On Tue, 2011-05-10 at 17:32 -0600, Eric Blake wrote: On 05/10/2011 02:07 PM, Cole Robinson wrote: Untested Was it compile-tested, at least? Signed-off-by: Cole Robinson crobi...@redhat.com --- src/security/security_apparmor.c | 70 +++--- 1