[libvirt] [PATCH] UML: may be typo

2012-04-08 Thread MATSUDA, Daiki
I found typo in UML driver. MATSUDA Daiki --- libvirt-0.9.11/src/uml/uml_driver.c.orig2012-04-09 11:56:47.105695476 +0900 +++ libvirt-0.9.11/src/uml/uml_driver.c 2012-04-09 11:56:56.653820665 +0900 @@ -249,7 +249,7 @@ umlIdentifyChrPTY(struct uml_driver *dri { int i; -for (i = 0

[libvirt] [PATCH] qemu_agent: support guest-info command

2012-06-25 Thread MATSUDA, Daiki
environment can not access via git and header code is not built with the problem gnulib... Regards MATSUDA Daiki diff -uNrp libvirt-0.9.13.orig/daemon/remote.c libvirt-0.9.13/daemon/remote.c --- libvirt-0.9.13.orig/daemon/remote.c 2012-06-25 16:06:18.0 +0900 +++ libvirt-0.9.13/daemon/remote.c

Re: [libvirt] [PATCH] qemu_agent: support guest-info command

2012-06-28 Thread MATSUDA, Daiki
,name:guest-shutdown},{enabled:true,name:guest-info},{enabled:true,name:guest-ping},{enabled:true,name:guest-sync},{enabled:true,name:guest-sync-delimited}]}} On Tue, Jun 26, 2012 at 12:42:03PM +0900, MATSUDA, Daiki wrote: Currently, libvirt qemu agent supports some QEMU Guest Agent's commands or use

Re: [libvirt] [PATCH] qemu_agent: support guest-info command

2012-07-01 Thread MATSUDA, Daiki
-monitor-command' does not work correctly. Does anyone can get good result with its command ? Regards MATSUDA Daiki On Fri, Jun 29, 2012 at 01:58:05PM +0900, MATSUDA, Daiki wrote: diff -uNrp libvirt-0.9.13.orig/daemon/remote.c libvirt-0.9.13/daemon/remote.c --- libvirt-0.9.13.orig/daemon

Re: [libvirt] [PATCH] qemu_agent: support guest-info command

2012-07-02 Thread MATSUDA, Daiki
Mr. Daniel. I rewrote the patch for libvirt-0.9.13 to move some codes to libvirt-qemu as you suggested. But I am sorry for unusing git, because my joining company is very elegant for network security. So, I have an only way via http to get libvirt's source code... Regards MATSUDA Daiki

[libvirt] [PATCH] qemu_agent: support qemu agent general command

2012-07-05 Thread MATSUDA, Daiki
users to do the very same here as they do in qemu-monitor-command. I prefer to the type of 'virsh qemu-agent-command guest-info', bacause it is user friendly. But I understood the problem and fixed. Regards MATSUDA Daiki $ diffstat libvirt-0.9.13_qemu_agent_command3.patch daemon/remote.c

[libvirt] bug: try to take disk snapshot for LVM2 Volume

2011-09-29 Thread MATSUDA, Daiki
. in qemuDomainSnapshotCreateDiskActive() with voulme driver type. But currently the structures concerning with snapshot or disk has no member to hold such a volume driver information. In addition, as we want to add the LVM2 and other volume snapshot function, we hope you add its information and fix. Regards MATSUDA Daiki

Re: [libvirt] bug: try to take disk snapshot for LVM2 Volume

