[libvirt] [v3] qemu: Support vram for video of qxl type

2011-03-06 Thread Osier Yang
For qemu names the primary vga as qxl-vga: 1) if vram is specified for 2nd qxl device: -vga qxl -global qxl-vga.vram_size=$SIZE \ -device qxl,id=video1,vram_size=$SIZE,... 2) if vram is not specified for 2nd qxl device, (use the default set by global): -vga qxl -global

[libvirt] qemuDomainMonitorCommand

2011-03-06 Thread Anthony Liguori
Hi, I've been looking at the qemuDomainMonitorCommand interface and I see a few issues with it. The current interface can take a JSON string and return a JSON string but it only works for successful commands. I'd like to hook this interface up to libqmp but it would mean dropping all of

[libvirt] [PATCH 1/2] rename qemuDomainDetachSCSIDiskDevice to qemuDomainDetachDiskDevice

2011-03-06 Thread Wen Congyang
The way to detach a USB disk is the same as that to detach a SCSI disk. Rename this function and we can use it to detach a USB disk. Signed-off-by: Wen Congyang we...@cn.fujitsu.com --- src/qemu/qemu_driver.c |3 +-- src/qemu/qemu_hotplug.c | 13 +++-- src/qemu/qemu_hotplug.h |

[libvirt] [PATCH 2/2] support to detach USB disk

2011-03-06 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com --- src/qemu/qemu_driver.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index f4e52b1..2892dfe 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -4282,6

[libvirt] [PATCH] Don't return an error if fail to create blkio controller

2011-03-06 Thread Hu Tao
This patch enables cgroup controllers as much as possible by skipping the creation of blkio controller when running with old kenels that doesn't support multi-level directory for blkio controller. Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- src/util/cgroup.c | 28

Re: [libvirt] problem attaching/detaching disk

2011-03-06 Thread Wen Congyang
At 03/05/2011 05:35 AM, Shi Jin Write: Although the attach/detach problem has been solved, I fond the driver name issue still causes problems restoring from a saved VM with disk attached. I can reproduce this a bug of libvirt: we can not restore the VM from the file we saved. Thank you for

Re: [libvirt] problem attaching/detaching disk

2011-03-06 Thread Shi Jin
I am very glad to hear that you can reproduce this problem. Please keep me posted on the status of this patch. One more question which might be more appropriate for Redhat: any idea when this fix would go into RHEL-6 as a bug fix? Should I open a bug ticket at RHEL support? Thank you very much.

[libvirt] Next release schedule

2011-03-06 Thread Daniel Veillard
So the goal is to get a release by the end of the month. I usually try to push those on Friday, but somehow I would feel better to avoid April 1st espcially as we try to make a 0.9.0 release :-) Let's try to start the freeze on Thu 24, to get a release one week later on March 31, so this means

Re: [libvirt] [PATCH 1/6] Force all logs to go to the round robbin memory buffer

2011-03-06 Thread Daniel Veillard
On Fri, Mar 04, 2011 at 08:50:54AM -0700, Eric Blake wrote: On 03/04/2011 03:30 AM, Daniel Veillard wrote: In the subject - s/robbin/robin/ Oh well, you already pushed it with the typo. yeah, grin :-\ ... to my defense, I really though it was spelled that way, it's not a typo, a real

[libvirt] [PATCH] unlock eventLoop before calling callback function

2011-03-06 Thread Wen Congyang
When I use newest libvirt to save a domain, libvirtd will be deadlock. Here is the output of gdb: (gdb) thread 3 [Switching to thread 3 (Thread 0x7f972a1fc710 (LWP 30265))]#0 0x00351fe0e034 in __lll_lock_wait () from /lib64/libpthread.so.0 (gdb) bt #0 0x00351fe0e034 in __lll_lock_wait

[libvirt] [PATCH] check driver name while attaching disk

2011-03-06 Thread Wen Congyang
This bug was reported by Shi Jin(jinzish...@gmail.com): = # virsh attach-disk RHEL6RC /var/lib/libvirt/images/test3.img vdb --driver file --subdriver qcow2 Disk attached successfully # virsh save RHEL6RC /var/lib/libvirt/images/memory.save Domain RHEL6RC saved to

Re: [libvirt] [PATCH 5/6] Add an an internal API for emergency dump of debug buffer

2011-03-06 Thread Daniel Veillard
On Fri, Mar 04, 2011 at 08:53:55AM -0700, Eric Blake wrote: On 03/04/2011 03:30 AM, Daniel Veillard wrote: virLogEmergencyDumpAll() allows to dump the content of the debug buffer from within a signal handler. It saves to all log file or stderr if none is found * src/util/logging.h