Re: [libvirt] [PATCH 2/3] qemu: unlock qemu driver and vm before returning from processWatchdogEvent()

2011-03-30 Thread Hu Tao
On Wed, Mar 30, 2011 at 12:34:39PM +0800, Wen Congyang wrote: --- src/qemu/qemu_driver.c | 28 +++- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index f843dc8..d79d61b 100644 ---

Re: [libvirt] [PATCH 3/3] hold an extra reference while handling watchdog event

2011-03-30 Thread Hu Tao
On Wed, Mar 30, 2011 at 12:34:49PM +0800, Wen Congyang wrote: If the domain is not persistent, and qemu quited unexpectedly before calling processWatchdogEvent(), vm will be freed and the function processWatchdogEvent() will be dangerous. --- src/qemu/qemu_driver.c | 10 ++

Re: [libvirt] [PATCH] do not send monitor command after monitor met error

2011-03-30 Thread Wen Congyang
At 03/29/2011 05:59 PM, Daniel P. Berrange Write: On Tue, Mar 29, 2011 at 03:22:40PM +0800, Wen Congyang wrote: If the monitor met a error, and we will call qemuProcessHandleMonitorEOF(). But we may try to send monitor command after qemuProcessHandleMonitorEOF() returned. Then libvirtd will be

Re: [libvirt] [PATCH 2/2] check whether qemuMonitorJSONHMP() failed

2011-03-30 Thread Wen Congyang
At 03/29/2011 09:58 PM, Jiri Denemark Write: On Tue, Mar 29, 2011 at 17:48:48 +0800, Wen Congyang wrote: diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index eed83f4..647e2bb 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -906,7 +906,14 @@ int

[libvirt] Can't get connection to libvirt if one of the guests' monitor is occupied by other app

2011-03-30 Thread Osier Yang
Hi, As $subject, e.g. the monitor is being used by netcat. Is it expected? Should we only skip to reconnect the domain monitor which is being locked by other app with a timeout specified on qemuMonitorOpenUnix (it blocks when trying to connect to the unix socket)? so that it can get a

[libvirt] [PATCH] do not lock vm while allocating memory

2011-03-30 Thread Wen Congyang
There is no need to lock vm while allocating memory. If allocating memory failed, we forgot to unlock vm. --- src/qemu/qemu_process.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index e31e1b4..e74e0f1 100644 ---

[libvirt] [PATCH] fix memory leak in qemuProcessHandleGraphics()

2011-03-30 Thread Wen Congyang
If strdup(x509dname) or strdup(saslUsername) success, but strdup(x509dname) or strdup(saslUsername) failed, subject-nidentity is not the num elements of subject-identities, and we will leak some memory. --- src/qemu/qemu_process.c | 12 ++-- 1 files changed, 6 insertions(+), 6

[libvirt] [BUG] Managed save qemu state gets deleted after failed resume

2011-03-30 Thread Philipp Hahn
Hello, I haven't had time to provide a fix, but still want you to inform you about a bug: If resuming a saved VM fails with Qemu-0.14, the managed save state file /var/lib/libvirt/qemu/save/$VM.save is still deleted. I think it would be better to only delete the state after an successful

Re: [libvirt] [PATCH] Add support for DNS TXT records

2011-03-30 Thread Michal Novotny
[snip] Perhaps, you could implement (instead of tags for PTR, CNAME, etc.) dns host ip=192.168.122.1 hostnamehost1/hostname hostnamehost2/hostname hostnamehost3/hostname /host /dns instead, which would write a file 192.168.122.1 host1 host2

Re: [libvirt] [PATCH] Add support for DNS TXT records

2011-03-30 Thread Michal Novotny
On 03/30/2011 12:41 PM, Michal Novotny wrote: 1) /usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --txt-record=txt-record,some value, which is something --addn-hosts=/var/run/libvirt/network/default.hosts

Re: [libvirt] [PATCH] Add support for DNS TXT records

2011-03-30 Thread Paolo Bonzini
On 03/30/2011 01:00 PM, Michal Novotny wrote: I think you should triage it a bit more, e.g. with strace -ff. Anyway, there is no hurry of doing this I think. Well, you mean to use strace on the daemonized process? Wherever it helps understanding what's happening. :) Also, I've been

Re: [libvirt] [PATCH] Add support for DNS TXT records

