Annotation of /trunk/kernel26-xen/patches-2.6.25-r1/1040-2.6.25-xen-balloon-max-target.patch
Parent Directory | Revision Log
Revision 609 -
(hide annotations)
(download)
Fri May 23 17:35:37 2008 UTC (16 years, 4 months ago) by niro
File size: 1266 byte(s)
Fri May 23 17:35:37 2008 UTC (16 years, 4 months ago) by niro
File size: 1266 byte(s)
-using opensuse xen patchset, updated kernel configs
1 | niro | 609 | From: ccoffing@novell.com |
2 | Subject: Expose min/max limits of domain ballooning | ||
3 | Patch-mainline: obsolete | ||
4 | References: 152667, 184727 | ||
5 | |||
6 | Index: head-2008-04-15/drivers/xen/balloon/balloon.c | ||
7 | =================================================================== | ||
8 | --- head-2008-04-15.orig/drivers/xen/balloon/balloon.c 2008-04-15 10:31:51.000000000 +0200 | ||
9 | +++ head-2008-04-15/drivers/xen/balloon/balloon.c 2008-04-15 10:48:02.000000000 +0200 | ||
10 | @@ -92,6 +92,7 @@ extern unsigned long totalhigh_pages; | ||
11 | #define inc_totalhigh_pages() ((void)0) | ||
12 | #define dec_totalhigh_pages() ((void)0) | ||
13 | #endif | ||
14 | +extern unsigned long num_physpages; | ||
15 | |||
16 | /* List of ballooned pages, threaded through the mem_map array. */ | ||
17 | static LIST_HEAD(ballooned_pages); | ||
18 | @@ -494,11 +495,14 @@ static int balloon_read(char *page, char | ||
19 | page, | ||
20 | "Current allocation: %8lu kB\n" | ||
21 | "Requested target: %8lu kB\n" | ||
22 | + "Minimum target: %8lu kB\n" | ||
23 | + "Maximum target: %8lu kB\n" | ||
24 | "Low-mem balloon: %8lu kB\n" | ||
25 | "High-mem balloon: %8lu kB\n" | ||
26 | "Driver pages: %8lu kB\n" | ||
27 | "Xen hard limit: ", | ||
28 | PAGES2KB(bs.current_pages), PAGES2KB(bs.target_pages), | ||
29 | + PAGES2KB(minimum_target()), PAGES2KB(num_physpages), | ||
30 | PAGES2KB(bs.balloon_low), PAGES2KB(bs.balloon_high), | ||
31 | PAGES2KB(bs.driver_pages)); | ||
32 |