[PATCH 3/6] Enable KVM for ppcemb.

2008-12-11 Thread Hollis Blanchard
Implement hooks called by generic KVM code. Also add code that will copy the host's CPU and timebase frequencies to the guest, which is necessary on KVM because the guest can directly access the timebase. Signed-off-by: Hollis Blanchard holl...@us.ibm.com --- Makefile.target |3

[PATCH 4/6] Implement device tree support needed for Bamboo emulation

2008-12-11 Thread Hollis Blanchard
on libfdt for flat device tree support. Signed-off-by: Hollis Blanchard holl...@us.ibm.com --- Makefile.target |4 ++ configure | 18 device_tree.c | 116 +++ device_tree.h | 26 libfdt_env.h| 22

[PATCH 5/6] PowerPC 440EP SoC emulation

2008-12-11 Thread Hollis Blanchard
: + * Jerone Young jyou...@us.ibm.com + * Christian Ehrhardt ehrha...@linux.vnet.ibm.com + * Hollis Blanchard holl...@us.ibm.com + * + * This work is licensed under the GNU GPL license version 2 or later. + * + */ + +#include hw.h +#include isa.h +#include ppc.h +#include ppc4xx.h +#include

Re: [Qemu-devel] [PATCH 3/6] Enable KVM for ppcemb.

2008-12-11 Thread Hollis Blanchard
On Thu, 2008-12-11 at 15:30 -0600, Anthony Liguori wrote: Hollis Blanchard wrote: +int kvm_arch_get_registers(CPUState *env) +{ + struct kvm_regs regs; + uint32_t i, ret; + + ret = kvm_vcpu_ioctl(env, KVM_GET_REGS, regs); + if (ret 0) + return ret; + + env

Re: [Qemu-devel] [PATCH 6/6] IBM PowerPC 440EP Bamboo reference board emulation

2008-12-11 Thread Hollis Blanchard
On Thu, 2008-12-11 at 15:39 -0600, Anthony Liguori wrote: Hollis Blanchard wrote: + +#define BINARY_DEVICE_TREE_FILE bamboo.dtb + +static void *bamboo_load_device_tree(void *addr, + uint32_t ramsize

Re: [PATCH 0 of 6] PowerPC KVM patches for 2.6.29

2008-12-03 Thread Hollis Blanchard
On Wed, 2008-12-03 at 13:32 +0200, Avi Kivity wrote: Hollis Blanchard wrote: Hi Avi, here's the latest batch of PowerPC kernel patches. The first set dramatically improve performance. Most importantly, we add support for large host pages with KVM (i.e. PAGE_SHIFT 12). (Large *guest

Re: powerpc kvm-userspace build fixes

2008-12-03 Thread Hollis Blanchard
On Wed, 2008-12-03 at 13:05 +0200, Avi Kivity wrote: Hollis Blanchard wrote: I'm also seeing a build dependency issue with dyngen-opc.h that I don't see upstream. I haven't sorted that out yet, but make qemu/ppcemb-softmmu/dyngen-opc.h first works around the problem. Doesn't for me

[PATCH 4/5] user: ppc: Move -ffreestanding to the right location

2008-12-03 Thread Hollis Blanchard
From: Deepa Srinivasan [EMAIL PROTECTED] Move the -ffreestanding compiler option (to avoid built-in functions) to the correct place in the Makefile. Signed-off-by: Deepa Srinivasan [EMAIL PROTECTED] Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] --- user/config-powerpc.mak |2 +- 1 files

[PATCH 2/5] user: ppc: fix build break caused by changes to kvm_callbacks

2008-12-03 Thread Hollis Blanchard
Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] --- user/main-ppc.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/user/main-ppc.c b/user/main-ppc.c index c4ddcef..5fdf28e 100644 --- a/user/main-ppc.c +++ b/user/main-ppc.c @@ -69,7 +69,7 @@ static int

[PATCH 3/5] user: ppc: Fix guest load address

2008-12-03 Thread Hollis Blanchard
From: Deepa Srinivasan [EMAIL PROTECTED] Test cases must be loaded at 1 MB, their link address. Signed-off-by: Deepa Srinivasan [EMAIL PROTECTED] Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] --- user/main-ppc.c | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff

[PATCH 1/5] qemu: add dyngen dependency from upstream

2008-12-03 Thread Hollis Blanchard
Fixes PowerPC kvm-userspace build. Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] --- qemu/Makefile.target |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/qemu/Makefile.target b/qemu/Makefile.target index 05ace8e..bb24cc0 100644 --- a/qemu/Makefile.target +++ b/qemu

kvm-userspace ppc fixes

2008-12-03 Thread Hollis Blanchard
Hi Avi, among these patches are fixes for a number of bugs in kvm-userspace, including the qemu build break and bugs in the user directory. Please apply. -Hollis -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to [EMAIL PROTECTED] More majordomo info

[PATCH 5/5] user: ppc: Add hello world test for libcflat

2008-12-03 Thread Hollis Blanchard
From: Deepa Srinivasan [EMAIL PROTECTED] Add a test program (hello world) to exercise printf() in libcflat. Signed-off-by: Deepa Srinivasan [EMAIL PROTECTED] Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] --- user/config-powerpc.mak|3 ++- user/test/powerpc/helloworld.c | 27

Re: Compiling error : ppc440_bamboo.o fails

2008-12-03 Thread Hollis Blanchard
On Wed, 2008-12-03 at 19:34 +0100, Giuseppe Falsetti wrote: Hollis Blanchard ha scritto: On Mon, 2008-12-01 at 19:30 +0100, Giuseppe Falsetti wrote: Hi Hollis, no I don't have a 440, I have only many 970 :-| So I can't hope that KVM will support 970 cpus? Qemu already support

Re: [PATCH 0 of 6] PowerPC KVM patches for 2.6.29

2008-12-03 Thread Hollis Blanchard
On Wed, 2008-12-03 at 19:06 +0200, Avi Kivity wrote: Hollis Blanchard wrote: I'm not thrilled about the private exit timing statistics gathering, hopefully it can be morphed into the more general framework. Is there anything in particular you have in mind? I think it could

Re: [PATCH 0 of 6] PowerPC KVM patches for 2.6.29

2008-12-03 Thread Hollis Blanchard
On Wed, 2008-12-03 at 13:22 -0600, Hollis Blanchard wrote: On Wed, 2008-12-03 at 19:06 +0200, Avi Kivity wrote: Hollis Blanchard wrote: I'm not thrilled about the private exit timing statistics gathering, hopefully it can be morphed into the more general framework

Re: [PATCH 1/3] kvmppc: Some refactor for merging e500

2008-12-03 Thread Hollis Blanchard
/ -- Hollis Blanchard IBM Linux Technology Center kvmppc.mbox Description: application/mbox

Re: [PATCH 1/3] kvmppc: Some refactor for merging e500

2008-12-03 Thread Hollis Blanchard
On Wed, 2008-12-03 at 17:49 -0600, Hollis Blanchard wrote: I really have to run, but what do you think about the attached patches? I'll provide proper descriptions later but wanted to get these out for you tonight. (You can apply with git-am or extract with mseries[1].) Oops, forgot the last

[PATCH 2/2] qemu: ppc: fix build warnings

2008-12-02 Thread Hollis Blanchard
Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] --- qemu/hw/device_tree.c | 14 +++--- qemu/hw/device_tree.h | 12 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/qemu/hw/device_tree.c b/qemu/hw/device_tree.c index e73129d..2621ff1 100644 --- a/qemu/hw

[PATCH 1/2] qemu: ppc: fix build after qemu upstream changes

2008-12-02 Thread Hollis Blanchard
Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] --- qemu/hw/ppc440_bamboo.c | 37 + 1 files changed, 21 insertions(+), 16 deletions(-) diff --git a/qemu/hw/ppc440_bamboo.c b/qemu/hw/ppc440_bamboo.c index bf42245..79e4ea8 100644 --- a/qemu/hw

powerpc kvm-userspace build fixes

2008-12-02 Thread Hollis Blanchard
These patches fix the kvm-userspace qemu build after a recent merge with upstream qemu. I'm also seeing a build dependency issue with dyngen-opc.h that I don't see upstream. I haven't sorted that out yet, but make qemu/ppcemb-softmmu/dyngen-opc.h first works around the problem. -Hollis -- To

Re: Compiling error : ppc440_bamboo.o fails

2008-12-01 Thread Hollis Blanchard
will be interested. -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

RE: [PATCH] kvm: ppc: stop leaking host memory on VM exit

2008-11-25 Thread Hollis Blanchard
On Tue, 2008-11-25 at 16:32 +0800, Liu Yu wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hollis Blanchard Sent: Tuesday, November 25, 2008 1:38 AM To: Avi Kivity Cc: kvm-ppc; kvm Subject: [PATCH] kvm: ppc: stop leaking host memory

Re: [PATCH 0 of 2] libcflat test for PowerPC

2008-11-24 Thread Hollis Blanchard
On Sat, 2008-11-22 at 13:17 -0600, Deepa Srinivasan wrote: Add Hello world test for libcflat. Also, fix CFLAGS issue in config-powerpc.mak. These look good, except int main() should be int main(void). I'll fix myself and commit. Thanks. -- Hollis Blanchard IBM Linux Technology Center

Re: [PATCH 1 of 2] [PATCH] kvm-userspace: ppc: Add hello world test for libcflat

