debuggers.hg

view tools/xenpaging/xenpaging.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 f87b1c194eb8
children
line source
1 /******************************************************************************
2 * tools/xenpaging/xenpaging.h
3 *
4 * Xen domain paging.
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 __XEN_PAGING2_H__
25 #define __XEN_PAGING2_H__
28 #include "spinlock.h"
29 #include "xc.h"
30 #include <xc_private.h>
32 #include <xen/event_channel.h>
33 #include <xen/mem_event.h>
35 #include "mem_event.h"
38 typedef struct xenpaging {
39 xc_interface *xc_handle;
41 xc_platform_info_t *platform_info;
42 xc_domaininfo_t *domain_info;
44 unsigned long bitmap_size;
45 unsigned long *bitmap;
47 mem_event_t mem_event;
48 int policy_mru_size;
49 } xenpaging_t;
52 typedef struct xenpaging_victim {
53 /* the gfn of the page to evict */
54 unsigned long gfn;
55 } xenpaging_victim_t;
58 #endif // __XEN_PAGING_H__
61 /*
62 * Local variables:
63 * mode: C
64 * c-set-style: "BSD"
65 * c-basic-offset: 4
66 * tab-width: 4
67 * indent-tabs-mode: nil
68 * End:
69 */