Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-13 Thread Anshuman Khandual
On 09/14/2016 05:27 AM, Michael Ellerman wrote: > Anshuman Khandual writes: Not sure whether this mail ever went. Sending it again. > >> > When the HPT size is explicitly passed on from the userspace, currently >> > the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT >> > f

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-13 Thread Anshuman Khandual
On 09/14/2016 05:42 AM, Paul Mackerras wrote: > On Wed, Sep 14, 2016 at 09:57:48AM +1000, Michael Ellerman wrote: >> > Anshuman Khandual writes: >> > >>> > > When the HPT size is explicitly passed on from the userspace, currently >>> > > the KVM_PPC_ALLOCATE_HTAB will try to allocate the requeste

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-13 Thread Anshuman Khandual
On 09/14/2016 05:27 AM, Michael Ellerman wrote: > Anshuman Khandual writes: > >> When the HPT size is explicitly passed on from the userspace, currently >> the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT >> from reserved CMA area and if that is not possible, the allocatio

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-13 Thread Paul Mackerras
On Wed, Sep 14, 2016 at 09:57:48AM +1000, Michael Ellerman wrote: > Anshuman Khandual writes: > > > When the HPT size is explicitly passed on from the userspace, currently > > the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT > > from reserved CMA area and if that is not po

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-13 Thread Michael Ellerman
Anshuman Khandual writes: > When the HPT size is explicitly passed on from the userspace, currently > the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT > from reserved CMA area and if that is not possible, the allocation just > fails. With the commit 572abd563befd56 ("KVM:

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-13 Thread Balbir Singh
On Tue, Sep 13, 2016 at 3:49 PM, Anshuman Khandual wrote: > On 09/13/2016 10:04 AM, Balbir Singh wrote: >> >> >> On 13/09/16 14:07, Anshuman Khandual wrote: >>> On 09/12/2016 05:03 PM, Balbir Singh wrote: On Mon, Sep 12, 2016 at 9:13 PM, Anshuman Khandual wrote: >> When the HPT size

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Anshuman Khandual
On 09/12/2016 05:35 PM, Aneesh Kumar K.V wrote: > Anshuman Khandual writes: > >> When the HPT size is explicitly passed on from the userspace, currently >> the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT >> from reserved CMA area and if that is not possible, the allocatio

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Anshuman Khandual
On 09/13/2016 10:04 AM, Balbir Singh wrote: > > > On 13/09/16 14:07, Anshuman Khandual wrote: >> On 09/12/2016 05:03 PM, Balbir Singh wrote: >>> On Mon, Sep 12, 2016 at 9:13 PM, Anshuman Khandual >>> wrote: > When the HPT size is explicitly passed on from the userspace, currently > the K

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Balbir Singh
On 13/09/16 14:07, Anshuman Khandual wrote: > On 09/12/2016 05:03 PM, Balbir Singh wrote: >> On Mon, Sep 12, 2016 at 9:13 PM, Anshuman Khandual >> wrote: When the HPT size is explicitly passed on from the userspace, currently the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Anshuman Khandual
On 09/12/2016 05:03 PM, Balbir Singh wrote: > On Mon, Sep 12, 2016 at 9:13 PM, Anshuman Khandual > wrote: >> > When the HPT size is explicitly passed on from the userspace, currently >> > the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT >> > from reserved CMA area and if th

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Aneesh Kumar K.V
Anshuman Khandual writes: > When the HPT size is explicitly passed on from the userspace, currently > the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT > from reserved CMA area and if that is not possible, the allocation just > fails. With the commit 572abd563befd56 ("KVM:

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Balbir Singh
On Mon, Sep 12, 2016 at 9:13 PM, Anshuman Khandual wrote: > When the HPT size is explicitly passed on from the userspace, currently > the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT > from reserved CMA area and if that is not possible, the allocation just > fails. With the

[RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Anshuman Khandual
When the HPT size is explicitly passed on from the userspace, currently the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT from reserved CMA area and if that is not possible, the allocation just fails. With the commit 572abd563befd56 ("KVM: PPC: Book3S HV: Don't fall back to s