2011-09-30 Thread MATSUDA, Daiki
(2011/09/30 14:26), MATSUDA, Daiki wrote: I tried the new snapshot function implemented by Eric Blake. It works very well for QCOW2 disk image system. But I often use LVM2 volume for QEMU virtual machines and tried to take disk snapshot by virsh command ( snapshot-create DOMNAME --disk-only

Re: [libvirt] bug: try to take disk snapshot for LVM2 Volume

2011-10-04 Thread MATSUDA, Daiki
On 09/29/2011 11:26 PM, MATSUDA, Daiki wrote: I tried the new snapshot function implemented by Eric Blake. It works very well for QCOW2 disk image system. But I often use LVM2 volume for QEMU virtual machines and tried to take disk snapshot by virsh command ( snapshot-create DOMNAME --disk

Re: [libvirt] [PATCH 2/4] Add new virDomainShutdownFlags API

2011-10-19 Thread MATSUDA, Daiki
have a plan ? MATSUDA Daiki -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH 0/4] Add support for QEMU guest agent control

2011-10-19 Thread MATSUDA, Daiki
. But unfortunately libvirt does not support to xml tags to give socket name options to QEMU for the QEMU guest agent and Virt IO Console. MATSUDA Daiki -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] bug: try to take disk snapshot for LVM2 Volume

