Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
To: kumagai-atsushi@mxc.nes.nec.co.jp
Cc: kexec@lists.infradead.org, ptesarik@suse.cz
Subject: Re: [PATCH v3 1/2] Generic handling of multi-page exclusions
Date: Wed, 14 May 2014 19:37:23 +0900 (JST)	[thread overview]
Message-ID: <20140514.193723.161348018.d.hatayama@jp.fujitsu.com> (raw)
In-Reply-To: <0910DD04CBD6DE4193FCF86B9C00BE9721099E@BPXM01GP.gisp.nec.co.jp>

From: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Subject: RE: [PATCH v3 1/2] Generic handling of multi-page exclusions
Date: Wed, 14 May 2014 07:54:17 +0000

> Hello Petr,
> 
>>When multiple pages are excluded from the dump, store the extents in
>>struct cycle and check if anything is still pending on the next invocation
>>of __exclude_unnecessary_pages. This assumes that:
>>
>>  1. after __exclude_unnecessary_pages is called for a struct mem_map_data
>>     that extends beyond the current cycle, it is not called again during
>>     that cycle,
>>  2. in the next cycle, __exclude_unnecessary_pages is not called before
>>     this final struct mem_map_data.
>>
>>Both assumptions are met if struct mem_map_data segments:
>>
>>  1. do not overlap,
>>  2. are sorted by physical address in ascending order.
> 
> In ELF case, write_elf_pages_cyclic() processes PT_LOAD entries from
> PT_LOAD(0), this can break both assumptions unluckily.
> Actually this patch doesn't work on my machine:
> 
> LOAD (0)
>   phys_start : 1000000
>   phys_end   : 182f000
>   virt_start : ffffffff81000000
>   virt_end   : ffffffff8182f000
> LOAD (1)
>   phys_start : 1000
>   phys_end   : 9b400
>   virt_start : ffff810000001000
>   virt_end   : ffff81000009b400
> LOAD (2)
>   phys_start : 100000
>   phys_end   : 27000000
>   virt_start : ffff810000100000
>   virt_end   : ffff810027000000
> LOAD (3)
>   phys_start : 37000000
>   phys_end   : cff70000
>   virt_start : ffff810037000000
>   virt_end   : ffff8100cff70000
> LOAD (4)
>   phys_start : 100000000
>   phys_end   : 170000000
>   virt_start : ffff810100000000
>   virt_end   : ffff810170000000
> 
> 
> PT_LOAD(2) includes PT_LOAD(0) and there physical addresses aren't sorted.
> 
> If there is the only "sort issue", it may easy to fix it with a new iterator
> like "for_each_pt_load()", it iterates PT_LOAD entries in ascending order
> by physical address.
> However, I don't have a good idea to solve the overlap issue now...
> 

Is it enough to merge them? Prepare a modified version of PTLOAD list
and refer to it in actual processing. I think this also leads to
cleaning up readpage_elf() that addresses some overapping memory map
issue on ia64.

--
Thanks.
HATAYAMA, Daisuke


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

  parent reply	other threads:[~2014-05-14 10:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07 17:06 [PATCH v3 0/2] Generic multi-page exclusion Petr Tesarik
2014-05-07 17:06 ` [PATCH v3 1/2] Generic handling of multi-page exclusions Petr Tesarik
2014-05-14  7:54   ` Atsushi Kumagai
2014-05-14  8:41     ` Petr Tesarik
2014-05-14 10:37     ` HATAYAMA Daisuke [this message]
2014-05-14 10:54       ` HATAYAMA Daisuke
2014-05-14 12:38         ` Petr Tesarik
2014-05-16  7:24           ` Atsushi Kumagai
2014-05-26  9:43             ` Petr Tesarik
2014-05-07 17:06 ` [PATCH v3 2/2] Get rid of overrun adjustments Petr Tesarik
2014-05-14  3:05 ` [PATCH v3 0/2] Generic multi-page exclusion Petr Tesarik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140514.193723.161348018.d.hatayama@jp.fujitsu.com \
    --to=d.hatayama@jp.fujitsu.com \
    --cc=kexec@lists.infradead.org \
    --cc=kumagai-atsushi@mxc.nes.nec.co.jp \
    --cc=ptesarik@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox