[libvirt] [PATCH 0/5] RFC: configure inactive domains' memory size

2011-03-02 Thread Taku Izumi
Hi all, Currently virsh setmem is not allowed to use against an inactive domain. This is yet another approach to configure inactive domain's memory size. The approach before was closed in virsh command: http://www.redhat.com/archives/libvir-list/2011-February/msg01074.html This time a new

[libvirt] [PATCH 1/5] setmem: introduce a new libvirt API (virDomainSetMemoryFlags)

2011-03-02 Thread Taku Izumi
This patch introduces a new libvirt API (virDomainSetMemoryFlags) and a flag (virDomainMemoryModFlags). Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- include/libvirt/libvirt.h.in | 10 ++ src/libvirt.c| 62 +++

[libvirt] [PATCH 2/5] setmem: implement the call back member for new API on each driver

2011-03-02 Thread Taku Izumi
This patch implemetns the call back member for new API on each driver. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- src/driver.h|5 + src/esx/esx_driver.c|1 + src/lxc/lxc_driver.c|1 + src/opennebula/one_driver.c |1 +

[libvirt] [PATCH 5/5] setmem: add the new options to virsh setmem command

2011-03-02 Thread Taku Izumi
This patch adds the new options (--live and --config) to virsh setmem command. The behavior of above options is the same as that of virsh setvcpus and so on. That is, when the --config option is specified, a modification is effective for the persistent domain. Moreover we can modify the memory

[libvirt] [PATCH 4/5] setmem: implement the remote protocol to address the new API

2011-03-02 Thread Taku Izumi
This patch implements the remote protocol to address the new API. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- daemon/remote.c | 26 ++ daemon/remote_dispatch_args.h |1 + daemon/remote_dispatch_prototypes.h |8

[libvirt] [libvirt-snmp][PATCH] Change source location in .spec file to the one from libvirt.org

2011-03-02 Thread Michal Privoznik
--- I've created the snmp dir: http://www.libvirt.org/sources/snmp/ libvirt-snmp.spec.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libvirt-snmp.spec.in b/libvirt-snmp.spec.in index 6082a7a..85c5025 100644 --- a/libvirt-snmp.spec.in +++ b/libvirt-snmp.spec.in @@

Re: [libvirt] Add persistent XML for cpu tunables

2011-03-02 Thread Nikunj A. Dadhania
On Sun, 27 Feb 2011 22:39:15 +0800, Osier Yang jy...@redhat.com wrote: These are pretty rough patches, something like a draft, I beleive there must be many problems, please review it heavily, :-) New XML: cputune shares2048/shares vcpupin vcpu='0' cpuset='0-4,^1'/ vcpupin

Re: [libvirt] [PATCH 1/6] cputune: new tests for testing cputune xml

2011-03-02 Thread Nikunj A. Dadhania
On Sun, 27 Feb 2011 22:39:16 +0800, Osier Yang jy...@redhat.com wrote: --- tests/qemuxml2argvdata/qemuxml2argv-cputune.args |4 ++ tests/qemuxml2argvdata/qemuxml2argv-cputune.xml | 33 ++ tests/qemuxml2argvtest.c |1 +

[libvirt] [libvirt-snmp][PATCH] Cleanup autotools files to produce rpmlint compliant rpms.

2011-03-02 Thread Michal Privoznik
Added manpage for libvirtMib_subagent and ChangeLog generation. --- INSTALL | 48 INSTALL.1st | 48 Makefile.am | 17 - NEWS |3 + configure.ac

Re: [libvirt] [PATCH] add additional event debug points

2011-03-02 Thread Daniel P. Berrange
On Tue, Mar 01, 2011 at 04:55:58PM -0700, Eric Blake wrote: From: Daniel P. Berrange berra...@redhat.com Followup to commit bd24 --- I'm working on debugging a delayed event flush, and Daniel pointed me to this patch of his that I'm finding useful. Any objections to committing this

Re: [libvirt] there is a mistake in libvirt development guide, chapter 4.1: list domains

