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 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 slower than the hardware,

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,

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, getting rid of all

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

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 faster).

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/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

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

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

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 (as in:

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

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 envision for Gekko

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

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 potentially increase our user

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

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 a...@redhat.com: 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

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 a...@redhat.com: 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