2008-11-14 Thread Hollis Blanchard
Deepa, but as you described above, this really is two separate patches. Could you submit the -ffreestanding patch separately from the helloworld patch? -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message

Re: [PATCH] [v2] linux: virtio: Standardize virtio's concept of page size

2008-11-13 Thread Hollis Blanchard
. This patch assumes that Linux's PAGE_SHIFT will never be less than 12. Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] --- Only build-tested. diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c

Re: [PATCH] [v2] linux: virtio: Standardize virtio's concept of page size

2008-11-13 Thread Hollis Blanchard
On Thu, 2008-11-13 at 08:44 +1030, Rusty Russell wrote: Note that I still don't have a balloon patch: want to send me one? qemu: virtio-balloon: don't use TARGET_PAGE_BITS in balloon interface Make the balloon interface always use 4K pages. Signed-off-by: Hollis Blanchard [EMAIL PROTECTED

Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-12 Thread Hollis Blanchard
On Wed, 2008-11-12 at 22:52 +1100, Benjamin Herrenschmidt wrote: On Wed, 2008-11-12 at 06:31 -0500, Josh Boyer wrote: On Wed, 12 Nov 2008 15:37:43 +1100 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Tue, 2008-11-11 at 18:06 -0600, Hollis Blanchard wrote: The current CHIP11

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

2008-11-12 Thread Hollis Blanchard
On Mon, 2008-11-10 at 14:57 -0600, Hollis Blanchard wrote: 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. Hi Avi, could you apply these patches please? -- Hollis Blanchard IBM

Re: [PATCH] kvm: powerpc: add exit timing statistics v4

2008-11-11 Thread Hollis Blanchard
important, and I feel like we're almost there... Thanks very much for http://kvm.qumranet.com/kvmwiki/PowerPC_Exittimings too; that's critical data. -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message

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

2008-11-10 Thread Hollis Blanchard
any for process B. Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] diff --git a/arch/powerpc/include/asm/kvm_44x.h b/arch/powerpc/include/asm/kvm_44x.h --- a/arch/powerpc/include/asm/kvm_44x.h +++ b/arch/powerpc/include/asm/kvm_44x.h @@ -44,4 +44,6 @@ static inline struct kvmppc_vcpu_44x

RE: cross-compiling flags?

2008-11-06 Thread Hollis Blanchard
/specific/directory. -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] virtio: Define and use per-architecture pfn shift constants

2008-11-06 Thread Hollis Blanchard
On Thu, 2008-11-06 at 10:49 +, Mark McLoughlin wrote: On Wed, 2008-11-05 at 22:49 -0600, Hollis Blanchard wrote: - info-queue = kzalloc(PAGE_ALIGN(vring_size(num,PAGE_SIZE)), GFP_KERNEL); + vring_bytes = PAGE_ALIGN(vring_size(num, VRING_PAGE_SIZE)); + info-queue

Re: Exit timing - results online

2008-11-06 Thread Hollis Blanchard
deviation is huge. That suggests that the vast majority of exits take the minimum amount of time, but a few exits take a *ton* of time. Looking through the set of instructions we emulate on 440, it looks like the only even slightly sophisticated ones are rfi, tlbwe, and tlbsx... -- Hollis Blanchard IBM

Re: [PATCH] qemu: define and use VIRTIO_PFN_SHIFT

2008-11-06 Thread Hollis Blanchard
On Thu, 2008-11-06 at 08:01 -0600, Anthony Liguori wrote: Hollis Blanchard wrote: # HG changeset patch # User Hollis Blanchard [EMAIL PROTECTED] # Date 1225946837 21600 # Node ID 43a111ea61b542d3823e2a11d017e7b06b7ec254 # Parent b63967268af119e0faa4adc3086cdef857815548 qemu: define

Re: dynamic virtio page size

