RE: [PATCH 05 of 14] ppc: Create disassemble.h to extract instructionfields

2008-11-10 Thread Liu Yu
Since this header is created, will you consider to unify the argument list of kmppc_emul_tlbre/tlbwe/tlbsx, such as (struct kvm_vcpu *vcpu, u32 inst)? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Hollis Blanchard > Sent: Wednesday, November 0

[PATCH] Define OS-dependent qemu_getpagesize()

2008-11-10 Thread Hollis Blanchard
Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]> diff --git a/qemu/exec.c b/qemu/exec.c --- a/qemu/exec.c +++ b/qemu/exec.c @@ -239,16 +239,7 @@ static void page_init(void) { /* NOTE: we can always suppose that qemu_host_page_size >= TARGET_PAGE_SIZE */ -#ifdef _WIN32 -{ -

[PATCH] kvm: ppc: update KVM config options in ppc44x_defconfig

2008-11-10 Thread Hollis Blanchard
KVM host support was recently enabled in ppc44x_defconfig, but since then the config option was renamed. Update ppc44x_defconfig to match. Also, KVM guests aren't very interesting without networking, so enable CONFIG_TUN and CONFIG_BRIDGE. Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]> ---

[PATCH 3 of 3] kvm: ppc: fix userspace mapping invalidation on context switch

2008-11-10 Thread Hollis Blanchard
We used to defer invalidating userspace TLB entries until jumping out of the kernel. This was causing MMU weirdness most easily triggered by using a pipe in the guest, e.g. "dmesg | tail". I believe the problem was that after the guest kernel changed the PID (part of context switch), the old proces

[PATCH 2 of 3] kvm: ppc: use prefetchable mappings for guest memory

2008-11-10 Thread Hollis Blanchard
Bare metal Linux on 440 can "overmap" RAM in the kernel linear map, so that it can use large (256MB) mappings even if memory isn't a multiple of 256MB. To prevent the hardware prefetcher from loading from an invalid physical address through that mapping, it's marked Guarded. However, KVM must ensu

[PATCH 0 of 3] some kernel fixes for PPC440 KVM

2008-11-10 Thread Hollis Blanchard
Hi Avi, these patches fix some minor PowerPC kernel issues, including a nasty MMU bug that was exposed by 64K pages on the host, but could also affect 4K pages. Please apply. -Hollis -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to [EMAIL PROTECTED

[PATCH 1 of 3] kvm: ppc: use MMUCR accessor to obtain TID

2008-11-10 Thread Hollis Blanchard
We have an accessor; might as well use it. Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]> diff --git a/arch/powerpc/kvm/44x_tlb.c b/arch/powerpc/kvm/44x_tlb.c --- a/arch/powerpc/kvm/44x_tlb.c +++ b/arch/powerpc/kvm/44x_tlb.c @@ -331,7 +331,7 @@ int kvmppc_44x_emul_tlbwe(struct kvm_vcp

[PATCH] kvm: powerpc: add exit timing statistics v2

2008-11-10 Thread Christian Ehrhardt
From: Christian Ehrhardt <[EMAIL PROTECTED]> *resend with header file in diff* *update to v2* The update fixes accounting for sets to MSR[WE] which should not be accoutned as instruction emulation. While adding that and analyzing the data it became obvious that several types of emulations hould b

[PATCH] kvm: powerpc: add exit timing statistics

2008-11-10 Thread Ehrhardt Christian
From: Christian Ehrhardt <[EMAIL PROTECTED]> Other existing kvm statistics are either just counters (kvm_stat) reported for kvm generally or trace based aproaches like kvm_trace. For kvm on powerpc we had the need to track the timings of the different exit types. While this could be achieved parsi

Re: [PATCH] [mq]: fix-kvm-init.diff

2008-11-10 Thread Christian Ehrhardt
sorry - this should actually have some description ... I'll resend it with one as soon as I find the issue why it is missing Ehrhardt Christian wrote: diff --git a/qemu/target-ppc/helper.c b/qemu/target-ppc/helper.c --- a/qemu/target-ppc/helper.c +++ b/qemu/target-ppc/helper.c @@ -2959,10 +2959,

[PATCH] [mq]: fix-kvm-init.diff

2008-11-10 Thread Ehrhardt Christian
diff --git a/qemu/target-ppc/helper.c b/qemu/target-ppc/helper.c --- a/qemu/target-ppc/helper.c +++ b/qemu/target-ppc/helper.c @@ -2959,10 +2959,8 @@ env->cpu_model_str = cpu_model; cpu_ppc_register_internal(env, def); cpu_ppc_reset(env); -#ifdef USE_KVM if (kvm_enabled()) -

Re: Exit timing - results online

2008-11-10 Thread Christian Ehrhardt
Hollis Blanchard wrote: On Thu, 2008-11-06 at 12:25 +0100, Christian Ehrhardt wrote: Hi, I just added the following page to our wiki based online documentation to show some numbers on kvmppc as of today. You can find that page at thew wiki entry: PowerPC_Exittimings