Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-18 Thread Avi Kivity
On 02/18/2010 09:40 AM, Avi Kivity wrote: Now you made me check how fast the real hw is. I get about 65,000,000 fmul operations per second on it. That's surprisingly low. I get 3.7 Gflops on my home machine (1G loops, 4 fmul and 4 fadds, all independent, in 2.15 seconds; otherwise I can't

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-17 Thread Avi Kivity
On 02/17/2010 08:07 PM, Alexander Graf wrote: On 17.02.2010, at 17:34, Avi Kivity wrote: On 02/17/2010 06:23 PM, Alexander Graf wrote: On 17.02.2010, at 17:03, Avi Kivity wrote: On 02/17/2010 04:56 PM, Alexander Graf wrote: So I changed to code according to you

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-17 Thread Alexander Graf
On 17.02.2010, at 17:34, Avi Kivity wrote: > On 02/17/2010 06:23 PM, Alexander Graf wrote: >> On 17.02.2010, at 17:03, Avi Kivity wrote: >> >> >>> On 02/17/2010 04:56 PM, Alexander Graf wrote: >>> So I changed to code according to your input by making all FPU calls explicit, g

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-17 Thread Avi Kivity
On 02/17/2010 06:23 PM, Alexander Graf wrote: On 17.02.2010, at 17:03, Avi Kivity wrote: On 02/17/2010 04:56 PM, Alexander Graf wrote: So I changed to code according to your input by making all FPU calls explicit, getting rid of all binary patching. On the PowerStation again I'm ru

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-17 Thread Alexander Graf
On 17.02.2010, at 17:03, Avi Kivity wrote: > On 02/17/2010 04:56 PM, Alexander Graf wrote: >> >> So I changed to code according to your input by making all FPU calls >> explicit, getting rid of all binary patching. >> >> On the PowerStation again I'm running this code (simplified to the import

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-17 Thread Avi Kivity
On 02/17/2010 04:56 PM, Alexander Graf wrote: So I changed to code according to your input by making all FPU calls explicit, getting rid of all binary patching. On the PowerStation again I'm running this code (simplified to the important instructions) using kvmctl: li r2, 0x123

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-17 Thread Alexander Graf
On 09.02.2010, at 13:27, Avi Kivity wrote: > On 02/09/2010 01:13 PM, Alexander Graf wrote: >> Avi Kivity wrote: >> >>> On 02/09/2010 01:00 PM, Alexander Graf wrote: >>> > That's pretty impressive (never saw x86 with this exit rate) but it's > more than 1000 times slowe

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-09 Thread Avi Kivity
On 02/09/2010 01:13 PM, Alexander Graf wrote: Avi Kivity wrote: On 02/09/2010 01:00 PM, Alexander Graf wrote: That's pretty impressive (never saw x86 with this exit rate) but it's more than 1000 times slower than the hardware, assuming 1 fpu IPC (and the processor can probably

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-09 Thread Alexander Graf
Avi Kivity wrote: > On 02/09/2010 01:00 PM, Alexander Graf wrote: >> >>> That's pretty impressive (never saw x86 with this exit rate) but it's >>> more than 1000 times slower than the hardware, assuming 1 fpu IPC (and >>> the processor can probably do more). An fpu intensive application >>> will s

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-09 Thread Avi Kivity
On 02/09/2010 01:00 PM, Alexander Graf wrote: That's pretty impressive (never saw x86 with this exit rate) but it's more than 1000 times slower than the hardware, assuming 1 fpu IPC (and the processor can probably do more). An fpu intensive application will slow to a crawl. Measuring a

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-09 Thread Alexander Graf
Avi Kivity wrote: > On 02/08/2010 12:02 AM, Alexander Graf wrote: >> >>> It's not a good idea for the kernel either, if it happens all the >>> time. If a typical Gekko application uses the fpu and the emulated >>> instructions intensively, performance will suck badly (as in: qemu/tcg >>> will be f

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-08 Thread Alexander Graf
On 08.02.2010, at 13:15, Avi Kivity wrote: > On 02/08/2010 02:05 PM, Alexander Graf wrote: >>> http://www.dolphin-emu.com/ Basically I envision that this is the easiest way to do PR for KVM on PPC. Releasing this properly will instantly raise awareness and thus potent

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-08 Thread Avi Kivity
On 02/08/2010 02:05 PM, Alexander Graf wrote: http://www.dolphin-emu.com/ Basically I envision that this is the easiest way to do PR for KVM on PPC. Releasing this properly will instantly raise awareness and thus potentially increase our user base by a lot. IMHO it'd also help KVM in general

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-08 Thread Alexander Graf
On 08.02.2010, at 13:03, Avi Kivity wrote: > On 02/08/2010 01:30 PM, Alexander Graf wrote: Hum, so you suggest I get some real application running properly first so we can evaluate if it's fast enough? >>> Yes, a real application typical for whatever use case you envi

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-08 Thread Avi Kivity
On 02/08/2010 01:30 PM, Alexander Graf wrote: Hum, so you suggest I get some real application running properly first so we can evaluate if it's fast enough? Yes, a real application typical for whatever use case you envision for Gekko emulation (can you shed a few words on that please)

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-08 Thread Alexander Graf
On 08.02.2010, at 12:09, Avi Kivity wrote: > On 02/08/2010 12:58 PM, Alexander Graf wrote: If it really gets unusably slow, I'd rather binary patch the guest on the fly in KVM according to rules set by the userspace client. >>> Is that even possible? Do those register-pair

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-08 Thread Avi Kivity
On 02/08/2010 12:58 PM, Alexander Graf wrote: If it really gets unusably slow, I'd rather binary patch the guest on the fly in KVM according to rules set by the userspace client. Is that even possible? Do those register-pair instructions and registers map 1:1 to 970 instructions and re

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-08 Thread Alexander Graf
On 08.02.2010, at 09:53, Avi Kivity wrote: > On 02/08/2010 12:02 AM, Alexander Graf wrote: >> >>> It's not a good idea for the kernel either, if it happens all the >>> time. If a typical Gekko application uses the fpu and the emulated >>> instructions intensively, performance will suck badly (a

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-08 Thread Avi Kivity
On 02/08/2010 12:02 AM, Alexander Graf wrote: It's not a good idea for the kernel either, if it happens all the time. If a typical Gekko application uses the fpu and the emulated instructions intensively, performance will suck badly (as in: qemu/tcg will be faster). Yeah, I haven't rea

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-07 Thread Alexander Graf
Avi Kivity wrote: > On 02/07/2010 05:49 PM, Alexander Graf wrote: >> Am 07.02.2010 um 13:54 schrieb Avi Kivity : >> >>> On 02/04/2010 05:55 PM, Alexander Graf wrote: In an effort to get KVM on PPC more useful for other userspace users than Qemu, I figured it'd be a nice idea to imple

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-07 Thread Avi Kivity
On 02/07/2010 05:49 PM, Alexander Graf wrote: Am 07.02.2010 um 13:54 schrieb Avi Kivity : On 02/04/2010 05:55 PM, Alexander Graf wrote: In an effort to get KVM on PPC more useful for other userspace users than Qemu, I figured it'd be a nice idea to implement virtualization of the Gekko CPU.

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-07 Thread Alexander Graf
Am 07.02.2010 um 13:54 schrieb Avi Kivity : On 02/04/2010 05:55 PM, Alexander Graf wrote: In an effort to get KVM on PPC more useful for other userspace users than Qemu, I figured it'd be a nice idea to implement virtualization of the Gekko CPU. The Gekko is the CPU used in the GameCube. I

Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-07 Thread Avi Kivity
On 02/04/2010 05:55 PM, Alexander Graf wrote: In an effort to get KVM on PPC more useful for other userspace users than Qemu, I figured it'd be a nice idea to implement virtualization of the Gekko CPU. The Gekko is the CPU used in the GameCube. In a slightly more modern fashion it lives on in th

[PATCH 00/18] KVM: PPC: Virtualize Gekko guests

2010-02-04 Thread Alexander Graf
In an effort to get KVM on PPC more useful for other userspace users than Qemu, I figured it'd be a nice idea to implement virtualization of the Gekko CPU. The Gekko is the CPU used in the GameCube. In a slightly more modern fashion it lives on in the Wii today. Using this patch set and a modifie