Re: [PATCH v4] efivars,efi-pstore: Hold off deletion of sysfs entry until the scan is completed

2013-10-31 Thread Madper Xie
seiji.agu...@hds.com writes: Change from v3: - Introduce EFI_VARS_DATA_SIZE_MAX macro. - Add some description why a scanning/deleting logic is needed. Currently, when mounting pstore file system, a read callback of efi_pstore driver runs mutiple times as below. - In the first read

Re: [PATCH 12/12] EFI: Runtime services virtual mapping

2013-10-31 Thread Dave Young
On 10/30/13 at 11:45am, Borislav Petkov wrote: On Wed, Oct 30, 2013 at 05:32:27PM +0800, Dave Young wrote: Boris, thanks for update, it's very elaborate, I have still wonder if 32 bit case should be mentioned as well. Ah, so that's why is mfleming bugging me about it on IRC :) Well, I

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

2013-10-31 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 05/11] x86, pageattr: Add a PMD pagetable populating function

2013-10-31 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de Handle PMD-level mappings the same as PUD ones. Signed-off-by: Borislav Petkov b...@suse.de --- arch/x86/mm/pageattr.c | 82 +- 1 file changed, 81 insertions(+), 1 deletion(-) diff --git a/arch/x86/mm/pageattr.c

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

2013-10-31 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] x86, pageattr: Lookup address in an arbitrary PGD

2013-10-31 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 10/11] EFI: Runtime services virtual mapping

2013-10-31 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de We map the EFI regions needed for runtime services non-contiguously, with preserved alignment on virtual addresses starting from -4G down for a total max space of 64G. This way, we provide for stable runtime services addresses across kernels so that a kexec'd

[PATCH 00/11] EFI runtime services virtual mapping, vN++

2013-10-31 Thread Borislav Petkov
From: Borislav Petkov b...@suse.de Hi all, here's maybe the final version of the patchset, no major changes since the last time but cosmetic and cleanups and tidying as requested by Matt and others. Patches also at: git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git#efi The previous

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

2013-10-31 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(-)

RE: [PATCH 0/2] make all stored entries accessible.

2013-10-31 Thread Seiji Aguchi
I also like option 1 ... but I think the id should be a persistent value for a given saved record. So some func(timestamp, part, count) would be a good idea. If we try using sequential numbers - and don't manage to clear out /sys/fs/pstore each time - then we may have the same dmesg file

Re: [patch 3/6] Cleanup efi_enter_virtual_mode function

2013-10-31 Thread Dave Young
On 10/31/13 at 11:45am, Borislav Petkov wrote: On Wed, Oct 30, 2013 at 08:07:45PM -0700, H. Peter Anvin wrote: You can use git for your own purposes, still. git mk-coffee --refill --now Ccing Jonathan Corbet ;) -- To unsubscribe from this list: send the line unsubscribe linux-efi in the

Re: [patch 3/6] Cleanup efi_enter_virtual_mode function

2013-10-31 Thread Dave Young
On 10/31/13 at 11:44am, Borislav Petkov wrote: Dear Mr. Young, On Thu, Oct 31, 2013 at 10:07:14AM +0800, Dave Young wrote: But Frankly I'd like to see them in list instead even with only small fixes beacuse in this way there might be more people to review it carefully. There's

Re: [PATCH 10/11] EFI: Runtime services virtual mapping

2013-10-31 Thread Dave Young
On 10/31/13 at 05:25pm, Borislav Petkov wrote: From: Borislav Petkov b...@suse.de We map the EFI regions needed for runtime services non-contiguously, with preserved alignment on virtual addresses starting from -4G down for a total max space of 64G. This way, we provide for stable runtime

Re: [PATCH 10/11] EFI: Runtime services virtual mapping

2013-10-31 Thread Dave Young
On 11/01/13 at 11:25am, Dave Young wrote: On 10/31/13 at 05:25pm, Borislav Petkov wrote: From: Borislav Petkov b...@suse.de We map the EFI regions needed for runtime services non-contiguously, with preserved alignment on virtual addresses starting from -4G down for a total max space of