diff options
author | Juergen Gross <jgross@suse.com> | 2015-09-04 14:05:51 +0200 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-09-08 16:28:06 +0100 |
commit | 626d7508664c4bc8e67f496da4387ecd0c410b8c (patch) | |
tree | aa6f8868b6e18950a16dd8225c7e95a429a0dca9 /include | |
parent | cb9e444b5aaa900bb4310da411315b6947c53e37 (diff) | |
download | linux-626d7508664c4bc8e67f496da4387ecd0c410b8c.tar.gz linux-626d7508664c4bc8e67f496da4387ecd0c410b8c.tar.bz2 linux-626d7508664c4bc8e67f496da4387ecd0c410b8c.zip |
xen: switch extra memory accounting to use pfns
Instead of using physical addresses for accounting of extra memory
areas available for ballooning switch to pfns as this is much less
error prone regarding partial pages.
Reported-by: Roger Pau Monné <roger.pau@citrix.com>
Tested-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/xen/page.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/xen/page.h b/include/xen/page.h index c5ed20bb3fe9..a5983da2f5cd 100644 --- a/include/xen/page.h +++ b/include/xen/page.h @@ -9,8 +9,8 @@ static inline unsigned long page_to_mfn(struct page *page) } struct xen_memory_region { - phys_addr_t start; - phys_addr_t size; + unsigned long start_pfn; + unsigned long n_pfns; }; #define XEN_EXTRA_MEM_MAX_REGIONS 128 /* == E820MAX */ |