Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1191744
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | David Vrabel <david.vrabel@citrix.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCHv2 03/10] x86/xen: discard RAM regions above the maximum reservation |
| Date | Fri, 24 Jul 2015 13:50:01 +0200 |
| Message-ID | <pPJEd-4HJ-7@gated-at.bofh.it> (permalink) |
| References | <pPJEd-4HJ-5@gated-at.bofh.it> |
| X-Original-To | <xen-devel@lists.xenproject.org> |
| X-Ironport-Av | E=Sophos;i="5.15,538,1432598400"; d="scan'208";a="284047039" |
| X-Mailer | git-send-email 2.1.4 |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| X-Dlp | MIA2 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 44 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | David Vrabel <david.vrabel@citrix.com>, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, <linux-kernel@vger.kernel.org>, <linux-mm@kvack.org>, Daniel Kiper <daniel.kiper@oracle.com> |
| X-Original-Date | Fri, 24 Jul 2015 12:47:41 +0100 |
| X-Original-Message-ID | <1437738468-24110-4-git-send-email-david.vrabel@citrix.com> |
| X-Original-References | <1437738468-24110-1-git-send-email-david.vrabel@citrix.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1191744 |
Show key headers only | View raw
During setup, discard RAM regions that are above the maximum
reservation (instead of marking them as E820_UNUSABLE). This allows
hotplug memory to be placed at these addresses.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
---
arch/x86/xen/setup.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c
index 55f388e..32910c5 100644
--- a/arch/x86/xen/setup.c
+++ b/arch/x86/xen/setup.c
@@ -646,6 +646,7 @@ char * __init xen_memory_setup(void)
phys_addr_t addr = map[i].addr;
phys_addr_t size = map[i].size;
u32 type = map[i].type;
+ bool discard = false;
if (type == E820_RAM) {
if (addr < mem_end) {
@@ -656,10 +657,11 @@ char * __init xen_memory_setup(void)
xen_add_extra_mem(addr, size);
xen_max_p2m_pfn = PFN_DOWN(addr + size);
} else
- type = E820_UNUSABLE;
+ discard = true;
}
- xen_align_and_add_e820_region(addr, size, type);
+ if (!discard)
+ xen_align_and_add_e820_region(addr, size, type);
map[i].addr += size;
map[i].size -= size;
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCHv2 03/10] x86/xen: discard RAM regions above the maximum reservation David Vrabel <david.vrabel@citrix.com> - 2015-07-24 13:50 +0200
csiph-web