Re: [PATCH 1/2] kvm tools: fix repeated io emulation

2011-08-18 Thread Sasha Levin
On Thu, 2011-08-18 at 09:13 +0300, Pekka Enberg wrote: > Hi, > > On Thu, Aug 18, 2011 at 6:06 AM, Xiao Guangrong > wrote: > > When kvm emulates repeation io read instruction, it can exit to user-space > > with > > 'count' > 1, we need to emulate io access for many times > > > > Signed-off-by: Xi

A non-responsive guest problem

2011-08-18 Thread Paul
Hi, Today I saw the guest OS hung and was no responsive. In the host, I found the guest was running via virsh command. But I couldn't use ssh to connect the guest, and even couldn't ping it. I could use VNC saw the desktop of VNC, but I couldn't move the mouse pointer. In the host, the qemu-kvm pro

[PATCH] virtio-blk: Update spec with new stats vq

2011-08-18 Thread Sasha Levin
The diff below is an update to virtio-spec with specification of a stats vq added to virtio-blk. The idea behind adding a stats vq is to simplify pull of information which exists only on the guest and can't be collected on the host. The idea is basically same as the stats vq which exists in virti

Re: [PATCH 1/4] [NEW] cgroup test * general smoke_test + module dependend subtests (memory test included) * library for future use in other tests (kvm)