2008-11-06 Thread Hollis Blanchard
On Thu, 2008-11-06 at 14:02 -0600, Anthony Liguori wrote: Hollis Blanchard wrote: I wanted to make sure people on non-x86 architectures couldn't run into vring-size related problems that didn't also appear on x86. Having a VRING_SHIFT and a VRING_PAGE_SIZE where VRING_PAGE_SIZE != (1

Re: kernel status update

2008-11-06 Thread Hollis Blanchard
On Fri, 2008-10-31 at 14:44 -0500, Hollis Blanchard wrote: * Yu's idea about TLB handling was great, and I saw about a 20% performance improvement on a couple small workloads on 440. Very happy about that one. :) This patch, which I'll call the direct TLB patch

Re: [PATCH] qemu: define and use VIRTIO_PFN_SHIFT

2008-11-06 Thread Hollis Blanchard
it does. Out of curiosity, if you had 4K Linux host pages, and you redefined TARGET_PAGE_BITS to be 12, would everything just work? Also, as long as I have you... can we use getpagesize() instead of 65536/4096 in qemu_vmalloc()? -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe

Re: large page size virtio issues

2008-11-05 Thread Hollis Blanchard
On Wed, 2008-11-05 at 08:06 -0600, Anthony Liguori wrote: Rusty Russell wrote: On Wednesday 05 November 2008 09:14:20 Hollis Blanchard wrote: Hi Rusty, I'm using a patch that changes the Linux base page size to 64K. (This is actually pretty common in ppc64 world, but I happen

Re: cross-compiling flags?

2008-11-05 Thread Hollis Blanchard
On Wednesday 05 November 2008 20:51:18 Liu Yu wrote: -Original Message- From: Hollis Blanchard [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 11:57 PM To: Liu Yu-B13201 Cc: kvm-ppc Subject: cross-compiling flags? Hi Yu, Christian tells me you have some weird

Re: [RFC] a little disassembly infrastructure

2008-11-03 Thread Hollis Blanchard
On Fri, 2008-10-31 at 12:21 -0500, Hollis Blanchard wrote: On Sat, 2008-10-25 at 13:55 +1100, Paul Mackerras wrote: Hollis Blanchard writes: I've also found xmon's ppc-opc.c. That parses the opcode and operands, so could use some shared macros. That's a direct copy from GNU

kernel status update

2008-10-31 Thread Hollis Blanchard
, just an update to let folks know where things sit on the kernel side. -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo

[PATCH 2 of 7] kvm: ppc: Rename struct tlbe to struct kvmppc_44x_tlbe

2008-09-29 Thread Hollis Blanchard
# HG changeset patch # User Hollis Blanchard [EMAIL PROTECTED] # Date 1222627837 18000 # Node ID e954cb04a648e694f35e2baaa43f430ebc6b65ca # Parent 545c3dea0b56ba996a8fcd48bdae903092319a27 kvm: ppc: Rename struct tlbe to struct kvmppc_44x_tlbe This will ease ports to other cores. Also remove

RE: [patch 0/4] add e500 platform support for KVM

2008-09-12 Thread Hollis Blanchard
the index by offset or save index in vcpu-arch. What's your opinion? I would definitely prefer using the index as a return value, rather than saving to vcpu-arch. -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body

[PATCH 1 of 2] kvm: ppc: Move 440-specific TLB code into 44x_tlb.c

2008-09-11 Thread Hollis Blanchard
# HG changeset patch # User Hollis Blanchard [EMAIL PROTECTED] # Date 1221162418 18000 # Node ID 0f01a4354a6aac06b3fe7062e6d4ee538286c405 # Parent 34089016b7ff30a697fc67753353e893e7351daa kvm: ppc: Move 440-specific TLB code into 44x_tlb.c This will make it easier to provide implementations

removing shadow TLB

2008-09-09 Thread Hollis Blanchard
not sure it's worth the development complexity. I'll have to keep thinking about those other cores without directly index-able TLBs. -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to [EMAIL PROTECTED

RE: [PATCH 2/4] add e500 tlb implementation -- DCRs

2008-08-27 Thread Hollis Blanchard
On Wed, 2008-08-27 at 10:50 +0800, Liu Yu wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hollis Blanchard Sent: Tuesday, August 26, 2008 11:51 PM To: Liu Yu Cc: kvm-ppc@vger.kernel.org Subject: RE: [PATCH 2/4] add e500 tlb

Re: [PATCH 2/4] kvmppc: add hypercall infrastructure - guest part

2008-08-22 Thread Hollis Blanchard
this more generic (naming) and location. I believe there is some interesting in using the same ABI on the Freescale HV so it seems like have the wrappers be a bit more generic saves us. Agreed. Maybe something like epapr_hcalls.h . -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe

Re: [PATCH 2/4] kvmppc: add hypercall infrastructure - guest part

2008-08-21 Thread Hollis Blanchard
can't seem to remember it now. ;) We're thinking about it. -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/6] kvmppc: magic page hypercall - host part

2008-08-20 Thread Hollis Blanchard
the corner cases here. -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 4/4] kvmppc: convert wrteei to wrtee as kvm guest optimization

2008-08-20 Thread Hollis Blanchard
metal benchmark results with the patch both applied and not? -- Hollis Blanchard IBM Linux Technology Center -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 4/4] kvmppc: convert wrteei to wrtee as kvm guest optimization

2008-08-20 Thread Hollis Blanchard
On Wed, 2008-08-20 at 14:52 -0400, Josh Boyer wrote: On Wed, 2008-08-20 at 13:30 -0500, Hollis Blanchard wrote: On Wed, 2008-08-20 at 14:53 +0200, Christian Ehrhardt wrote: Arnd Bergmann wrote: On Tuesday 19 August 2008, [EMAIL PROTECTED] wrote: Dependent on the already

<    1   2