Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-02-04 Thread Andrew Morton
On Wed, 9 Jan 2013 17:32:32 +0800 Tang Chen wrote: > +static void __meminit > +remove_pagetable(unsigned long start, unsigned long end, bool direct) > +{ > + unsigned long next; > + pgd_t *pgd; > + pud_t *pud; > + bool pgd_changed = false; > + > + for (; start < end; start =

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-02-04 Thread Andrew Morton
On Wed, 9 Jan 2013 17:32:32 +0800 Tang Chen tangc...@cn.fujitsu.com wrote: +static void __meminit +remove_pagetable(unsigned long start, unsigned long end, bool direct) +{ + unsigned long next; + pgd_t *pgd; + pud_t *pud; + bool pgd_changed = false; + + for (; start

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
On Wed, 2013-01-30 at 13:55 +0800, Tang Chen wrote: > On 01/30/2013 11:27 AM, Simon Jeons wrote: > > On Wed, 2013-01-30 at 10:16 +0800, Tang Chen wrote: > >> On 01/29/2013 09:04 PM, Simon Jeons wrote: > >>> Hi Tang, > >>> On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: > From: Wen

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Tang Chen
On 01/30/2013 11:27 AM, Simon Jeons wrote: On Wed, 2013-01-30 at 10:16 +0800, Tang Chen wrote: On 01/29/2013 09:04 PM, Simon Jeons wrote: Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: From: Wen Congyang When memory is removed, the corresponding pagetables should alse be

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
On Wed, 2013-01-30 at 10:16 +0800, Tang Chen wrote: > On 01/29/2013 09:04 PM, Simon Jeons wrote: > > Hi Tang, > > On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: > >> From: Wen Congyang > >> > >> When memory is removed, the corresponding pagetables should alse be > >> removed. > >> This patch

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Tang Chen
On 01/29/2013 09:04 PM, Simon Jeons wrote: Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: From: Wen Congyang When memory is removed, the corresponding pagetables should alse be removed. This patch introduces some common APIs to support vmemmap pagetable and x86_64 architecture

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
On Wed, 2013-01-30 at 09:53 +0800, Jianguo Wu wrote: > On 2013/1/29 21:02, Simon Jeons wrote: > > > Hi Tang, > > On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: > >> From: Wen Congyang > >> > >> When memory is removed, the corresponding pagetables should alse be > >> removed. > >> This

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Jianguo Wu
On 2013/1/29 21:02, Simon Jeons wrote: > Hi Tang, > On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: >> From: Wen Congyang >> >> When memory is removed, the corresponding pagetables should alse be removed. >> This patch introduces some common APIs to support vmemmap pagetable and >> x86_64

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: > From: Wen Congyang > > When memory is removed, the corresponding pagetables should alse be removed. > This patch introduces some common APIs to support vmemmap pagetable and x86_64 > architecture pagetable removing. Why don't need

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: > From: Wen Congyang > > When memory is removed, the corresponding pagetables should alse be removed. > This patch introduces some common APIs to support vmemmap pagetable and x86_64 > architecture pagetable removing. > When page

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: From: Wen Congyang we...@cn.fujitsu.com When memory is removed, the corresponding pagetables should alse be removed. This patch introduces some common APIs to support vmemmap pagetable and x86_64 architecture pagetable removing.

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: From: Wen Congyang we...@cn.fujitsu.com When memory is removed, the corresponding pagetables should alse be removed. This patch introduces some common APIs to support vmemmap pagetable and x86_64 architecture pagetable removing.

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Jianguo Wu
On 2013/1/29 21:02, Simon Jeons wrote: Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: From: Wen Congyang we...@cn.fujitsu.com When memory is removed, the corresponding pagetables should alse be removed. This patch introduces some common APIs to support vmemmap pagetable and

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
On Wed, 2013-01-30 at 09:53 +0800, Jianguo Wu wrote: On 2013/1/29 21:02, Simon Jeons wrote: Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: From: Wen Congyang we...@cn.fujitsu.com When memory is removed, the corresponding pagetables should alse be removed. This patch

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Tang Chen
On 01/29/2013 09:04 PM, Simon Jeons wrote: Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: From: Wen Congyangwe...@cn.fujitsu.com When memory is removed, the corresponding pagetables should alse be removed. This patch introduces some common APIs to support vmemmap pagetable and

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
On Wed, 2013-01-30 at 10:16 +0800, Tang Chen wrote: On 01/29/2013 09:04 PM, Simon Jeons wrote: Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: From: Wen Congyangwe...@cn.fujitsu.com When memory is removed, the corresponding pagetables should alse be removed. This patch

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Tang Chen
On 01/30/2013 11:27 AM, Simon Jeons wrote: On Wed, 2013-01-30 at 10:16 +0800, Tang Chen wrote: On 01/29/2013 09:04 PM, Simon Jeons wrote: Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: From: Wen Congyangwe...@cn.fujitsu.com When memory is removed, the corresponding pagetables

Re: [PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-29 Thread Simon Jeons
On Wed, 2013-01-30 at 13:55 +0800, Tang Chen wrote: On 01/30/2013 11:27 AM, Simon Jeons wrote: On Wed, 2013-01-30 at 10:16 +0800, Tang Chen wrote: On 01/29/2013 09:04 PM, Simon Jeons wrote: Hi Tang, On Wed, 2013-01-09 at 17:32 +0800, Tang Chen wrote: From: Wen

[PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-09 Thread Tang Chen
From: Wen Congyang When memory is removed, the corresponding pagetables should alse be removed. This patch introduces some common APIs to support vmemmap pagetable and x86_64 architecture pagetable removing. All pages of virtual mapping in removed memory cannot be freedi if some pages used as

[PATCH v6 08/15] memory-hotplug: Common APIs to support page tables hot-remove

2013-01-09 Thread Tang Chen
From: Wen Congyang we...@cn.fujitsu.com When memory is removed, the corresponding pagetables should alse be removed. This patch introduces some common APIs to support vmemmap pagetable and x86_64 architecture pagetable removing. All pages of virtual mapping in removed memory cannot be freedi if