2011-03-30 Thread Michal Novotny
On 03/30/2011 01:00 PM, Michal Novotny wrote: I think you should triage it a bit more, e.g. with strace -ff. Anyway, there is no hurry of doing this I think. Well, you mean to use strace on the daemonized process? Wherever it helps understanding what's happening. :) Also, I've been testing

[libvirt] [libvirt-snmp][PATCH v4 2/4] Add libvirt error handling function

2011-03-30 Thread Michal Privoznik
--- src/Makefile.am|2 ++ src/libvirtSnmpError.c | 34 ++ src/libvirtSnmpError.h | 31 +++ 3 files changed, 67 insertions(+), 0 deletions(-) create mode 100644 src/libvirtSnmpError.c create mode 100644

[libvirt] [libvirt-snmp][PATCH v4 0/4] Add SNMP trap/notification support

2011-03-30 Thread Michal Privoznik
The fourth version. In case we build against libvirt older than 0.9.0 (which have old event API), we need to include some sources from libvirt git. So we are able to run even on older RHELs, like 5.6. Those files were copied to our git and modified very slighty. Finally, we have a

[libvirt] [libvirt-snmp][PATCH v4 3/4] Create functions to fill in and send notification packets.

2011-03-30 Thread Michal Privoznik
Before sending snmp notification we need to fill in useful data, like domain status, UUID, etc. --- src/Makefile.am|2 + src/README.txt |7 ++- src/libvirtNotifications.c | 110 src/libvirtNotifications.h | 21

Re: [libvirt] [PATCH] Add support for DNS TXT records

2011-03-30 Thread Michal Novotny
On 03/30/2011 01:00 PM, Michal Novotny wrote: I think you should triage it a bit more, e.g. with strace -ff. Anyway, there is no hurry of doing this I think. Well, you mean to use strace on the daemonized process? Wherever it helps understanding what's happening. :) It was a good idea to

Re: [libvirt] How to get the IP address of a Domain?

2011-03-30 Thread Philipp Hahn
Hello, Am Mittwoch 30 März 2011 12:10:18 schrieb 徐滕: I'm new to libvirt, and have some questions about How to get the IP address of a Domain? A domain does not have an IP address. A domain is equivalent to a PC in hardware, which might have none, 1 2 or more network cards, each one with it's

[libvirt] [PATCH] qemu: Ignore libvirt debug messages in qemu log

2011-03-30 Thread Jiri Denemark
qemu driver uses a 4K buffer for reading qemu log file. This is enough when only qemu's output is present in the log file. However, when debugging messages are turned on, intermediate libvirt process fills the log with a bunch of debugging messages before it executes qemu binary. In such a case

Re: [libvirt] 0.9.0 freeze week, RC2 version to test

2011-03-30 Thread Guido Günther
On Tue, Mar 29, 2011 at 10:46:59PM +0800, Daniel Veillard wrote: On Mon, Mar 28, 2011 at 02:25:38PM +0800, Daniel Veillard wrote: [...] I will regenerate a rc2 as soon as Eric pending patch queue and outgoing fd patches are in as I think they should really make 0.9.0 There may be more

[libvirt] [PATCH 0/2] Network: Add TXT record and hosts support for DNS on virtual network

2011-03-30 Thread Michal Novotny
Hi, this is the patch to introduce the TXT record support for the DNS service on the virtual network. This can be defined using the txt-record subelement in the dns element of the network XML description. First patch is adding TXT record support to the DNS service on the virtual network and the

[libvirt] [PATCH 1/2] Network: Add TXT record support for virtual DNS service

2011-03-30 Thread Michal Novotny
Hi, this is the patch to add support for adding TXT records to the DNS service running on the virtual network. This has been tested on Fedora-14 i386 box and tests are also added to RelaxNG schema and test XML files. It's been tested and checked/syntax-checked and everything was working fine.

[libvirt] [PATCH 2/2] Network: Add support for DNS hosts definition

2011-03-30 Thread Michal Novotny
Hi, this is the patch to add support for defining the hosts into the DNS service on the virtual network. You can define the host IP address and the aliases for the IP address. The DNS hosts record can be defined in the XML file as the host element in this form: host ip='192.168.122.1'

[libvirt] [RFC] Add flag for virsh undefine to remove/wipe the disk devices

2011-03-30 Thread Osier Yang
Hi, All I'm thinking to introduce a new flag (something like --remove-disks, --wipe-disks) for virsh undefine, so that the user can choose whether to remove/wipe the disk devices or not, have seen this requirement in many places, @libvirt-users, public #virt, and also we have a bug of this

[libvirt] [PATCH] Fix an occurence of 0.8.9 in the doc

2011-03-30 Thread Daniel Veillard
Eric found this out during a review, I then searched the full tree and this was the only occurence of 0.8.9 hopefully that's enough, pushed as this is trivial, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ dan...@veillard.com | Rpmfind RPM search

Re: [libvirt] [PATCH 0/2] Network: Add TXT record and hosts support for DNS on virtual network

2011-03-30 Thread Daniel Veillard
On Wed, Mar 30, 2011 at 02:57:10PM +0200, Michal Novotny wrote: Hi, this is the patch to introduce the TXT record support for the DNS service on the virtual network. This can be defined using the txt-record subelement in the dns element of the network XML description. First patch is adding

Re: [libvirt] [PATCH 0/2] Network: Add TXT record and hosts support for DNS on virtual network

2011-03-30 Thread Michal Novotny
On Wed, Mar 30, 2011 at 02:57:10PM +0200, Michal Novotny wrote: Hi, this is the patch to introduce the TXT record support for the DNS service on the virtual network. This can be defined using the txt-record subelement in the dns element of the network XML description. First patch is adding

Re: [libvirt] [RFC] Add flag for virsh undefine to remove/wipe the disk devices

2011-03-30 Thread Daniel Veillard
On Wed, Mar 30, 2011 at 09:39:14PM +0800, Osier Yang wrote: Hi, All I'm thinking to introduce a new flag (something like --remove-disks, --wipe-disks) for virsh undefine, so that the user can choose whether to remove/wipe the disk devices or not, have seen this requirement in many places,

Re: [libvirt] [PATCH 0/2] Network: Add TXT record and hosts support for DNS on virtual network

2011-03-30 Thread Michal Novotny
On Wed, Mar 30, 2011 at 02:57:10PM +0200, Michal Novotny wrote: Hi, this is the patch to introduce the TXT record support for the DNS service on the virtual network. This can be defined using the txt-record subelement in the dns element of the network XML description. First patch is adding

Re: [libvirt] [PATCH 0/2] Network: Add TXT record and hosts support for DNS on virtual network

2011-03-30 Thread Jiri Denemark
On Wed, Mar 30, 2011 at 15:47:45 +0200, Michal Novotny wrote: Principle sounds fine but let's defer this to after 0.9.0, :) Daniel I already mentioned it's since 0.9.0 in the formatnetwork.html.in file :) Which is wrong since it will be since 0.9.1 :-) Jirka -- libvir-list mailing

Re: [libvirt] [PATCH 0/2] Network: Add TXT record and hosts support for DNS on virtual network

2011-03-30 Thread Daniel Veillard
On Wed, Mar 30, 2011 at 03:54:07PM +0200, Michal Novotny wrote: On Wed, Mar 30, 2011 at 02:57:10PM +0200, Michal Novotny wrote: Hi, this is the patch to introduce the TXT record support for the DNS service on the virtual network. This can be defined using the txt-record subelement in the

Re: [libvirt] [PATCH 0/2] Network: Add TXT record and hosts support for DNS on virtual network

2011-03-30 Thread Michal Novotny
On Wed, Mar 30, 2011 at 15:47:45 +0200, Michal Novotny wrote: Principle sounds fine but let's defer this to after 0.9.0, :) Daniel I already mentioned it's since 0.9.0 in the formatnetwork.html.in file :) Which is wrong since it will be since 0.9.1 :-) Jirka Oh, I can see the point

Re: [libvirt] [RFC] Add flag for virsh undefine to remove/wipe the disk devices

2011-03-30 Thread Dave Allan
On Wed, Mar 30, 2011 at 09:39:14PM +0800, Osier Yang wrote: Hi, All I'm thinking to introduce a new flag (something like --remove-disks, --wipe-disks) for virsh undefine, so that the user can choose whether to remove/wipe the disk devices or not, have seen this requirement in many places,

Re: [libvirt] [PATCH 0/2] Network: Add TXT record and hosts support for DNS on virtual network

2011-03-30 Thread Michal Novotny
On Wed, Mar 30, 2011 at 03:54:07PM +0200, Michal Novotny wrote: On Wed, Mar 30, 2011 at 02:57:10PM +0200, Michal Novotny wrote: Hi, this is the patch to introduce the TXT record support for the DNS service on the virtual network. This can be defined using the txt-record subelement in the dns

