Re: Changing clock in KVM host may cause VM to hang

2011-08-16 Thread 编码人
Hi, Does anyone know this issue? Thanks, Paul On Sat, Aug 13, 2011 at 8:10 AM, 编码人 wrote: > > Hi, > > My KVM guest OS is Windows 7. If I change the clock in KVM host > (Redhat Enterprise Linux 6), Windows may hang --I can't move mouse in > the VNC desktop. (If I only set clock to be several min

Re: [RFC PATCH v3 3/4] lock to protect memslots

2011-08-16 Thread Paolo Bonzini
On 08/15/2011 11:15 PM, Paolo Bonzini wrote: On 08/15/2011 01:27 PM, Umesh Deshpande wrote: Yes, the mru list patch would obviate the need of holding the ram_list mutex in qemu_get_ram_ptr. Feel free to take it and complete it with locking then! Also, I was planning to protect the whole migr

guests hang when running concurrently

2011-08-16 Thread Paolo Greppi
Hi there, I have the issue that launching more than one guest concurrently causes them all to hang within 1 to 60 min even if there is no activity. I mean that: - each guest takes 100% CPU - guests do not respond to ssh, ACPI shutdown/restart etc. - libvirt daemon does not respond This only hap

Re: Changing clock in KVM host may cause VM to hang

2011-08-16 Thread lidong chen
2011/8/16 编码人 : > Hi, > > Does anyone know this issue? > > Thanks, > Paul > > On Sat, Aug 13, 2011 at 8:10 AM, 编码人 wrote: >> >> Hi, >> >> My KVM guest OS is Windows 7. If I change the clock in KVM host >> (Redhat Enterprise Linux 6), Windows may hang --I can't move mouse in >> the VNC desktop. (If

0.15: is glib actually needed?

2011-08-16 Thread Michael Tokarev
Each time I build qemu-kvm, my build script complains that it is needlessly linked against libglib-2.0 without using any symbols from that library. So is glib really needed for qemu-kvm? How it's different from qemu-0.15? Thanks, /mjt -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH][RFC] post copy chardevice (was Re: [RFC] postcopy livemigration proposal)

2011-08-16 Thread Avi Kivity
On 08/15/2011 06:42 PM, Isaku Yamahata wrote: On Mon, Aug 15, 2011 at 12:29:37PM -0700, Avi Kivity wrote: > On 08/12/2011 04:07 AM, Isaku Yamahata wrote: >> This is a character device to hook page access. >> The page fault in the area is reported to another user process by >> this chardriver.

[RFC PATCH] mm/hugepages: Fix race between hugetlbfs umount and quota update.

2011-08-16 Thread Andrew Barry
Discussion was titled: Fix refcounting in hugetlbfs quota handling This patch fixes a race between the umount of a hugetlbfs filesystem, and quota updates in that filesystem, which can result in the update of the filesystem quota record, after the record structure has been freed. Rather than an

Re: Fix refcounting in hugetlbfs quota handling

2011-08-16 Thread Andrew Barry
It is not a unique KVM problem. We saw the race while doing large async rDMA in our network driver, but I can imagine it happening with a slow NFS server, or other DMA that could complete after umount. What I need, in order to push this upstream, is: 1. For you to light a fire under my feet to get

[GIT PULL] KVM updates for 3.1-rc2

2011-08-16 Thread Avi Kivity
Linus, Please pull from ssh://master.kernel.org/pub/scm/virt/kvm/kvm.git kvm-updates/3.1 to receive fixes for Kconfig problems introduced by the KVM steal time implementation. Randy Dunlap (2): KVM: fix TASK_DELAY_ACCT kconfig warning KVM: uses TASKSTATS, depends on NET arch/

[PATCH] virtio-blk: Add stats VQ to collect information about devices

2011-08-16 Thread Sasha Levin
This patch adds support for an optional stats vq that works similary to the stats vq provided by virtio-balloon. The purpose of this change is to allow collection of statistics about working virtio-blk devices to easily analyze performance without having to tap into the guest. Cc: Rusty Russell

Re: 0.15: is glib actually needed?

2011-08-16 Thread Paolo Bonzini
On 08/16/2011 03:57 AM, Michael Tokarev wrote: Each time I build qemu-kvm, my build script complains that it is needlessly linked against libglib-2.0 without using any symbols from that library. So is glib really needed for qemu-kvm? How it's different from qemu-0.15? glib is only needed for

