Re: [PATCH V2 5/5] ara virt interface of perf to support kvm guest os statistics collection in guest os

2010-06-21 Thread Zhang, Yanmin
On Mon, 2010-06-21 at 15:37 +0300, Avi Kivity wrote: On 06/21/2010 12:31 PM, Zhang, Yanmin wrote: The 5th patch is applied to the latest qemu-kvm tree. --- qemu-kvm_0621/target-i386/kvm.c 2010-06-21 11:00:29.0 +0800 +++ qemu-kvm_0621_perf/target-i386/kvm.c2010-06-21

Re: [PATCH 1/2] Add 'serial' attribute to virtio-blk devices

2010-06-21 Thread john cooper
Rusty Russell wrote: On Tue, 22 Jun 2010 02:13:21 am Ryan Harper wrote: * john cooper john.coo...@redhat.com [2010-06-21 01:11]: Rusty Russell wrote: /* id_str is not necessarily nul-terminated! */ buf[VIRTIO_BLK_ID_BYTES] = '\0'; return virtblk_get_id(disk, buf); The /sys file is

Re: [PATCH] do not enter vcpu again if it was stopped during IO

2010-06-21 Thread Gleb Natapov
On Mon, Jun 21, 2010 at 05:43:04PM -0300, Marcelo Tosatti wrote: On Mon, Jun 21, 2010 at 12:01:52PM +0300, Gleb Natapov wrote: To prevent reentering vcpu after IO completion it is not enough to set env-stopped since it is checked only in main loop but control will not get there until next

[PATCH] KVM: PPC: Make BAT only guest segments work

2010-06-21 Thread Alexander Graf
When a guest sets its SR entry to invalid, we may still find a corresponding entry in a BAT. So we need to make sure we're not faulting on invalid SR entries, but instead just claim them to be BAT resolved. This resolves breakage experienced when using libogc based guests. Signed-off-by:

[PATCH] KVM: PPC: Use kernel hash function

2010-06-21 Thread Alexander Graf
The linux kernel already provides a hash function. Let's reuse that instead of reinventing the wheel! Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/kvm/book3s_32_mmu_host.c | 10 ++ arch/powerpc/kvm/book3s_64_mmu_host.c | 11 ++- 2 files changed, 4

[PATCH] KVM: PPC: Remove obsolete kvmppc_mmu_find_pte

2010-06-21 Thread Alexander Graf
Initially we had to search for pte entries to invalidate them. Since the logic has improved since then, we can just get rid of the search function. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/include/asm/kvm_book3s.h |1 - arch/powerpc/kvm/book3s_32_mmu_host.c | 20

[PATCH 2/2] KVM: PPC: Make use of hash based Shadow MMU

2010-06-21 Thread Alexander Graf
We just introduced generic functions to handle shadow pages on PPC. This patch makes the respective backends make use of them, getting rid of a lot of duplicate code along the way. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/include/asm/kvm_book3s.h |7 ++

PVnize instructions

2010-06-21 Thread Alexander Graf
I figured I go and try to find out what the emulation distribution is in random use cases. The one I measured here was a: $ for i in `seq 1000`; do ls -la /dev/null; done inside the guest. This should give pretty good hints on process spawning overhead. Below are the results on what is issued

<    1   2