Re: [libvirt] [RFC] Add flag for virsh undefine to remove/wipe the disk devices

2011-03-30 Thread Osier Yang
于 2011年03月30日 21:50, Daniel Veillard 写道: On Wed, Mar 30, 2011 at 09:39:14PM +0800, Osier Yang wrote: Hi, All I'm thinking to introduce a new flag (something like --remove-disks, --wipe-disks) for virsh undefine, so that the user can choose whether to remove/wipe the disk devices or not, have

Re: [libvirt] [RFC] Add flag for virsh undefine to remove/wipe the disk devices

2011-03-30 Thread Osier Yang
于 2011年03月30日 21:58, Dave Allan 写道: On Wed, Mar 30, 2011 at 09:39:14PM +0800, Osier Yang wrote: Hi, All I'm thinking to introduce a new flag (something like --remove-disks, --wipe-disks) for virsh undefine, so that the user can choose whether to remove/wipe the disk devices or not, have seen

Re: [libvirt] [RFC] Add flag for virsh undefine to remove/wipe the disk devices

2011-03-30 Thread Osier Yang
于 2011年03月30日 23:23, Osier Yang 写道: 于 2011年03月30日 21:50, Daniel Veillard 写道: On Wed, Mar 30, 2011 at 09:39:14PM +0800, Osier Yang wrote: Hi, All I'm thinking to introduce a new flag (something like --remove-disks, --wipe-disks) for virsh undefine, so that the user can choose whether to

Re: [libvirt] [Libvirt-announce] 0.9.0 freeze week, RC2 version to test

2011-03-30 Thread Justin Clift
On 30/03/2011, at 2:16 AM, Justin Clift wrote: On 30/03/2011, at 1:46 AM, Daniel Veillard wrote: On Mon, Mar 28, 2011 at 02:25:38PM +0800, Daniel Veillard wrote: [...] I will regenerate a rc2 as soon as Eric pending patch queue and outgoing fd patches are in as I think they should really make

Re: [libvirt] [RFC] Add flag for virsh undefine to remove/wipe the disk devices

2011-03-30 Thread Jean-Baptiste Rouault
On Wednesday 30 March 2011 17:23:51 Osier Yang wrote: Yes, actually I also prefer to add new flag to API, but not in virsh instead, however, adding new flag argument is not workable, how about introduce a new API, something like virDomainUndefineFlag? I wanted to suggest something similar

Re: [libvirt] [RFC] Add flag for virsh undefine to remove/wipe the disk devices

2011-03-30 Thread Eric Blake
On 03/30/2011 07:39 AM, Osier Yang wrote: Hi, All I'm thinking to introduce a new flag (something like --remove-disks, --wipe-disks) for virsh undefine, so that the user can choose whether to remove/wipe the disk devices or not, have seen this requirement in many places, @libvirt-users,

[libvirt] [PATCH] docs: mention C89 syntax preferences

2011-03-30 Thread Eric Blake
* docs/hacking.html.in (Code formatting): Document that // comment and declaration-after-statement are discouraged. * HACKING: Regenerate. --- Any comments on the wording chosen here? Should this go in for 0.9.0? HACKING |6 ++ docs/hacking.html.in | 10 ++ 2

Re: [libvirt] [PATCH] qemu: Fix media eject with qemu-0.12.*

2011-03-30 Thread Laine Stump
On 03/29/2011 10:10 AM, Jiri Denemark wrote: In qemu-0.12.* device '...' is locked message was changed to Device ... so libvirt was no longer detecting this as an error. --- bootstrap.conf |1 + src/qemu/qemu_monitor_text.c |2 +- 2 files changed, 2 insertions(+), 1

Re: [libvirt] [PATCH] qemu: Fix media eject with qemu-0.12.*

2011-03-30 Thread Eric Blake
On 03/30/2011 12:16 PM, Laine Stump wrote: +++ b/bootstrap.conf @@ -63,6 +63,7 @@ sigpipe snprintf socket stpcpy +strcasestr Even though strcasestr is a non-standard function, you're using gnulib for it, so that shouldn't be a problem. And your change will work for both old and

[libvirt] [TCK] nwfilter: add tests for reject, drop and accept targets

