Re: [PATCH v2] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-05-02 Thread Alexander Graf
On 03/16/2012 08:58 AM, Benjamin Herrenschmidt wrote: There is nothing in the code for emulating TCE tables in the kernel that prevents it from working on PR KVM... other than ifdef's and location of the code. This renames book3s_64_vio_hv.c to book3s_64_vio.c and moves the bulk of the code

Re: [PATCH v2] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-05-02 Thread Benjamin Herrenschmidt
On Wed, 2012-05-02 at 15:32 +0200, Alexander Graf wrote: This function needs to be available in real mode on HV, but the ones below must be on module code when kvm is compiled as a module, because they call kvm infrastructure which lives in module code. Yes, I realized that, can you fix it

Re: [PATCH v2] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-05-02 Thread Alexander Graf
On 02.05.2012, at 23:17, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Wed, 2012-05-02 at 15:32 +0200, Alexander Graf wrote: This function needs to be available in real mode on HV, but the ones below must be on module code when kvm is compiled as a module, because they call

Re: [PATCH v2] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-05-02 Thread Benjamin Herrenschmidt
On Wed, 2012-05-02 at 23:21 +0200, Alexander Graf wrote: If you're too busy to fix it up, I can give it another wuick try though... That would be great... I'll have no time til at least next week. Cheers, Ben. -- To unsubscribe from this list: send the line unsubscribe kvm-ppc in the body of

Re: [PATCH v2] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-04-26 Thread Alexander Graf
On 26.04.2012, at 13:24, Alexander Graf wrote: On 16.03.2012, at 08:58, Benjamin Herrenschmidt wrote: There is nothing in the code for emulating TCE tables in the kernel that prevents it from working on PR KVM... other than ifdef's and location of the code. This renames

[PATCH v2] kvm/book3s: Make kernel emulated H_PUT_TCE available for PR KVM

2012-03-16 Thread Benjamin Herrenschmidt
There is nothing in the code for emulating TCE tables in the kernel that prevents it from working on PR KVM... other than ifdef's and location of the code. This renames book3s_64_vio_hv.c to book3s_64_vio.c and moves the bulk of the code there. This speeds things up a bit on my G5. --- v2.