Re: [tip:x86/mm] x86/tme: Detect if TME and MKTME is activated by BIOS

2018-03-13 Thread Kai Huang
On Tue, 2018-03-13 at 15:49 +0300, Kirill A. Shutemov wrote: > On Tue, Mar 13, 2018 at 03:12:02PM +1300, Kai Huang wrote: > > It seems setup_pku() will call get_cpu_cap to restore c- > > >x86_phys_bits > > later? In which case I think you need to change setup_pku as well. > > Thanks for catching

Re: [tip:x86/mm] x86/tme: Detect if TME and MKTME is activated by BIOS

2018-03-13 Thread Kai Huang
On Tue, 2018-03-13 at 15:49 +0300, Kirill A. Shutemov wrote: > On Tue, Mar 13, 2018 at 03:12:02PM +1300, Kai Huang wrote: > > It seems setup_pku() will call get_cpu_cap to restore c- > > >x86_phys_bits > > later? In which case I think you need to change setup_pku as well. > > Thanks for catching

Re: [tip:x86/mm] x86/tme: Detect if TME and MKTME is activated by BIOS

2018-03-13 Thread Dave Hansen
On 03/13/2018 05:49 AM, Kirill A. Shutemov wrote: > On Tue, Mar 13, 2018 at 03:12:02PM +1300, Kai Huang wrote: >> It seems setup_pku() will call get_cpu_cap to restore c->x86_phys_bits >> later? In which case I think you need to change setup_pku as well. > Thanks for catching this. > > I think

Re: [tip:x86/mm] x86/tme: Detect if TME and MKTME is activated by BIOS

2018-03-13 Thread Dave Hansen
On 03/13/2018 05:49 AM, Kirill A. Shutemov wrote: > On Tue, Mar 13, 2018 at 03:12:02PM +1300, Kai Huang wrote: >> It seems setup_pku() will call get_cpu_cap to restore c->x86_phys_bits >> later? In which case I think you need to change setup_pku as well. > Thanks for catching this. > > I think

Re: [tip:x86/mm] x86/tme: Detect if TME and MKTME is activated by BIOS

2018-03-13 Thread Kirill A. Shutemov
On Tue, Mar 13, 2018 at 03:12:02PM +1300, Kai Huang wrote: > It seems setup_pku() will call get_cpu_cap to restore c->x86_phys_bits > later? In which case I think you need to change setup_pku as well. Thanks for catching this. I think setup_pku() shouldn't call get_cpu_cap(). Any objections

Re: [tip:x86/mm] x86/tme: Detect if TME and MKTME is activated by BIOS

2018-03-13 Thread Kirill A. Shutemov
On Tue, Mar 13, 2018 at 03:12:02PM +1300, Kai Huang wrote: > It seems setup_pku() will call get_cpu_cap to restore c->x86_phys_bits > later? In which case I think you need to change setup_pku as well. Thanks for catching this. I think setup_pku() shouldn't call get_cpu_cap(). Any objections

Re: [tip:x86/mm] x86/tme: Detect if TME and MKTME is activated by BIOS

2018-03-12 Thread Kai Huang
On Mon, 2018-03-12 at 05:21 -0700, tip-bot for Kirill A. Shutemov wrote: > Commit-ID: cb06d8e3d020c30fe10ae711c925a5319ab82c88 > Gitweb: https://git.kernel.org/tip/cb06d8e3d020c30fe10ae711c925a5 > 319ab82c88 > Author: Kirill A. Shutemov > AuthorDate: Mon,

Re: [tip:x86/mm] x86/tme: Detect if TME and MKTME is activated by BIOS

2018-03-12 Thread Kai Huang
On Mon, 2018-03-12 at 05:21 -0700, tip-bot for Kirill A. Shutemov wrote: > Commit-ID: cb06d8e3d020c30fe10ae711c925a5319ab82c88 > Gitweb: https://git.kernel.org/tip/cb06d8e3d020c30fe10ae711c925a5 > 319ab82c88 > Author: Kirill A. Shutemov > AuthorDate: Mon, 5 Mar 2018 19:25:50 +0300 >