Re: [kernel] powerpc: Make vmalloc_to_phys() public

2016-01-26 Thread Alexey Kardashevskiy
On 01/25/2016 09:06 PM, Paul Mackerras wrote: On Mon, Jan 25, 2016 at 04:46:03PM +1100, Michael Ellerman wrote: On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: This makes vmalloc_to_phys() public as there will be another user (in-kernel VFIO acceleration) for it soon. As a

Re: [kernel] powerpc: Make vmalloc_to_phys() public

2016-01-26 Thread Alexey Kardashevskiy
On 01/25/2016 09:06 PM, Paul Mackerras wrote: On Mon, Jan 25, 2016 at 04:46:03PM +1100, Michael Ellerman wrote: On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: This makes vmalloc_to_phys() public as there will be another user (in-kernel VFIO acceleration) for it soon. As a

Re: [kernel] powerpc: Make vmalloc_to_phys() public

2016-01-25 Thread Paul Mackerras
On Mon, Jan 25, 2016 at 04:46:03PM +1100, Michael Ellerman wrote: > On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: > > This makes vmalloc_to_phys() public as there will be another user > > (in-kernel VFIO acceleration) for it soon. > > > > As a part of future little optimization,

Re: [kernel] powerpc: Make vmalloc_to_phys() public

2016-01-25 Thread Paul Mackerras
On Mon, Jan 25, 2016 at 04:46:03PM +1100, Michael Ellerman wrote: > On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: > > This makes vmalloc_to_phys() public as there will be another user > > (in-kernel VFIO acceleration) for it soon. > > > > As a part of future little optimization,

Re: [kernel] powerpc: Make vmalloc_to_phys() public

2016-01-24 Thread Anshuman Khandual
On 01/25/2016 11:16 AM, Michael Ellerman wrote: > On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: >> > This makes vmalloc_to_phys() public as there will be another user >> > (in-kernel VFIO acceleration) for it soon. >> > >> > As a part of future little optimization, this changes

Re: [kernel] powerpc: Make vmalloc_to_phys() public

2016-01-24 Thread Michael Ellerman
On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: > This makes vmalloc_to_phys() public as there will be another user > (in-kernel VFIO acceleration) for it soon. > > As a part of future little optimization, this changes the helper to call > vmalloc_to_pfn() instead of

Re: [kernel] powerpc: Make vmalloc_to_phys() public

2016-01-24 Thread Michael Ellerman
On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: > This makes vmalloc_to_phys() public as there will be another user > (in-kernel VFIO acceleration) for it soon. > > As a part of future little optimization, this changes the helper to call > vmalloc_to_pfn() instead of

Re: [kernel] powerpc: Make vmalloc_to_phys() public

2016-01-24 Thread Anshuman Khandual
On 01/25/2016 11:16 AM, Michael Ellerman wrote: > On Thu, 2016-21-01 at 07:35:08 UTC, Alexey Kardashevskiy wrote: >> > This makes vmalloc_to_phys() public as there will be another user >> > (in-kernel VFIO acceleration) for it soon. >> > >> > As a part of future little optimization, this changes

[PATCH kernel] powerpc: Make vmalloc_to_phys() public

2016-01-20 Thread Alexey Kardashevskiy
This makes vmalloc_to_phys() public as there will be another user (in-kernel VFIO acceleration) for it soon. As a part of future little optimization, this changes the helper to call vmalloc_to_pfn() instead of vmalloc_to_page() as the size of the struct page may not be power-of-two aligned which

[PATCH kernel] powerpc: Make vmalloc_to_phys() public

2016-01-20 Thread Alexey Kardashevskiy
This makes vmalloc_to_phys() public as there will be another user (in-kernel VFIO acceleration) for it soon. As a part of future little optimization, this changes the helper to call vmalloc_to_pfn() instead of vmalloc_to_page() as the size of the struct page may not be power-of-two aligned which