2011-08-18 Thread Jiri Zupka
Hi, some minor problem in some timeout. Commented down in code. Otherwise good work. - Original Message - > From: root > > cgroup.py: > * structure for different cgroup subtests > * contains basic "cgroup-memory" test > > cgroup_common.py: > * library for cgroup handling (intended t

[PATCH 2/7] kvm tools: Add guest compatability warning to virtio-rng

2011-08-18 Thread Sasha Levin
Signed-off-by: Sasha Levin --- tools/kvm/virtio/rng.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/tools/kvm/virtio/rng.c b/tools/kvm/virtio/rng.c index 5f29ded..a540e2e 100644 --- a/tools/kvm/virtio/rng.c +++ b/tools/kvm/virtio/rng.c @@ -11,6 +11,7 @@ #incl

[PATCH 1/7] kvm tools: Guest kernel compatability

2011-08-18 Thread Sasha Levin
The problem of users running kernel which wasn't built for kvm tools is somewhat common. Usualy the result is a panic during boot and a user whos' stuck and doesn't know what to do next. Compatability checks try to solve this issue by giving the user a meaningfull error message which can explain w

[PATCH 3/7] kvm tools: Add guest compatability warning to virtio-blk

2011-08-18 Thread Sasha Levin
Signed-off-by: Sasha Levin --- tools/kvm/virtio/blk.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/tools/kvm/virtio/blk.c b/tools/kvm/virtio/blk.c index f5ecdd9..856c418 100644 --- a/tools/kvm/virtio/blk.c +++ b/tools/kvm/virtio/blk.c @@ -11,6 +11,7 @@ #incl

[PATCH 6/7] kvm tools: Add guest compatability warning to virtio-console

2011-08-18 Thread Sasha Levin
Signed-off-by: Sasha Levin --- tools/kvm/virtio/console.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/tools/kvm/virtio/console.c b/tools/kvm/virtio/console.c index e5d59c0..ef9b1fc 100644 --- a/tools/kvm/virtio/console.c +++ b/tools/kvm/virtio/console.c @@ -

[PATCH 5/7] kvm tools: Add guest compatability warning to virtio-net

2011-08-18 Thread Sasha Levin
Signed-off-by: Sasha Levin --- tools/kvm/virtio/net.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/tools/kvm/virtio/net.c b/tools/kvm/virtio/net.c index a74f1e7..9a11721 100644 --- a/tools/kvm/virtio/net.c +++ b/tools/kvm/virtio/net.c @@ -10,6 +10,7 @@ #incl

[PATCH 4/7] kvm tools: Add guest compatability warning to virtio-9p

2011-08-18 Thread Sasha Levin
Signed-off-by: Sasha Levin --- tools/kvm/include/kvm/virtio-9p.h |1 + tools/kvm/virtio/9p.c |9 + 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/tools/kvm/include/kvm/virtio-9p.h b/tools/kvm/include/kvm/virtio-9p.h index 0e55e5c..70db831 100644 --- a

[PATCH 7/7] kvm tools: Add guest compatability warning to virtio-balloon

2011-08-18 Thread Sasha Levin
Signed-off-by: Sasha Levin --- tools/kvm/virtio/balloon.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/tools/kvm/virtio/balloon.c b/tools/kvm/virtio/balloon.c index c5853a5..05bb196 100644 --- a/tools/kvm/virtio/balloon.c +++ b/tools/kvm/virtio/balloon.c @@ -

RE: Shared IRQ with PCI Passthrough?

2011-08-18 Thread Gardziejczyk, Kamil
Hi, Have you resolve your problem with shared IRQ lines? I have checked out qemu-kvm 0.15.0 and found that Jan Kiszka patch was applied to latest version of kvm. [PATCH 0/5] pci-assign: Host IRQ sharing suppport + some fixes and cleanups http://thread.gmane.org/gmane.comp.emulators.kvm.devel/

oversleeping guests/processes

2011-08-18 Thread Nick
Hi, I'm looking for advice: we have KVM guests whose processes (and we suspect the entire guest) seem to be slow to wake up. We'd like to characterise this and and track it down to a cause. Historically we used VMware Server. This worked adequately on older hosts, but the latest batch of hosts

Re: [PATCH 1/2] kvm tools: fix repeated io emulation

2011-08-18 Thread Avi Kivity
On 08/18/2011 12:35 AM, Sasha Levin wrote: On Thu, 2011-08-18 at 09:13 +0300, Pekka Enberg wrote: > Hi, > > On Thu, Aug 18, 2011 at 6:06 AM, Xiao Guangrong >wrote: > > When kvm emulates repeation io read instruction, it can exit to user-space with > > 'count'> 1, we need to emulate io

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

2011-08-18 Thread Avi Kivity
On 08/17/2011 09:38 PM, Sasha Levin wrote: On Wed, 2011-08-17 at 16:00 -0700, Avi Kivity wrote: > On 08/16/2011 12:47 PM, Sasha Levin wrote: > > This patch adds support for an optional stats vq that works similary to the > > stats vq provided by virtio-balloon. > > > > The purpose of thi

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

2011-08-18 Thread Sasha Levin
On Thu, 2011-08-18 at 08:10 -0700, Avi Kivity wrote: > On 08/17/2011 09:38 PM, Sasha Levin wrote: > > On Wed, 2011-08-17 at 16:00 -0700, Avi Kivity wrote: > > > On 08/16/2011 12:47 PM, Sasha Levin wrote: > > > > This patch adds support for an optional stats vq that works similary > > > to the >

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

2011-08-18 Thread Avi Kivity
On 08/18/2011 09:29 AM, Sasha Levin wrote: > > What can you do with it? > I was actually planning on submitting another patch that would add something similar into virtio-net. My plan was to enable collecting statistics regarding memory, network and disk usage in a simple manner without accessi

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

2011-08-18 Thread Sasha Levin
On Thu, 2011-08-18 at 10:36 -0700, Avi Kivity wrote: > On 08/18/2011 09:29 AM, Sasha Levin wrote: > > > > > > What can you do with it? > > > > > > > I was actually planning on submitting another patch that would add > > something similar into virtio-net. My plan was to enable collecting > > statis

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

2011-08-18 Thread Avi Kivity
On 08/18/2011 10:59 AM, Sasha Levin wrote: > > This is something that can be used by very few people, but everyone has > to carry it. It's more efficient to add statistics support to your > automation framework (involving the guest). > That was just one example of many possibilities. However

Re: [PATCH] kvm tools: Add 'kvm memstat' command

2011-08-18 Thread Neo Jia
On Tue, Aug 16, 2011 at 01:01:34PM +0800, Asias He wrote: > On 08/15/2011 08:06 PM, Pekka Enberg wrote: > > On 8/15/11 3:02 PM, Sasha Levin wrote: > >> On Mon, 2011-08-15 at 14:56 +0300, Pekka Enberg wrote: > >>> On 8/15/11 2:53 PM, Sasha Levin wrote: > This patch adds 'kvm memstat' command th

Re: [KVM]:could anyone give me some instruction for KVM pci driver? Thanks

2011-08-18 Thread Neo Jia
On Wed, Aug 17, 2011 at 04:48:52PM +0800, liu pf wrote: > Hi guys, > > After objdump the driver, I found that the access to the pci-memmap > register was optimized by GCC, and no code was generated. > And the EPT in 2.6.39 is fine. Are you registering a callback function for the register range yo

Re: A non-responsive guest problem

2011-08-18 Thread Paul
Hi, This problem happened more than twice. But I don't know how to reproduce it. Sometimes I could see the mouse pointer in VNC desktop could be moved, but sometimes I couldn't. Thanks, Paul On Thu, Aug 18, 2011 at 3:42 PM, Paul wrote: > > Hi, > Today I saw the guest OS hung and was no respons

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

2011-08-18 Thread Umesh Deshpande
On 08/17/2011 02:28 AM, Paolo Bonzini wrote: 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();