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, see <http://www.gnu.org/licenses/>. 20 */ 21 22 23 #ifndef __XEN_PAGING_POLICY_H__ 24 #define __XEN_PAGING_POLICY_H__ 25 26 27 #include "xenpaging.h" 28 29 30 int policy_init(struct xenpaging *paging); 31 unsigned long policy_choose_victim(struct xenpaging *paging); 32 void policy_notify_paged_out(unsigned long gfn); 33 void policy_notify_paged_in(unsigned long gfn); 34 void policy_notify_paged_in_nomru(unsigned long gfn); 35 void policy_notify_dropped(unsigned long gfn); 36 37 #endif // __XEN_PAGING_POLICY_H__ 38 39 40 /* 41 * Local variables: 42 * mode: C 43 * c-file-style: "BSD" 44 * c-basic-offset: 4 45 * tab-width: 4 46 * indent-tabs-mode: nil 47 * End: 48 */ 49