direct-io.hg

view xen/include/asm-powerpc/shadow.h @ 11102:920784588848

[POWERPC] need a real definition for gnttab_log_dirty()

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Sun Aug 13 14:43:50 2006 -0400 (2006-08-13)
parents 3109eaa648e5
children 75b4982b82fe
line source
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15 *
16 * Copyright (C) IBM Corp. 2005
17 *
18 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
19 */
21 #ifndef _ASM_SHADOW_H_
22 #define _ASM_SHADOW_H_
24 #include <xen/sched.h>
26 #define shadow_mode_translate(_d) (1)
27 #define shadow_mode_refcounts(_d) (1)
29 #define __translate_gpfn_to_mfn(_d, gpfn) \
30 ( (shadow_mode_translate(_d)) \
31 ? translate_gpfn_to_mfn(_d, gpfn) \
32 : (gpfn) )
34 #define __mfn_to_gpfn(_d, mfn) \
35 ( (shadow_mode_translate(_d)) \
36 ? machine_to_phys_mapping[(mfn)] \
37 : (mfn) )
39 static inline unsigned long
40 translate_gpfn_to_mfn(struct domain *rd, unsigned long gpfn)
41 {
42 trap();
43 return 0;
44 }
45 extern void guest_physmap_add_page(
46 struct domain *d, unsigned long gpfn, unsigned long mfn);
48 extern void guest_physmap_remove_page(
49 struct domain *d, unsigned long gpfn, unsigned long mfn);
51 extern void shadow_drop_references(
52 struct domain *d, struct page_info *page);
54 static inline void mark_dirty(struct domain *d, unsigned int mfn)
55 {
56 return;
57 }
58 #endif