debuggers.hg

view tools/xenpaging/policy.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/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, domid_t domain_id,
33 xenpaging_victim_t *victim);
34 void policy_notify_paged_out(domid_t domain_id, unsigned long gfn);
35 void policy_notify_paged_in(domid_t domain_id, unsigned long gfn);
37 #endif // __XEN_PAGING_POLICY_H__
40 /*
41 * Local variables:
42 * mode: C
43 * c-set-style: "BSD"
44 * c-basic-offset: 4
45 * tab-width: 4
46 * indent-tabs-mode: nil
47 * End:
48 */