Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-02 Thread Juergen Gross
On 02/08/17 10:17, Kirill A. Shutemov wrote: > On Wed, Aug 02, 2017 at 09:44:54AM +0200, Juergen Gross wrote: >> That did the trick! >> >> PV domU is coming up now with a 5-level paging enabled kernel. > > Thanks a lot for helping me up with it. > > I'll integrate the fixes into patchset. > >

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-02 Thread Juergen Gross
On 02/08/17 10:17, Kirill A. Shutemov wrote: > On Wed, Aug 02, 2017 at 09:44:54AM +0200, Juergen Gross wrote: >> That did the trick! >> >> PV domU is coming up now with a 5-level paging enabled kernel. > > Thanks a lot for helping me up with it. > > I'll integrate the fixes into patchset. > >

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-02 Thread Kirill A. Shutemov
On Wed, Aug 02, 2017 at 09:44:54AM +0200, Juergen Gross wrote: > That did the trick! > > PV domU is coming up now with a 5-level paging enabled kernel. Thanks a lot for helping me up with it. I'll integrate the fixes into patchset. Just, for clarification XEN_PVH works too, right? -- Kirill

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-02 Thread Kirill A. Shutemov
On Wed, Aug 02, 2017 at 09:44:54AM +0200, Juergen Gross wrote: > That did the trick! > > PV domU is coming up now with a 5-level paging enabled kernel. Thanks a lot for helping me up with it. I'll integrate the fixes into patchset. Just, for clarification XEN_PVH works too, right? -- Kirill

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-02 Thread Juergen Gross
On 01/08/17 21:11, Kirill A. Shutemov wrote: > On Tue, Aug 01, 2017 at 07:14:57PM +0200, Juergen Gross wrote: >> On 01/08/17 16:44, Kirill A. Shutemov wrote: >>> On Tue, Aug 01, 2017 at 09:46:56AM +0200, Juergen Gross wrote: On 26/07/17 18:43, Kirill A. Shutemov wrote: > On Wed, Jul 26,

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-02 Thread Juergen Gross
On 01/08/17 21:11, Kirill A. Shutemov wrote: > On Tue, Aug 01, 2017 at 07:14:57PM +0200, Juergen Gross wrote: >> On 01/08/17 16:44, Kirill A. Shutemov wrote: >>> On Tue, Aug 01, 2017 at 09:46:56AM +0200, Juergen Gross wrote: On 26/07/17 18:43, Kirill A. Shutemov wrote: > On Wed, Jul 26,

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-01 Thread Kirill A. Shutemov
On Tue, Aug 01, 2017 at 07:14:57PM +0200, Juergen Gross wrote: > On 01/08/17 16:44, Kirill A. Shutemov wrote: > > On Tue, Aug 01, 2017 at 09:46:56AM +0200, Juergen Gross wrote: > >> On 26/07/17 18:43, Kirill A. Shutemov wrote: > >>> On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: >

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-01 Thread Kirill A. Shutemov
On Tue, Aug 01, 2017 at 07:14:57PM +0200, Juergen Gross wrote: > On 01/08/17 16:44, Kirill A. Shutemov wrote: > > On Tue, Aug 01, 2017 at 09:46:56AM +0200, Juergen Gross wrote: > >> On 26/07/17 18:43, Kirill A. Shutemov wrote: > >>> On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: >

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-01 Thread Juergen Gross
On 01/08/17 16:44, Kirill A. Shutemov wrote: > On Tue, Aug 01, 2017 at 09:46:56AM +0200, Juergen Gross wrote: >> On 26/07/17 18:43, Kirill A. Shutemov wrote: >>> On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: On 25/07/17 11:05, Kirill A. Shutemov wrote: > On Tue, Jul 18,

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-01 Thread Juergen Gross
On 01/08/17 16:44, Kirill A. Shutemov wrote: > On Tue, Aug 01, 2017 at 09:46:56AM +0200, Juergen Gross wrote: >> On 26/07/17 18:43, Kirill A. Shutemov wrote: >>> On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: On 25/07/17 11:05, Kirill A. Shutemov wrote: > On Tue, Jul 18,

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-01 Thread Kirill A. Shutemov
On Tue, Aug 01, 2017 at 09:46:56AM +0200, Juergen Gross wrote: > On 26/07/17 18:43, Kirill A. Shutemov wrote: > > On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: > >> On 25/07/17 11:05, Kirill A. Shutemov wrote: > >>> On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: >

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-01 Thread Kirill A. Shutemov
On Tue, Aug 01, 2017 at 09:46:56AM +0200, Juergen Gross wrote: > On 26/07/17 18:43, Kirill A. Shutemov wrote: > > On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: > >> On 25/07/17 11:05, Kirill A. Shutemov wrote: > >>> On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: >

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-01 Thread Juergen Gross
On 26/07/17 18:43, Kirill A. Shutemov wrote: > On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: >> On 25/07/17 11:05, Kirill A. Shutemov wrote: >>> On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: Xen PV guests will never run with 5-level-paging enabled. So I guess

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-01 Thread Juergen Gross
On 26/07/17 18:43, Kirill A. Shutemov wrote: > On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: >> On 25/07/17 11:05, Kirill A. Shutemov wrote: >>> On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: Xen PV guests will never run with 5-level-paging enabled. So I guess

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-27 Thread Juergen Gross
On 26/07/17 18:43, Kirill A. Shutemov wrote: > On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: >> On 25/07/17 11:05, Kirill A. Shutemov wrote: >>> On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: Xen PV guests will never run with 5-level-paging enabled. So I guess

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-27 Thread Juergen Gross
On 26/07/17 18:43, Kirill A. Shutemov wrote: > On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: >> On 25/07/17 11:05, Kirill A. Shutemov wrote: >>> On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: Xen PV guests will never run with 5-level-paging enabled. So I guess

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-26 Thread Kirill A. Shutemov
On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: > On 25/07/17 11:05, Kirill A. Shutemov wrote: > > On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: > >> Xen PV guests will never run with 5-level-paging enabled. So I guess you > >> can drop the complete if

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-26 Thread Kirill A. Shutemov
On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: > On 25/07/17 11:05, Kirill A. Shutemov wrote: > > On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: > >> Xen PV guests will never run with 5-level-paging enabled. So I guess you > >> can drop the complete if

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-26 Thread Juergen Gross
On 25/07/17 11:05, Kirill A. Shutemov wrote: > On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: >> Xen PV guests will never run with 5-level-paging enabled. So I guess you >> can drop the complete if (IS_ENABLED(CONFIG_X86_5LEVEL)) {} block. > > There is more code to drop from

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-26 Thread Juergen Gross
On 25/07/17 11:05, Kirill A. Shutemov wrote: > On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: >> Xen PV guests will never run with 5-level-paging enabled. So I guess you >> can drop the complete if (IS_ENABLED(CONFIG_X86_5LEVEL)) {} block. > > There is more code to drop from

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-25 Thread Kirill A. Shutemov
On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: > Xen PV guests will never run with 5-level-paging enabled. So I guess you > can drop the complete if (IS_ENABLED(CONFIG_X86_5LEVEL)) {} block. There is more code to drop from mmu_pv.c. But while there, I thought if with boot-time

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-25 Thread Kirill A. Shutemov
On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: > Xen PV guests will never run with 5-level-paging enabled. So I guess you > can drop the complete if (IS_ENABLED(CONFIG_X86_5LEVEL)) {} block. There is more code to drop from mmu_pv.c. But while there, I thought if with boot-time

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-18 Thread Kirill A. Shutemov
On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: > On 18/07/17 16:15, Kirill A. Shutemov wrote: > > diff --git a/arch/x86/xen/mmu_pv.c b/arch/x86/xen/mmu_pv.c > > index cab28cf2cffb..b0530184c637 100644 > > --- a/arch/x86/xen/mmu_pv.c > > +++ b/arch/x86/xen/mmu_pv.c > > @@ -1209,7

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-18 Thread Kirill A. Shutemov
On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: > On 18/07/17 16:15, Kirill A. Shutemov wrote: > > diff --git a/arch/x86/xen/mmu_pv.c b/arch/x86/xen/mmu_pv.c > > index cab28cf2cffb..b0530184c637 100644 > > --- a/arch/x86/xen/mmu_pv.c > > +++ b/arch/x86/xen/mmu_pv.c > > @@ -1209,7

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-18 Thread Juergen Gross
On 18/07/17 16:15, Kirill A. Shutemov wrote: > This patch converts the of CONFIG_X86_5LEVEL check to runtime checks for > p4d folding. > > Signed-off-by: Kirill A. Shutemov > --- > arch/x86/mm/fault.c| 2 +- > arch/x86/mm/ident_map.c| 2 +-

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-18 Thread Juergen Gross
On 18/07/17 16:15, Kirill A. Shutemov wrote: > This patch converts the of CONFIG_X86_5LEVEL check to runtime checks for > p4d folding. > > Signed-off-by: Kirill A. Shutemov > --- > arch/x86/mm/fault.c| 2 +- > arch/x86/mm/ident_map.c| 2 +- > arch/x86/mm/init_64.c