Re: [GIT PULL] Add KVM support for Book3s_64 (PPC64) hosts v3

2009-09-02 Thread Alexander Graf
On 02.09.2009, at 07:40, Benjamin Herrenschmidt wrote: On Fri, 2009-07-24 at 18:30 +0200, Alexander Graf wrote: KVM for PowerPC only supports embedded cores at the moment. While it makes sense to virtualize on small machines, it's even more fun to do so on big boxes. So I figured we need

Re: [GIT PULL] Add KVM support for Book3s_64 (PPC64) hosts v3

2009-09-02 Thread Benjamin Herrenschmidt
Well, we need mm_alloc to reserve a VA range. And since that happens in module code, it needs to be exported. Hrm... I've missed where you call it. Can't you directly allocate a context ID instead of a whole mm ? As far as switch_slb goes, I think with the new always switch the full SLB

Re: [GIT PULL] Add KVM support for Book3s_64 (PPC64) hosts v3

2009-09-02 Thread Alexander Graf
On 02.09.2009, at 08:23, Benjamin Herrenschmidt wrote: Well, we need mm_alloc to reserve a VA range. And since that happens in module code, it needs to be exported. Hrm... I've missed where you call it. Can't you directly allocate a context ID instead of a whole mm ? It's in the vcpu init

Re: [GIT PULL] Add KVM support for Book3s_64 (PPC64) hosts v3

2009-09-02 Thread Benjamin Herrenschmidt
On Wed, 2009-09-02 at 08:34 +0200, Alexander Graf wrote: On 02.09.2009, at 08:23, Benjamin Herrenschmidt wrote: Well, we need mm_alloc to reserve a VA range. And since that happens in module code, it needs to be exported. Hrm... I've missed where you call it. Can't you directly allocate

Re: [GIT PULL] Add KVM support for Book3s_64 (PPC64) hosts v3

2009-09-02 Thread Hollis Blanchard
On Wed, 2009-09-02 at 15:40 +1000, Benjamin Herrenschmidt wrote: On Fri, 2009-07-24 at 18:30 +0200, Alexander Graf wrote: KVM for PowerPC only supports embedded cores at the moment. While it makes sense to virtualize on small machines, it's even more fun to do so on big boxes. So I