|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 09/12] xen: ask the hypervisor how much space it need
To: |
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> |
Subject: |
[Xen-devel] [PATCH 09/12] xen: ask the hypervisor how much space it needs reserved |
From: |
Jeremy Fitzhardinge <jeremy@xxxxxxxx> |
Date: |
Mon, 15 Oct 2007 13:48:49 -0700 |
Cc: |
xen-devel@xxxxxxxxxxxxxxxxxxx, LKML <linux-kernel@xxxxxxxxxxxxxxx>, Andi Kleen <ak@xxxxxxx>, Chris Wright <chrisw@xxxxxxxxxxxx>, virtualization@xxxxxxxxxxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>, Stable Kernel <stable@xxxxxxxxxx> |
Delivery-date: |
Mon, 15 Oct 2007 14:39:16 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxx |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<20071015204840.074767068@xxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
User-agent: |
quilt/0.46-1 |
Ask the hypervisor how much space it needs reserved, since 32-on-64
doesn't need any space, and it may change in future.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xxxxxxxxxxxxx>
---
arch/x86/xen/enlighten.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
===================================================================
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1085,6 +1085,17 @@ static const struct machine_ops __initda
};
+static void __init xen_reserve_top(void)
+{
+ unsigned long top = HYPERVISOR_VIRT_START;
+ struct xen_platform_parameters pp;
+
+ if (HYPERVISOR_xen_version(XENVER_platform_parameters, &pp) == 0)
+ top = pp.virt_start;
+
+ reserve_top_address(-top + 2 * PAGE_SIZE);
+}
+
/* First C function to be called on Xen boot */
asmlinkage void __init xen_start_kernel(void)
{
@@ -1134,7 +1145,7 @@ asmlinkage void __init xen_start_kernel(
paravirt_ops.kernel_rpl = 0;
/* set the limit of our address space */
- reserve_top_address(-HYPERVISOR_VIRT_START + 2 * PAGE_SIZE);
+ xen_reserve_top();
/* set up basic CPUID stuff */
cpu_detect(&new_cpu_data);
--
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00/12] xen/paravirt_ops patches for 2.6.24, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 05/12] xen: yield to IPI target if necessary, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 04/12] Clean up duplicate includes in arch/i386/xen/, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 02/12] paravirt: clean up lazy mode handling, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 03/12] remove dead code in pgtable_cache_init, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 12/12] xfs: eagerly remove vmap mappings to avoid upsetting Xen, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 11/12] xen: add some debug output for failed multicalls, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 10/12] xen: fix incorrect vcpu_register_vcpu_info hypercall argument, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 09/12] xen: ask the hypervisor how much space it needs reserved,
Jeremy Fitzhardinge <=
- [Xen-devel] [PATCH 06/12] xen: add batch completion callbacks, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 08/12] xen: lock pte pages while pinning/unpinning, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 01/12] paravirt: refactor struct paravirt_ops into smaller pv_*_ops, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 07/12] xen: deal with stale cr3 values when unpinning pagetables, Jeremy Fitzhardinge
- [Xen-devel] Re: [stable] [PATCH 00/12] xen/paravirt_ops patches for 2.6.24, Greg KH
|
|
|
|
|