2011-11-06 Thread MATSUDA, Daiki
Hi, Eric. On 09/29/2011 11:26 PM, MATSUDA, Daiki wrote: I tried the new snapshot function implemented by Eric Blake. It works very well for QCOW2 disk image system. But I often use LVM2 volume for QEMU virtual machines and tried to take disk snapshot by virsh command ( snapshot-create

Re: [libvirt] bug: try to take disk snapshot for LVM2 Volume

2011-11-13 Thread MATSUDA, Daiki
On 11/06/2011 09:14 PM, MATSUDA, Daiki wrote: I made the patch for the problem to take the snapshot but qcow2. It use the 'qemu-img' command, I know that it is not essential solution. But I think it is better than to link qemu's libraries. Regards @@ -9002,6 +9021,13

Re: [libvirt] bug: try to take disk snapshot for LVM2 Volume

2011-11-15 Thread MATSUDA, Daiki
(2011/11/16 0:35), Dave Allan wrote: On Mon, Nov 14, 2011 at 04:02:21PM -0700, Eric Blake wrote: On 11/13/2011 09:08 PM, MATSUDA, Daiki wrote: NACK. There is nothing inherently wrong with the source file not being a qcow2 file. The whole point of creating a runtime snapshot

Re: [libvirt] bug: try to take disk snapshot for LVM2 Volume

2011-11-20 Thread MATSUDA, Daiki
Sorry, I confirmed the snapshot file is not wrong. I moved the snapshot file created under /dev as /dev/VG1/abc.xx to other place and fixed the config file re-writed by libvirt to use moved snapshot file abc.xx. So, the domain starts with no problem. Regards MATSUDA Daiki On 11/15

[libvirt] virtio console: name=foo is not supported

2011-12-11 Thread MATSUDA, Daiki
in restricted network. MATSUDA Daiki diff -uNrp libvirt-0.9.8.orig/docs/schemas/domaincommon.rng libvirt-0.9.8/docs/schemas/domaincommon.rng --- libvirt-0.9.8.orig/docs/schemas/domaincommon.rng2011-12-08 11:29:49.0 +0900 +++ libvirt-0.9.8/docs/schemas/domaincommon.rng 2011-12-12 07:54

Re: [libvirt] virtio console: name=foo is not supported

2011-12-12 Thread MATSUDA, Daiki
(2011/12/12 22:58), Daniel P. Berrange wrote: On Mon, Dec 12, 2011 at 10:18:23AM +0900, MATSUDA, Daiki wrote: In addition, the QEMU guest agent requires specified socket. Virt IO Console, too. But unfortunately libvirt does not support to xml tags to give socket name options to QEMU

Re: [libvirt] virtio console: name=foo is not supported

2011-12-14 Thread MATSUDA, Daiki
(2011/12/13 13:02), MATSUDA, Daiki wrote: (2011/12/12 22:58), Daniel P. Berrange wrote: On Mon, Dec 12, 2011 at 10:18:23AM +0900, MATSUDA, Daiki wrote: In addition, the QEMU guest agent requires specified socket. Virt IO Console, too. But unfortunately libvirt does not support to xml tags

Re: [libvirt] [PATCH v2 1/3] qemu_agent: Create file system freeze and thaw functions

2012-01-24 Thread MATSUDA, Daiki
I am happy that you provide the patches. These functions simply issue command to guest agent which should freeze or unfreeze all file systems within guest. --- src/qemu/qemu_agent.c | 74 + src/qemu/qemu_agent.h |3 ++ 2 files changed,

Re: [libvirt] [PATCH] qemu_agent: support qemu agent general command

2012-08-05 Thread MATSUDA, Daiki
ACK or do I need to re-write ? Regards MATSUDA Daiki On 07/13/2012 08:02 AM, Michal Privoznik wrote: On 13.07.2012 15:41, Eric Blake wrote: On 07/13/2012 06:25 AM, Michal Privoznik wrote: On 09.07.2012 12:54, Michal Privoznik wrote: [I am pasting your patch here again so I can point out

[libvirt] [PATCH 2/5] add qemuAgentCommand()

2012-08-07 Thread MATSUDA, Daiki
Add qemuAgentCommand() for general qemu agent command. include/libvirt/libvirt-qemu.h |5 + src/qemu/qemu_agent.c | 38 ++ src/qemu/qemu_agent.h |5 + 3 files changed, 48 insertions(+) diff --git

[libvirt] [PATCH 3/5] add virDomainQemuAgentCommand() to qemu driver and remote driver

2012-08-07 Thread MATSUDA, Daiki
Add virDomainQemuAgentCommand() to qemu driver and remote driver to support qemuAgentCommand(). daemon/remote.c| 35 include/libvirt/libvirt-qemu.h |3 + src/driver.h |6 +++ src/libvirt-qemu.c | 58

[libvirt] [PATCH 5/5] Add qemu-agent-command command to virsh

2012-08-07 Thread MATSUDA, Daiki
Add qemu-agent-command command to virsh to support virDomainQemuAgentCommand(). virsh-host.c | 70 +++ 1 file changed, 70 insertions(+) diff --git a/tools/virsh-host.c b/tools/virsh-host.c index d9d09b4..b9180f3 100644 ---

[libvirt] [PATCH 1/5] add timeout seconds to qemuAgentSend()

2012-08-07 Thread MATSUDA, Daiki
Add @seconds valuable to qemuAgentSend(). It points timeout seconds on @timeout true. If @seconds is 0 on @timeout true, use default timeout value (QEMU_AGENT_WAIT_TIME). If @timeout is false, @seconds is meanless. qemu_agent.c | 21 - 1 file changed, 12

[libvirt] [PATCH 0/5] support guest agent general command

2012-08-07 Thread MATSUDA, Daiki
Hi, All. I rewrote the patches as Eric suggested. virsh # help qemu-agent-command NAME qemu-agent-command - Qemu Guest Agent Command SYNOPSIS qemu-agent-command domain [--timeout number] {[--cmd] string}... DESCRIPTION Qemu Guest Agent Command OPTIONS [--domain]

[libvirt] [PATCH 4/5] Add virDomainQemuAgentCommand() support function to python module

2012-08-07 Thread MATSUDA, Daiki
Add virDomainQemuAgentCommand() support function to python module. generator.py |1 + libvirt-qemu-override-api.xml |8 libvirt-qemu-override.c | 31 +++ 3 files changed, 40 insertions(+) diff --git a/python/generator.py

Re: [libvirt] [PATCH 2/5] add qemuAgentCommand()

2012-08-08 Thread MATSUDA, Daiki
(2012/08/09 11:08), Eric Blake wrote: On 08/07/2012 06:04 PM, MATSUDA, Daiki wrote: Add qemuAgentCommand() for general qemu agent command. include/libvirt/libvirt-qemu.h |5 + src/qemu/qemu_agent.c | 38 ++ src/qemu

[libvirt] [PATCH 0/7] support guest agent general command v3

2012-08-14 Thread MATSUDA, Daiki
Hi. All. I rewrote the patched. But I modified the feature for the situation @result pointer is NULL. Though before it does not forcely wait, I think it is not meanless because @result pointer is always NULL. And @timeout must be following VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK(-2) : does not

[libvirt] [PATCH 1/7] Add @seconds vaiable to qemuAgentSend()

2012-08-14 Thread MATSUDA Daiki
Add @seconds variable to qemuAgentSend(). When @tiemout is true, @seconds controls how long to wait for a response (if @seconds is VIR_DOMAIN_QEMU_AGENT_COMMAND_DEFAULT, default to QEMU_AGENT_WAIT_TIME). If @timeout is false, @seconds is ignored. Signed-off-by: MATSUDA Daiki matsuda

[libvirt] [PATCH 3/7] add virAgentCommand()

2012-08-14 Thread MATSUDA Daiki
Add virDrvAgentCommand prototype for drivers. Add virAgentCommand() for virDrvAgentCommand. Signed-off-by: MATSUDA Daiki matsuda...@intellilink.co.jp --- include/libvirt/libvirt-qemu.h |3 ++ python/generator.py|1 + src/driver.h |4 +++ src/libvirt

[libvirt] [PATCH 6/7] Add virAgentCommand() support function to python module

2012-08-14 Thread MATSUDA Daiki
Add virAgentCommand() support function to python module. Signed-off-by: MATSUDA Daiki matsuda...@intellilink.co.jp --- python/libvirt-qemu-override-api.xml |8 python/libvirt-qemu-override.c | 29 + 2 files changed, 37 insertions(+), 0

[libvirt] [PATCH 2/7] add qemuAgentArbitraryCommand() for general qemu agent command.

2012-08-14 Thread MATSUDA Daiki
add qemuAgentArbitraryCommand() for general qemu agent command. Signed-off-by: MATSUDA Daiki matsuda...@intellilink.co.jp --- src/qemu/qemu_agent.c | 31 +++ src/qemu/qemu_agent.h |5 + 2 files changed, 36 insertions(+), 0 deletions(-) diff --git a/src

[libvirt] [PATCH 7/7] Add qemu-agent-command to virsh to support virAgentCommand()

2012-08-14 Thread MATSUDA Daiki
Add qemu-agent-command to virsh to support virAgentCommand(). Signed-off-by: MATSUDA Daiki matsuda...@intellilink.co.jp --- tools/virsh-host.c | 89 tools/virsh.pod| 13 +++ 2 files changed, 102 insertions(+), 0 deletions

Re: [libvirt] [PATCH 1/7] Add @seconds vaiable to qemuAgentSend()

2012-08-19 Thread MATSUDA, Daiki
(2012/08/16 21:58), Martin Kletzander wrote: On 08/15/2012 03:36 AM, MATSUDA Daiki wrote: Add @seconds variable to qemuAgentSend(). When @tiemout is true, @seconds controls how long to wait for a response (if @seconds is VIR_DOMAIN_QEMU_AGENT_COMMAND_DEFAULT, default

Re: [libvirt] [PATCH 3/7] add virAgentCommand()

2012-08-19 Thread MATSUDA, Daiki
(2012/08/16 22:13), Martin Kletzander wrote: On 08/15/2012 03:36 AM, MATSUDA Daiki wrote: diff --git a/include/libvirt/libvirt-qemu.h b/include/libvirt/libvirt-qemu.h index 013ed5a..60b83ef 100644 --- a/include/libvirt/libvirt-qemu.h +++ b/include/libvirt/libvirt-qemu.h @@ -50,6 +50,9

Re: [libvirt] [PATCH 5/7] add qemuAgentCommand() for .qemuAgentCommand to remote driver

2012-08-19 Thread MATSUDA, Daiki
(2012/08/16 22:25), Martin Kletzander wrote: On 08/15/2012 03:36 AM, MATSUDA Daiki wrote: diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 353a153..3c60709 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -5368,6 +5368,7 @@ static virDriver

[libvirt] [PATCH v4 0/7] support guest agent general command

2012-08-22 Thread MATSUDA, Daiki
Hi. All. I rewrote the patched for git head tree, adding some code. And @timeout must be following VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK(-2) : does not block and wait forever. VIR_DOMAIN_QEMU_AGENT_COMMAND_DEFAULT(-1) : use default time for waiting VIR_DOMAIN_QEMU_AGENT_COMMAND_NOWIAT(0) : does

[libvirt] [PATCH v4 5/7] add remote driver support Add qemuDomainAgentCommand() which is generated automatically, for .qemuDomainArbitraryAgentCommand to remote driver.

2012-08-22 Thread MATSUDA Daiki
Signed-off-by: MATSUDA Daiki matsuda...@intellilink.co.jp --- src/qemu_protocol-structs | 10 ++ src/remote/qemu_protocol.x | 14 +- src/remote/remote_driver.c |1 + 3 files changed, 24 insertions(+), 1 deletions(-) diff --git a/src/qemu_protocol-structs b/src

[libvirt] [PATCH v4 3/7] Add virDrvDomainQemuAgentCommand prototype for drivers. Add virDrvDomainQemuAgentCommand prototype for drivers. Add virDomainQemuAgentCommand() for virDrvDomainQemuAgentComman

2012-08-22 Thread MATSUDA Daiki
Signed-off-by: MATSUDA Daiki matsuda...@intellilink.co.jp --- include/libvirt/libvirt-qemu.h |3 ++ python/generator.py|1 + src/driver.h |4 +++ src/libvirt-qemu.c | 54 src/libvirt_qemu.syms

[libvirt] [PATCH v4 4/7] add qemu driver support Add qemuDrvDomainAgentCommand() for .qemuDomainArbitraryAgentCommand to qemu driver.

2012-08-22 Thread MATSUDA Daiki
Signed-off-by: MATSUDA Daiki matsuda...@intellilink.co.jp --- src/qemu/qemu_driver.c | 71 1 files changed, 71 insertions(+), 0 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 109d18d..a62d1bb 100644 --- a/src

[libvirt] [PATCH v4 1/7] Add @seconds variable to qemuAgentSend(). Add @seconds variable to qemuAgentSend(). When @tiemout is true, @seconds controls how long to wait for a response (if @seconds is VI

2012-08-22 Thread MATSUDA Daiki
Signed-off-by: MATSUDA Daiki matsuda...@intellilink.co.jp --- include/libvirt/libvirt-qemu.h |7 +++ src/qemu/qemu_agent.c | 32 ++-- 2 files changed, 29 insertions(+), 10 deletions(-) diff --git a/include/libvirt/libvirt-qemu.h b/include/libvirt

[libvirt] [PATCH v4 6/7] add python module support Add virDomainQemuAgentCommand() support function to python module.

2012-08-22 Thread MATSUDA Daiki
Signed-off-by: MATSUDA Daiki matsuda...@intellilink.co.jp --- python/libvirt-qemu-override-api.xml |8 python/libvirt-qemu-override.c | 29 + 2 files changed, 37 insertions(+), 0 deletions(-) diff --git a/python/libvirt-qemu-override-api.xml b

[libvirt] [PATCH v4 7/7] add qemu-agent-command to virsh Add qemu-agent-command to virsh to support virDomainQemuAgentCommand().

2012-08-22 Thread MATSUDA Daiki
Signed-off-by: MATSUDA Daiki matsuda...@intellilink.co.jp --- tools/virsh-host.c | 89 tools/virsh.pod| 13 +++ 2 files changed, 102 insertions(+), 0 deletions(-) diff --git a/tools/virsh-host.c b/tools/virsh-host.c index b09d9f9

[libvirt] [PATCH v4 2/7] add qemuAgentArbitraryCommand() for general qemu agent command. add qemuAgentArbitraryCommand() for general qemu agent command.

2012-08-22 Thread MATSUDA Daiki
Signed-off-by: MATSUDA Daiki matsuda...@intellilink.co.jp --- src/qemu/qemu_agent.c | 30 ++ src/qemu/qemu_agent.h |5 + 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c index 61f070c..c658bf8