debuggers.hg

view tools/xenpaging/policy.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 f84ae053b7da
children
line source
1 /******************************************************************************
2 * tools/xenpaging/policy.h
3 *
4 * Xen domain paging policy hooks.
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_PAGING_POLICY_H__
25 #define __XEN_PAGING_POLICY_H__
28 #include "xenpaging.h"
31 int policy_init(xenpaging_t *paging);
32 int policy_choose_victim(xenpaging_t *paging, xenpaging_victim_t *victim);
33 void policy_notify_paged_out(unsigned long gfn);
34 void policy_notify_paged_in(unsigned long gfn);
36 #endif // __XEN_PAGING_POLICY_H__
39 /*
40 * Local variables:
41 * mode: C
42 * c-set-style: "BSD"
43 * c-basic-offset: 4
44 * tab-width: 4
45 * indent-tabs-mode: nil
46 * End:
47 */