debuggers.hg

view tools/xenpaging/xc.h @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
parents 47ec2d131c22
children 779c0ef9682c
line source
1 /******************************************************************************
2 * tools/xenpaging/lib/xc.h
3 *
4 * libxc add-ons.
5 *
6 * Copyright (c) 2009 Citrix Systems, Inc. (Patrick Colp)
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
24 #ifndef __XC_H__
25 #define __XC_H__
28 #include <xc_private.h>
29 #include <xen/mem_event.h>
32 #if 1
33 #define ASSERT(_p) \
34 if ( !(_p) ) { DPRINTF("Assertion '%s' failed, line %d, file %s", #_p , \
35 __LINE__, __FILE__); *(int*)0=0; }
36 #else
37 #define ASSERT(_p) ((void)0)
38 #endif
41 #define BITS_PER_LONG 64
44 typedef struct xc_platform_info {
45 unsigned long max_mfn;
46 unsigned long hvirt_start;
47 unsigned int pt_levels;
48 unsigned int guest_width;
49 } xc_platform_info_t;
52 int alloc_bitmap(unsigned long **bitmap, unsigned long bitmap_size);
54 int xc_mem_paging_flush_ioemu_cache(domid_t domain_id);
55 int xc_wait_for_event(int xce_handle);
56 int xc_wait_for_event_or_timeout(int xce_handle, unsigned long ms);
58 int xc_get_platform_info(int xc_handle, domid_t domain_id,
59 xc_platform_info_t *platform_info);
62 #endif // __XC_H__
65 /*
66 * Local variables:
67 * mode: C
68 * c-set-style: "BSD"
69 * c-basic-offset: 4
70 * tab-width: 4
71 * indent-tabs-mode: nil
72 * End:
73 */