Re: [PATCH kernel 1/1] powerpc/Documentation/misc-devices/: Fix one compile error

2017-02-22 Thread Winkler, Tomas
On Wed, 2017-02-22 at 15:22 +0800, f...@ikuai8.com wrote: > From: Gao Feng > > When make allyesconfig, there is one compile error on my platform > "gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4". > The following is the output. > > Documentation/misc-devices/mei/mei-amt-version.c: In function ‘main’:

Re: [PATCH kernel 1/1] powerpc/Documentation/misc-devices/: Fix one compile error

2017-02-22 Thread Feng Gao
On Wed, Feb 22, 2017 at 4:14 PM, Winkler, Tomas wrote: > On Wed, 2017-02-22 at 15:22 +0800, f...@ikuai8.com wrote: >> From: Gao Feng >> >> When make allyesconfig, there is one compile error on my platform >> "gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4". >> The following is the output. >> >> Docume

RE: [PATCH kernel 1/1] powerpc/Documentation/misc-devices/: Fix one compile error

2017-02-22 Thread Winkler, Tomas
> > On Wed, Feb 22, 2017 at 4:14 PM, Winkler, Tomas > wrote: > > On Wed, 2017-02-22 at 15:22 +0800, f...@ikuai8.com wrote: > >> From: Gao Feng > >> > >> When make allyesconfig, there is one compile error on my platform > >> "gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4". > >> The following is the

Re: [RFC PATCH v4 07/28] x86: Provide general kernel support for memory encryption

2017-02-22 Thread Borislav Petkov
On Tue, Feb 21, 2017 at 11:18:08AM -0600, Tom Lendacky wrote: > It's the latter. It's really only used for working with values that > will either be written to or read from cr3. I'll add some comments > around the macros as well as expand on it in the commit message. Ok, that makes sense. Normal

Re: [RFC PATCH v4 08/28] x86: Extend the early_memremap support with additional attrs

2017-02-22 Thread Tom Lendacky
On 2/20/2017 9:43 AM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:43:48AM -0600, Tom Lendacky wrote: Add to the early_memremap support to be able to specify encrypted and early_memremap() Please append "()" to function names in your commit messages text. decrypted mappings with and wi

Re: [RFC PATCH v4 09/28] x86: Add support for early encryption/decryption of memory

2017-02-22 Thread Tom Lendacky
On 2/20/2017 12:22 PM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:43:58AM -0600, Tom Lendacky wrote: Add support to be able to either encrypt or decrypt data in place during the early stages of booting the kernel. This does not change the memory encryption attribute - it is used for ensur

Re: [RFC PATCH v4 07/28] x86: Provide general kernel support for memory encryption

2017-02-22 Thread Tom Lendacky
On 2/20/2017 12:38 PM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:43:32AM -0600, Tom Lendacky wrote: Adding general kernel support for memory encryption includes: - Modify and create some page table macros to include the Secure Memory Encryption (SME) memory encryption mask - Modify and

Re: making documentation targets on v4.10 with Fedora 25

2017-02-22 Thread Jim Davis
On Mon, Feb 20, 2017 at 4:20 PM, Jonathan Corbet wrote: > On Mon, 20 Feb 2017 12:19:24 -0700 > Jim Davis wrote: > >> pdfdocs (Sphinx or DocBook) has been broken for some time, while >> psdocs hasn't worked in ages. The errors with the Sphinx htmldocs and >> epubdocs targets seem to be some Pytho

Re: [RFC PATCH v4 07/28] x86: Provide general kernel support for memory encryption

2017-02-22 Thread Dave Hansen
On 02/16/2017 07:43 AM, Tom Lendacky wrote: > static inline unsigned long pte_pfn(pte_t pte) > { > - return (pte_val(pte) & PTE_PFN_MASK) >> PAGE_SHIFT; > + return (pte_val(pte) & ~sme_me_mask & PTE_PFN_MASK) >> PAGE_SHIFT; > } > > static inline unsigned long pmd_pfn(pmd_t pmd) > { >

Re: [RFC PATCH v4 07/28] x86: Provide general kernel support for memory encryption

2017-02-22 Thread Dave Hansen
On 02/16/2017 07:43 AM, Tom Lendacky wrote: > ) > @@ -673,7 +683,7 @@ static inline unsigned long pgd_page_vaddr(pgd_t pgd) > * Currently stuck as a macro due to indirect forward reference to > * linux/mmzone.h's __section_mem_map_addr() definition: > */ > -#define pgd_page(pgd)

Re: [RFC PATCH v4 10/28] x86: Insure that boot memory areas are mapped properly

2017-02-22 Thread Tom Lendacky
On 2/20/2017 1:45 PM, Borislav Petkov wrote: On Thu, Feb 16, 2017 at 09:44:11AM -0600, Tom Lendacky wrote: The boot data and command line data are present in memory in a decrypted state and are copied early in the boot process. The early page fault support will map these areas as encrypted, so

Re: [RFC PATCH v4 16/28] x86: Add support for changing memory encryption attribute

2017-02-22 Thread Borislav Petkov
On Thu, Feb 16, 2017 at 09:45:35AM -0600, Tom Lendacky wrote: > Add support for changing the memory encryption attribute for one or more > memory pages. "This will be useful when we, , for example." > Signed-off-by: Tom Lendacky > --- > arch/x86/include/asm/cacheflush.h |3 ++ > arch/x8

[PULL] Documentation for 4.11

2017-02-22 Thread Jonathan Corbet
The following changes since commit 36f671be1db1b17d3d4ab0c8b47f81ccb1efcb75: Documentation/unaligned-memory-access.txt: fix incorrect comparison operator (2016-12-27 13:08:42 -0700) are available in the git repository at: git://git.lwn.net/linux.git tags/docs-4.11 for you to fetch changes

Re: [PATCH kernel 1/1] powerpc/Documentation/misc-devices/: Fix one compile error

2017-02-22 Thread Feng Gao
On Wed, Feb 22, 2017 at 5:09 PM, Winkler, Tomas wrote: > >> >> On Wed, Feb 22, 2017 at 4:14 PM, Winkler, Tomas >> wrote: >> > On Wed, 2017-02-22 at 15:22 +0800, f...@ikuai8.com wrote: >> >> From: Gao Feng >> >> >> >> When make allyesconfig, there is one compile error on my platform >> >> "gcc (U