Re: Changing clock in KVM host may cause VM to hang

2011-08-16 Thread 编码人
Hi, Lidong, Yes, running ntp client in Guest OS can synchronize the time. But if I change the clock of the host, the Guest OS may immediately have problems, and the clock perhaps has no chances to synchronize. Thanks, Paul 2011/8/16 lidong chen : > 2011/8/16 编码人 : >> Hi, >> >> Does anyone know t

Re: Changing clock in KVM host may cause VM to hang

2011-08-16 Thread Xiao Guangrong
On 08/16/2011 03:50 PM, 编码人 wrote: > Hi, > > Does anyone know this issue? > Could you describe your environment more detailed please? - Your host information (32/64, cpuinfo) - Your guest information (32/64) And please enable the trace events of kvm to see what happened when the guest was hangi

[RFC PATCH v4 0/5] Separate thread for VM migration

2011-08-16 Thread Umesh Deshpande
Following patch series deals with VCPU and iothread starvation during the migration of a guest. Currently the iothread is responsible for performing the guest migration. It holds qemu_mutex during the migration and doesn't allow VCPU to enter the qemu mode and delays its return to the guest. The gu

[RFC PATCH v4 2/5] ramlist mutex

2011-08-16 Thread Umesh Deshpande
ramlist mutex is implemented to protect the RAMBlock list traversal in the migration thread from their addition/removal from the iothread. Signed-off-by: Umesh Deshpande --- cpu-all.h |2 ++ exec.c| 19 +++ qemu-common.h |2 ++ 3 files changed, 23 insertions

[RFC PATCH v4 1/5] MRU ram list

2011-08-16 Thread Umesh Deshpande
This patch creates a new list of RAM blocks in MRU order. So that separate locking rules can be applied to the regular RAM block list and the MRU list. Signed-off-by: Paolo Bonzini --- cpu-all.h |2 ++ exec.c| 17 - 2 files changed, 14 insertions(+), 5 deletions(-) dif

[RFC PATCH v3 5/5] Making iothread block for migrate_cancel

2011-08-16 Thread Umesh Deshpande
Following patch makes iothread wait until the migration thread responds to the migrate_cancel request and terminates its execution. Signed-off-by: Umesh Deshpande --- buffered_file.c | 13 - buffered_file.h |3 +++ hw/hw.h |5 - migration.c |

[RFC PATCH v4 4/5] separate thread for VM migration

2011-08-16 Thread Umesh Deshpande
This patch creates a separate thread for the guest migration on the source side. migrate_cancel request from the iothread is handled asynchronously. That is, iothread submits migrate_cancel to the migration thread and returns, while the migration thread attends this request at the next iteration to

[RFC PATCH v4 3/5] separate migration bitmap

2011-08-16 Thread Umesh Deshpande
This patch creates a migration bitmap, which is periodically kept in sync with the qemu bitmap. A separate copy of the dirty bitmap for the migration avoids concurrent access to the qemu bitmap from iothread and migration thread. Signed-off-by: Umesh Deshpande --- arch_init.c | 26

[PATCH] KVM: emulate lapic tsc deadline timer for hvm

2011-08-16 Thread Liu, Jinsong
>From a9670ddff84080c56183e2d678189e100f891174 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong Date: Wed, 17 Aug 2011 11:36:28 +0800 Subject: [PATCH] KVM: emulate lapic tsc deadline timer for hvm This patch emulate lapic tsc deadline timer for hvm: Enumerate tsc deadline timer capacibility by CPUID;

[PATCH] Client: Add cgroup testing

2011-08-16 Thread Lucas Meneghel Rodrigues
From: root This patchset adds a cgroup client test module, plus support libraries for doing cgroup testing: cgroup.py: * Structure for different cgroup subtests * Contains basic "cgroup-memory" test cgroup_common.py: * Library for cgroup handling (intended to be used from kvm test in the futu

Re: [RFC PATCH v4 2/5] ramlist mutex

2011-08-16 Thread Paolo Bonzini
On 08/16/2011 08:56 PM, Umesh Deshpande wrote: @@ -3001,8 +3016,10 @@ void qemu_ram_free_from_ptr(ram_addr_t addr) QLIST_FOREACH(block,&ram_list.blocks, next) { if (addr == block->offset) { +qemu_mutex_lock_ramlist(); QLIST_REMOVE(block, next);