2011-03-30 Thread Stefan Berger
This patch adds test cases for the reject, drop and accept targets. Signed-off-by: Stefan Berger stef...@linux.vnet.ibm.com --- scripts/nwfilter/nwfilterxml2fwallout/target-test.fwall | 61 ++ scripts/nwfilter/nwfilterxml2xmlin/target-test.xml | 66

Re: [libvirt] [PATCH] qemu: Fix media eject with qemu-0.12.*

2011-03-30 Thread Jiri Denemark
On Wed, Mar 30, 2011 at 12:27:32 -0600, Eric Blake wrote: On 03/30/2011 12:16 PM, Laine Stump wrote: +++ b/bootstrap.conf @@ -63,6 +63,7 @@ sigpipe snprintf socket stpcpy +strcasestr Even though strcasestr is a non-standard function, you're using gnulib for it, so that

Re: [libvirt] [TCK] nwfilter: add tests for reject, drop and accept targets

2011-03-30 Thread Eric Blake
On 03/30/2011 12:29 PM, Stefan Berger wrote: This patch adds test cases for the reject, drop and accept targets. Signed-off-by: Stefan Berger stef...@linux.vnet.ibm.com --- scripts/nwfilter/nwfilterxml2fwallout/target-test.fwall | 61 ++

Re: [libvirt] [PATCH] docs: mention C89 syntax preferences

2011-03-30 Thread Jiri Denemark
On Wed, Mar 30, 2011 at 11:27:11 -0600, Eric Blake wrote: * docs/hacking.html.in (Code formatting): Document that // comment and declaration-after-statement are discouraged. * HACKING: Regenerate. --- Any comments on the wording chosen here? Should this go in for 0.9.0? ACK, wording seems

Re: [libvirt] [PATCH] qemu: Ignore libvirt debug messages in qemu log

2011-03-30 Thread Eric Blake
On 03/30/2011 06:17 AM, Jiri Denemark wrote: qemu driver uses a 4K buffer for reading qemu log file. This is enough when only qemu's output is present in the log file. However, when debugging messages are turned on, intermediate libvirt process fills the log with a bunch of debugging messages

Re: [libvirt] [TCK] nwfilter: add tests for reject, drop and accept targets

2011-03-30 Thread Stefan Berger
On 03/30/2011 03:23 PM, Eric Blake wrote: On 03/30/2011 12:29 PM, Stefan Berger wrote: This patch adds test cases for the reject, drop and accept targets. Signed-off-by: Stefan Bergerstef...@linux.vnet.ibm.com --- scripts/nwfilter/nwfilterxml2fwallout/target-test.fwall | 61 ++

Re: [libvirt] [BUG] qemu quited unexpectedly will cause libvirtd crashed

2011-03-30 Thread Eric Blake
On 03/29/2011 04:17 AM, Wen Congyang wrote: When I edit the domain's config file like this: = disk type='file' device='disk' driver name='qemu' type='qcow2'/ source file='/var/lib/libvirt/images/test3.img'/ target dev='sdb' bus='scsi'/ address

Re: [libvirt] [PATCH] docs: mention C89 syntax preferences

2011-03-30 Thread Eric Blake
On 03/30/2011 01:47 PM, Jiri Denemark wrote: On Wed, Mar 30, 2011 at 11:27:11 -0600, Eric Blake wrote: * docs/hacking.html.in (Code formatting): Document that // comment and declaration-after-statement are discouraged. * HACKING: Regenerate. --- Any comments on the wording chosen here?

Re: [libvirt] How to get the IP address of a Domain?

2011-03-30 Thread Richard W.M. Jones
On Wed, Mar 30, 2011 at 01:43:37PM +0200, Philipp Hahn wrote: Hello, Am Mittwoch 30 März 2011 12:10:18 schrieb 徐滕: I'm new to libvirt, and have some questions about How to get the IP address of a Domain? A domain does not have an IP address. A domain is equivalent to a PC in hardware,

Re: [libvirt] How to get the IP address of a Domain?

2011-03-30 Thread Eric Blake
On 03/30/2011 02:18 PM, Richard W.M. Jones wrote: A domain does not have an IP address. A domain is equivalent to a PC in hardware, which might have none, 1 2 or more network cards, each one with it's own MAC address. This is the only propertpy of the hardware and can be configured via the

Re: [libvirt] How to get the IP address of a Domain? (Philipp Hahn)