2011-03-02 Thread Daniel P. Berrange
On Wed, Mar 02, 2011 at 09:37:59AM +0800, SanitYey o wrote: int i; int numDomains; char **inactiveDomains; numDomains = virConnectNumOfDefinedDomains(conn); inactiveDomains = malloc(sizeof(char *) * numDomains); numDomains = virConnectListDomains(conn, inactiveDomains, numDomains);

Re: [libvirt] [PATCH] qemu: avoid double close on domain restore

2011-03-02 Thread Daniel P. Berrange
On Tue, Mar 01, 2011 at 09:02:23PM -0700, Eric Blake wrote: qemudDomainSaveImageStartVM was evil - it closed the incoming fd argument on some, but not all, code paths, without informing the caller about that action. No wonder that this resulted in double-closes:

Re: [libvirt] [PATCH 2/2] qemu: use -incoming fd:n to avoid qemu holding fd indefinitely

2011-03-02 Thread Daniel P. Berrange
On Tue, Mar 01, 2011 at 10:16:52PM -0700, Eric Blake wrote: On 01/03/2011 06:39 AM, Paolo Bonzini wrote: On 12/23/2010 05:51 PM, Eric Blake wrote: In the outgoing direction, we still have to use a unix socket (outgoing migration is started via a monitor command, and I don't know how to pass

Re: [libvirt] [libvirt-snmp][PATCH] Change source location in .spec file to the one from libvirt.org

2011-03-02 Thread Daniel P. Berrange
On Wed, Mar 02, 2011 at 10:01:58AM +0100, Michal Privoznik wrote: --- I've created the snmp dir: http://www.libvirt.org/sources/snmp/ libvirt-snmp.spec.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libvirt-snmp.spec.in b/libvirt-snmp.spec.in index

Re: [libvirt] [libvirt-snmp][PATCH] Cleanup autotools files to produce rpmlint compliant rpms.

2011-03-02 Thread Daniel P. Berrange
On Wed, Mar 02, 2011 at 01:04:19PM +0100, Michal Privoznik wrote: Added manpage for libvirtMib_subagent and ChangeLog generation. --- INSTALL | 48 INSTALL.1st | 48 Makefile.am |

[libvirt] [PATCH 0/2] Setup libvirt OCAML bindings for automated builds

2011-03-02 Thread Daniel P. Berrange
These two patches update the build system to work now we're using GIT instead of HG, and add the scripts + RPM spec to perform automated builds -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH 2/2] Add files for performing automated builds

2011-03-02 Thread Daniel P. Berrange
* MANIFEST: Include autogen.sh, autobuild.sh, ocaml-libvirt.spec * Makefile.in: Add EXTRA_DIST to list files which should be in tar.gz, but not committed in GIT * autogen.sh: Re-generate autotools files run configure * autobuild.sh: Perform a fully automated build from source + RPM build *

[libvirt] [PATCH 1/2] Update build rules post move from HG to GIT

2011-03-02 Thread Daniel P. Berrange
* .hgignore: Delete, obsoleted by .gitignore * Makefile.am: Update dist-check to use GIT * MANIFEST: Replace .hgignore with .gitignore * config.h.in, libvirt/.depend, mlvirsh/.depend: Re-generate with newer toolchain --- .hgignore | 46 --

[libvirt] RFC: Increasing number of processes allowed for qemu user

2011-03-02 Thread Jiri Denemark
Hi all, When libvirt is running on a system with limited number of processes allowed to be created by the user under which qemu processes are run, we hit scalability issues. My take on this issue is that it's in fact a host configuration issue and it should just be documented that users need to

Re: [libvirt] [PATCH] add additional event debug points

2011-03-02 Thread Eric Blake
On 03/02/2011 05:06 AM, Daniel P. Berrange wrote: On Tue, Mar 01, 2011 at 04:55:58PM -0700, Eric Blake wrote: From: Daniel P. Berrange berra...@redhat.com Followup to commit bd24 --- I'm working on debugging a delayed event flush, and Daniel pointed me to this patch of his that I'm

Re: [libvirt] [PATCH] qemu: avoid double close on domain restore

2011-03-02 Thread Eric Blake
On 03/02/2011 05:10 AM, Daniel P. Berrange wrote: On Tue, Mar 01, 2011 at 09:02:23PM -0700, Eric Blake wrote: qemudDomainSaveImageStartVM was evil - it closed the incoming fd argument on some, but not all, code paths, without informing the caller about that action. No wonder that this

[libvirt] [PATCH] Attempt to improve an error message

2011-03-02 Thread Daniel P. Berrange
Replace the 'Unknown failure' error message with something a little bit more descriptive. * src/util/virterror.c: Improve error message --- src/util/virterror.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/util/virterror.c b/src/util/virterror.c index

Re: [libvirt] [PATCH] Attempt to improve an error message

2011-03-02 Thread Eric Blake
On 03/02/2011 10:18 AM, Daniel P. Berrange wrote: Replace the 'Unknown failure' error message with something a little bit more descriptive. * src/util/virterror.c: Improve error message --- src/util/virterror.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [libvirt] Network Filter not working on RHEL-6

2011-03-02 Thread Shi Jin
Thank you very much. It worked like a charm although I couldn't find that message in the libvirtd.log. Should I enable all three in /etc/sysctl.conf net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 net.bridge.bridge-nf-call-arptables = 1 Thanks. Shi -- Shi Jin,

Re: [libvirt] Network Filter not working on RHEL-6

2011-03-02 Thread edison
There is a bug in netcf-libs(https://bugzilla.redhat.com/show_bug.cgi?id=651032), which automatically sets -A FORWARD -m physdev --physdev-is-bridged -j ACCEPT if /proc/sys/net/bridge/bridge-nf-call-iptables == 1. I hit the bug last week, which drove me crazy... On Wed, Mar 2, 2011 at 1:36 PM,

[libvirt] [RFC PATCHv2 1/3] qemu: use lighter-weight fd:n on incoming tunneled migration

2011-03-02 Thread Eric Blake
Outgoing migration still uses a Unix socket and or exec netcat until the next patch. * src/qemu/qemu_migration.c (qemuMigrationPrepareTunnel): Replace Unix socket with simpler pipe. Suggested by Paolo Bonzini. --- v1 was ack'd here but not yet applied:

[libvirt] [RFC PATCHv2 2/3] qemu: support migration to fd

2011-03-02 Thread Eric Blake
* src/qemu/qemu_monitor.h (qemuMonitorMigrateToFd): New prototype. * src/qemu/qemu_monitor_text.h (qemuMonitorTextMigrateToFd): Likewise. * src/qemu/qemu_monitor_json.h (qemuMonitorJSONMigrateToFd): Likewise. * src/qemu/qemu_monitor.c (qemuMonitorMigrateToFd): New function. *

[libvirt] [RFC PATCHv2 3/3] qemu: allow simple domain save to use fd: protocol

2011-03-02 Thread Eric Blake
Work in progress - this fails for root-squash NFS, as well as for older qemu that don't support fd: migration, and doesn't cover compression coupled with migration. All of those need to be provided by a final solution. * src/qemu/qemu_driver.c (qemudDomainSaveFlag): Use new function when there

[libvirt] [PATCH] util: correct retry path in virFileOperation

2011-03-02 Thread Eric Blake
In virFileOperation, the parent does a fallback to a non-fork attempt if it detects that the child returned EACCES. However, the child was calling _exit(-EACCESS), which does _not_ appear as EACCES in the parent. * src/util/util.c (virFileOperation): Correctly pass EACCES from child to parent.

[libvirt] [PATCH 0/5] libvirt/qemu - allow modification of devices in inactive domain

2011-03-02 Thread KAMEZAWA Hiroyuki
Now, Xen supports at(de)tach-disk, at(de)tach-interface for inactive domains with --perisitent option. (Using --persisten against live domain will cause error.) Now, virsh attach-xxx/detach-xxx cannot modify inactive domains in qemu and --persistent option just returns error. This series adds

[libvirt] [PATCH 1/5] report OOMError in virDomainDiskInsert()

2011-03-02 Thread KAMEZAWA Hiroyuki
From b92569080a25bf0029d637327a87372bff071fae Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Date: Thu, 3 Mar 2011 09:20:36 +0900 Subject: [PATCH 1/5] report OOMError in virDomainDiskInsert() Now, virDomainDiskInsert() returns -1 at memory allocation failure but

[libvirt] [PATCH 4/5] libvirt/qemu - support modification of disks in inactive domain

2011-03-02 Thread KAMEZAWA Hiroyuki
From 8d2544bc773ac8aa1fdfc5cade20d8c1e958 Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Date: Thu, 3 Mar 2011 09:53:08 +0900 Subject: [PATCH 4/5] libvirt/qemu - support modification of disks in inactive domain This patch adds support for persistent

[libvirt] [PATCH 2/5] add my name to AUTHORS

2011-03-02 Thread KAMEZAWA Hiroyuki
From 85ddb9b00fbd14cf3ead92df659bd568a1d9cd27 Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Date: Thu, 3 Mar 2011 09:22:45 +0900 Subject: [PATCH 2/5] add my name to AUTHORS Signed-off-by: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com --- AUTHORS |1 + 1

[libvirt] [PATCH 3/5] libvirt/qemu - support persistent modification of devices.

2011-03-02 Thread KAMEZAWA Hiroyuki
From f7a997e3cd58cfac81e131afdd20c3691267831d Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Date: Thu, 3 Mar 2011 09:43:07 +0900 Subject: [PATCH 3/5] libivrt/qemu - support persistent modification of devices. Now, virsh attach-***/detach-*** has --persistent

Re: [libvirt] [PATCH] util: correct retry path in virFileOperation

2011-03-02 Thread Laine Stump
On 03/02/2011 06:30 PM, Eric Blake wrote: In virFileOperation, the parent does a fallback to a non-fork attempt if it detects that the child returned EACCES. However, the child was calling _exit(-EACCESS), which does _not_ appear as EACCES in the parent. * src/util/util.c (virFileOperation):

[libvirt] [PATCH 5/5] libvirt/qemu - allow modification nics of inactive domain

2011-03-02 Thread KAMEZAWA Hiroyuki
From 803cef98bc31a090b876f1774648e317401c806a Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Date: Thu, 3 Mar 2011 10:01:39 +0900 Subject: [PATCH 5/5] libvirt/qemu - allow modification nics of inactive domain This patch allows --persistent modification of nics

[libvirt] Anyone is working on Ability to send NMI and SysRq key strokes to guest?

2011-03-02 Thread Osier Yang
Hi, I'm working on these two features, but before doing any more work, ping the list in case of someone else is already working on it, to avoid duplicate working, :-) Regards Osier -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH 2/5] add my name to AUTHORS

2011-03-02 Thread Wen Congyang
At 03/03/2011 09:10 AM, KAMEZAWA Hiroyuki Write: From 85ddb9b00fbd14cf3ead92df659bd568a1d9cd27 Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Date: Thu, 3 Mar 2011 09:22:45 +0900 Subject: [PATCH 2/5] add my name to AUTHORS Signed-off-by: KAMEZAWA Hiroyuki

Re: [libvirt] Anyone is working on Ability to send NMI and SysRq key strokes to guest?

2011-03-02 Thread Hu Tao
CC Lai On Thu, Mar 03, 2011 at 11:17:51AM +0800, Osier Yang wrote: Hi, I'm working on these two features, but before doing any more work, ping the list in case of someone else is already working on it, to avoid duplicate working, :-) Lai is already being on these two:) -- Thanks, Hu Tao

Re: [libvirt] [PATCH 2/5] add my name to AUTHORS

2011-03-02 Thread KAMEZAWA Hiroyuki
On Thu, 03 Mar 2011 11:18:15 +0800 Wen Congyang we...@cn.fujitsu.com wrote: At 03/03/2011 09:10 AM, KAMEZAWA Hiroyuki Write: From 85ddb9b00fbd14cf3ead92df659bd568a1d9cd27 Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Date: Thu, 3 Mar 2011 09:22:45 +0900

Re: [libvirt] [PATCH 3/6] cputune: support cputune for qemu driver

2011-03-02 Thread Nikunj A. Dadhania
On Sun, 27 Feb 2011 22:39:18 +0800, Osier Yang jy...@redhat.com wrote: When domain startup, setting cpu affinity and cpu shares according to the cputune xml specified in domain xml. Modify qemudDomainPinVcpu to update domain config for vcpupin, and modify qemuSetSchedulerParameters to update

Re: [libvirt] [PATCH 2/5] add my name to AUTHORS

2011-03-02 Thread KAMEZAWA Hiroyuki
Maybe this was what I needed. = From 310080a8a3a28c9d5f36876971c22eda39600d7a Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Date: Thu, 3 Mar 2011 13:45:15 +0900 Subject: [PATCH] rename Kamezawa as KAMEZAWA. Note: maybe sounds strange but I've used this signature

Re: [libvirt] [PATCH 3/6] cputune: support cputune for qemu driver

2011-03-02 Thread Osier Yang
于 2011年03月03日 12:53, Nikunj A. Dadhania 写道: On Sun, 27 Feb 2011 22:39:18 +0800, Osier Yangjy...@redhat.com wrote: When domain startup, setting cpu affinity and cpu shares according to the cputune xml specified in domain xml. Modify qemudDomainPinVcpu to update domain config for vcpupin, and

[libvirt] [PATCH] virsh: fix memtune's help message for swap_hard_limit

2011-03-02 Thread KAMEZAWA Hiroyuki
I found this when I used virsh memtune... BTW, how to fix http://libvirt.org/formatdomain.html 's memtune description ? == From 541ae04430f376e8168b413a20b35dce49779816 Mon Sep 17 00:00:00 2001 From: KAMEZAWA Hiroyuki kamezawa.hir...@jp.fujitsu.com Date: Thu, 3 Mar 2011 14:24:45 +0900 Subject:

Re: [libvirt] Anyone is working on Ability to send NMI and SysRq key strokes to guest?

2011-03-02 Thread Osier Yang
于 2011年03月03日 11:23, Hu Tao 写道: CC Lai On Thu, Mar 03, 2011 at 11:17:51AM +0800, Osier Yang wrote: Hi, I'm working on these two features, but before doing any more work, ping the list in case of someone else is already working on it, to avoid duplicate working, :-) Lai is already being on

Re: [libvirt] [PATCH] virsh: fix memtune's help message for swap_hard_limit

2011-03-02 Thread Osier Yang
于 2011年03月03日 13:25, KAMEZAWA Hiroyuki 写道: I found this when I used virsh memtune... Happened to see a bug for this yesterday. BTW, how to fix http://libvirt.org/formatdomain.html 's memtune description ? How about be consitent with what cgroup doc says? :-)

[libvirt] problem attaching/detaching disk

2011-03-02 Thread Shi Jin
Hi there, Attaching/detachnig virtio disk to a VM used to work fine with RHEL-5 but with RHEL-6 it seems to have problems. Attaching seems to work. For example, I can do virsh attach-disk vmname qcow2 file name vdb --driver file --subdriver qcow2 However, it generates a bit weird XML:

Re: [libvirt] [PATCH] virsh: fix memtune's help message for swap_hard_limit

2011-03-02 Thread KAMEZAWA Hiroyuki
On Thu, 03 Mar 2011 14:02:32 +0800 Osier Yang jy...@redhat.com wrote: 于 2011年03月03日 13:25, KAMEZAWA Hiroyuki 写道: I found this when I used virsh memtune... Happened to see a bug for this yesterday. Oh ;) BTW, how to fix http://libvirt.org/formatdomain.html 's memtune description ?

Re: [libvirt] [PATCH] virsh: fix memtune's help message for swap_hard_limit

2011-03-02 Thread Osier Yang
于 2011年03月03日 14:10, KAMEZAWA Hiroyuki 写道: On Thu, 03 Mar 2011 14:02:32 +0800 Osier Yangjy...@redhat.com wrote: 于 2011年03月03日 13:25, KAMEZAWA Hiroyuki 写道: I found this when I used virsh memtune... Happened to see a bug for this yesterday. Oh ;) BTW, how to fix

Re: [libvirt] problem attaching/detaching disk

2011-03-02 Thread Wen Congyang
At 03/03/2011 02:11 PM, Shi Jin Write: Hi there, Attaching/detachnig virtio disk to a VM used to work fine with RHEL-5 but with RHEL-6 it seems to have problems. Attaching seems to work. For example, I can do virsh attach-disk vmname qcow2 file name vdb --driver file --subdriver qcow2