mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
8b5d44a5ac
Allow the xen balloon driver to populate its list of extra pages from more than one region of memory. This will allow platforms to provide (for example) a region of low memory and a region of high memory. The maximum possible number of extra regions is 128 (== E820MAX) which is quite large so xen_extra_mem is placed in __initdata. This is safe as both xen_memory_setup() and balloon_init() are in __init. The balloon regions themselves are not altered (i.e., there is still only the one region). Signed-off-by: David Vrabel <david.vrabel@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
19 lines
347 B
C
19 lines
347 B
C
#ifndef _XEN_PAGE_H
|
|
#define _XEN_PAGE_H
|
|
|
|
#include <asm/xen/page.h>
|
|
|
|
struct xen_memory_region {
|
|
phys_addr_t start;
|
|
phys_addr_t size;
|
|
};
|
|
|
|
#define XEN_EXTRA_MEM_MAX_REGIONS 128 /* == E820MAX */
|
|
|
|
extern __initdata
|
|
struct xen_memory_region xen_extra_mem[XEN_EXTRA_MEM_MAX_REGIONS];
|
|
|
|
extern unsigned long xen_released_pages;
|
|
|
|
#endif /* _XEN_PAGE_H */
|