diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-01-13 08:14:01 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-01-13 08:14:01 +0000 |
commit | b3eb2c1e8b4cf199aa4bf8188685c3059c420a60 (patch) | |
tree | d8eb7d4c8ba276a0f422af101f52ac54aa240781 /tools/libxc/xc_private.h | |
parent | 9fececad98aa1259a9896edf7e7931822e3eef87 (diff) | |
download | xen-b3eb2c1e8b4cf199aa4bf8188685c3059c420a60.tar.gz xen-b3eb2c1e8b4cf199aa4bf8188685c3059c420a60.tar.bz2 xen-b3eb2c1e8b4cf199aa4bf8188685c3059c420a60.zip |
x86: add and use XEN_DOMCTL_getpageframeinfo3
To support wider than 28-bit MFNs, add XEN_DOMCTL_getpageframeinfo3
(with the type replacing the passed in MFN rather than getting or-ed
into it) to properly back xc_get_pfn_type_batch().
With xc_get_pfn_type_batch() only used internally to libxc, move its
prototype from xenctrl.h to xc_private.h.
This also fixes a couple of bugs in pre-existing code:
- the failure path for init_mem_info() leaked minfo->pfn_type,
- one error path of the XEN_DOMCTL_getpageframeinfo2 handler used
put_domain() where rcu_unlock_domain() was meant, and
- the XEN_DOMCTL_getpageframeinfo2 handler could call
xsm_getpageframeinfo() with an invalid struct page_info pointer.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'tools/libxc/xc_private.h')
-rw-r--r-- | tools/libxc/xc_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h index 4676fe8ea2..dc88add9c8 100644 --- a/tools/libxc/xc_private.h +++ b/tools/libxc/xc_private.h @@ -191,6 +191,9 @@ void *xc_map_foreign_ranges(int xc_handle, uint32_t dom, size_t size, int prot, size_t chunksize, privcmd_mmap_entry_t entries[], int nentries); +int xc_get_pfn_type_batch(int xc_handle, uint32_t dom, + unsigned int num, xen_pfn_t *); + void bitmap_64_to_byte(uint8_t *bp, const uint64_t *lp, int nbits); void bitmap_byte_to_64(uint64_t *lp, const uint8_t *bp, int nbits); |