[PATCH 09/11] x86, pageattr: Add last levels of error path

2013-09-19 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de We try to free the pagetable pages once we've unmapped our portion. Signed-off-by: Borislav Petkov b...@suse.de --- arch/x86/mm/pageattr.c | 94 +- 1 file changed, 93 insertions(+), 1 deletion(-) diff --git

[PATCH 08/11] x86, pageattr: Add a PUD error unwinding path

2013-09-19 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de In case we encounter an error during the mapping of a region, we want to unwind what we've established so far exactly the way we did the mapping. This is the PUD part kept deliberately small for easier review. Signed-off-by: Borislav Petkov b...@suse.de ---

[PATCH 02/11] efi: Remove EFI_PAGE_SHIFT and EFI_PAGE_SIZE

2013-09-19 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de ... and use the good old standard defines which we all know. Also, simplify math to shift by PAGE_SHIFT instead of multiplying by PAGE_SIZE. Signed-off-by: Borislav Petkov b...@suse.de --- arch/x86/boot/compressed/eboot.c | 12 ++--

[PATCH 10/11] x86, cpa: Map in an arbitrary pgd

2013-09-19 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de Add the ability to map pages in an arbitrary pgd. This wires in the remaining stuff so that there's a new interface with which you can map a region into an arbitrary PGD. Signed-off-by: Borislav Petkov b...@suse.de --- arch/x86/mm/pageattr.c | 53

[PATCH 04/11] x86, pageattr: Add a PGD pagetable populating function

2013-09-19 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de This allocates, if necessary, and populates the corresponding PGD entry with a PUD page. The next population level is a dummy macro which will be removed by the next patch and it is added here to keep the patch small and easily reviewable but not break

[PATCH 01/11] efi: Simplify EFI_DEBUG

2013-09-19 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de ... and lose one #ifdef .. #endif sandwich. Signed-off-by: Borislav Petkov b...@suse.de --- arch/x86/platform/efi/efi.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index

[PATCH 00/11] EFI runtime services virtual mapping

2013-09-19 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de Hi all, here's finally a new version of the runtime services VA mapping patchset which hopefully implements hpa's idea of statically mapping EFI runtime regions in a top-down manner starting at -4Gb virtual. We're also using a different pagetable so as not to

[PATCH 03/11] x86, pageattr: Lookup address in an arbitrary PGD

2013-09-19 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de This is preparatory work in order to be able to map pages into a specified PGD and not implicitly and only into init_mm. Signed-off-by: Borislav Petkov b...@suse.de --- arch/x86/mm/pageattr.c | 36 ++-- 1 file changed, 26

[PATCH 07/11] x86, pageattr: Add a PTE pagetable populating function

2013-09-19 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de Handle last level by unconditionally writing the PTEs into the PTE page while paying attention to the NX bit. Signed-off-by: Borislav Petkov b...@suse.de --- arch/x86/mm/pageattr.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-)

[PATCH 05/11] x86, pageattr: Add a PUD pagetable populating function

2013-09-19 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de Add the next level of the pagetable populating function, we handle chunks around a 1G boundary by mapping them with the lower level functions - otherwise we use 1G pages for the mappings, thus using as less amount of pagetable pages as possible. Signed-off-by:

Re: [PATCH 09/17] Move unicode to ASCII conversion to shared function.

2013-09-19 Thread Adam Borowski
On Wed, Sep 18, 2013 at 09:48:44PM -0700, Roy Franz wrote: On Wed, Sep 18, 2013 at 8:44 PM, Adam Borowski kilob...@angband.pl wrote: [UCS2 truncation] I stuck to re-arranging the code that was there, as I don't know enough about character encodings to propose changes. I on the other hand