debuggers.hg

view tools/xenpaging/xc.h @ 22848:6341fe0f4e5a

Added tag 4.1.0-rc2 for changeset 9dca60d88c63
author Keir Fraser <keir@xen.org>
date Tue Jan 25 14:06:55 2011 +0000 (2011-01-25)
parents 60782cefa154
children
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 <stdarg.h>
29 #include <xc_private.h>
30 #include <xen/mem_event.h>
33 #if 1
34 #define ASSERT(_p) \
35 if ( !(_p) ) { DPRINTF("Assertion '%s' failed, line %d, file %s", #_p , \
36 __LINE__, __FILE__); *(int*)0=0; }
37 #else
38 #define ASSERT(_p) ((void)0)
39 #endif
42 #define BITS_PER_LONG 64
45 typedef struct xc_platform_info {
46 unsigned long max_mfn;
47 unsigned long hvirt_start;
48 unsigned int pt_levels;
49 unsigned int guest_width;
50 } xc_platform_info_t;
53 int alloc_bitmap(unsigned long **bitmap, unsigned long bitmap_size);
55 int xc_mem_paging_flush_ioemu_cache(domid_t domain_id);
56 int xc_wait_for_event(xc_interface *xch, xc_evtchn *xce);
57 int xc_wait_for_event_or_timeout(xc_interface *xch, xc_evtchn *xce, unsigned long ms);
59 int xc_get_platform_info(xc_interface *xc_handle, domid_t domain_id,
60 xc_platform_info_t *platform_info);
63 #endif // __XC_H__
66 /*
67 * Local variables:
68 * mode: C
69 * c-set-style: "BSD"
70 * c-basic-offset: 4
71 * tab-width: 4
72 * indent-tabs-mode: nil
73 * End:
74 */