2011-03-30 Thread 徐滕
Thanks , Hahn! I think I get your point ,libvirt or the host machine is independent from the guest OS. but ,as I know ,on the VMware ESX server , they supply an extra tool called vmware-tools which can get more information about the Guest OS,including the network info. How did they do

[libvirt] [PATCH] maint: avoid locale-sensitivity in string case comparisons

2011-03-30 Thread Eric Blake
strcase{cmp/str} have the drawback of being sensitive to the global locale; this is unacceptable in a library setting. Prefer a hard-coded C locale alternative for all but virsh, which is user facing and where the global locale isn't changing externally. * .gnulib: Update to latest, for

[libvirt] [libvirt-php][PATCH] Fix virConnectClose failed issue on list_domains

2011-03-30 Thread warp . kawada
This patch for libvirt-php Pre-4.2 version. I checked with libvirt 0.8.8 version. I fixed irConnectClose failed issue on list_domains. And web example codes updated for 0.8.8 API. This issue is: $domains = libvirt_list_domains($conn); PHP Warning: main(): virConnectClose failed with 1 on

Re: [libvirt] [libvirt-php][PATCH] Fix virConnectClose failed issue on list_domains

2011-03-30 Thread warp kawada
sorry. fixed a little. Regards, Yukihiro Kawada diff --git a/examples/libvirt.php b/examples/libvirt.php index 10e7e38..8a54acd 100644 --- a/examples/libvirt.php +++ b/examples/libvirt.php @@ -22,7 +22,7 @@ } function get_hostname() { -

Re: [libvirt] [PATCH] maint: avoid locale-sensitivity in string case comparisons

2011-03-30 Thread Daniel Veillard
On Wed, Mar 30, 2011 at 08:29:53PM -0600, Eric Blake wrote: strcase{cmp/str} have the drawback of being sensitive to the global locale; this is unacceptable in a library setting. Prefer a hard-coded C locale alternative for all but virsh, which is user facing and where the global locale isn't

[libvirt] [PATCH 1/4] [RESEND] setmaxmem: remove the code to invoke virDomainSetMemory in cmdSetmaxmem

2011-03-30 Thread Taku Izumi
This patch removes the code which invokes virDomainSetMemory() in cmdSetmaxmem(). When the new maximum memory size becomes less than the current memory size, I think it is not the libvirt client but the each driver that decides the behavior (reject the operation or shrink the current memory

[libvirt] [PATCH 2/4] maxmem: introduces VIR_DOMAIN_MEM_MAXIMUM flag

2011-03-30 Thread Taku Izumi
This patch introduces VIR_DOMAIN_MEM_MAXIMUM flag. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- include/libvirt/libvirt.h.in |1 + src/libvirt.c|2 ++ 2 files changed, 3 insertions(+) Index: libvirt/include/libvirt/libvirt.h.in

[libvirt] [PATCH 3/4] maxmem: implement virDomainSetMaxMemory API of the qemu driver

2011-03-30 Thread Taku Izumi
This patch implements the code to support virDomainSetMaxMemory API, and to support VIR_DOMAIN_MEM_MAXIMUM flag in qemudDomainSetMemoryFlags function. As a result, we can change the maximum memory size of inactive QEMU guests. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com ---

[libvirt] [PATCH 4/4] setmaxmem: add the new options to virsh setmaxmem command

2011-03-30 Thread Taku Izumi
This patch adds the new options (--live, --config, and --current) to virsh setmaxmem command. The behavior of above options is the same as that of virsh setmem. When the --config option is specified, a modofication is effective for the persistent domain, while the --live option is specified, a

[libvirt] [PATCH 0/4] RFC: vcpupin: configure inactive domains' CPU affinity setting

2011-03-30 Thread Taku Izumi
Hi all, This patchset enables us to configure inactive domains' CPU affinity setting. The basic technique is the same as that of virsh setmem command. = http://www.redhat.com/archives/libvir-list/2011-March/msg00013.html *[PATCH 1/4] vcpupin: inroduce a new libvir API (virDomainPinVcpuFlags)

[libvirt] [PATCH 1/4] vcpupin: inroduce a new libvir API (virDomainPinVcpuFlags)

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

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

2011-03-30 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 | 89 - 1 file changed, 67 insertions(+), 22 deletions(-) Index:

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

2011-03-30 Thread Taku Izumi
This patch adds the new option (--live and --config) 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 specified, it