|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] hvm builder: Cleaner sp_extents allocatio
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1217504312 -3600
# Node ID a23f0d91e2fcb492c8c26659e14d004e9b6f7caf
# Parent a09df7d4e94eaf6554e97faa0cbcc733dd90581d
hvm builder: Cleaner sp_extents allocation
We do not need more than count elements in the sp_extents array.
Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
---
tools/libxc/xc_hvm_build.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r a09df7d4e94e -r a23f0d91e2fc tools/libxc/xc_hvm_build.c
--- a/tools/libxc/xc_hvm_build.c Thu Jul 31 12:11:00 2008 +0100
+++ b/tools/libxc/xc_hvm_build.c Thu Jul 31 12:38:32 2008 +0100
@@ -229,7 +229,7 @@ static int setup_guest(int xc_handle,
if ( ((count | cur_pages) & (SUPERPAGE_NR_PFNS - 1)) == 0 )
{
long done;
- xen_pfn_t sp_extents[2048 >> SUPERPAGE_PFN_SHIFT];
+ xen_pfn_t sp_extents[count >> SUPERPAGE_PFN_SHIFT];
struct xen_memory_reservation sp_req = {
.nr_extents = count >> SUPERPAGE_PFN_SHIFT,
.extent_order = SUPERPAGE_PFN_SHIFT,
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] hvm builder: Cleaner sp_extents allocation,
Xen patchbot-unstable <=
|
|
|
|
|