xen-vtx-unstable

annotate xen/include/asm-x86/shadow_ops.h @ 6796:0d8c0db04258

Don't return failure when trying to delete a non-existent node.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue Sep 13 21:52:24 2005 +0000 (2005-09-13)
parents 72e4e2aab342
children
rev   line source
kaf24@6583 1 /******************************************************************************
kaf24@6583 2 * include/asm-x86/shadow_ops.h
kaf24@6583 3 *
kaf24@6583 4 * Copyright (c) 2005 Michael A Fetterman
kaf24@6583 5 * Based on an earlier implementation by Ian Pratt et al
kaf24@6583 6 *
kaf24@6583 7 * This program is free software; you can redistribute it and/or modify
kaf24@6583 8 * it under the terms of the GNU General Public License as published by
kaf24@6583 9 * the Free Software Foundation; either version 2 of the License, or
kaf24@6583 10 * (at your option) any later version.
kaf24@6583 11 *
kaf24@6583 12 * This program is distributed in the hope that it will be useful,
kaf24@6583 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
kaf24@6583 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kaf24@6583 15 * GNU General Public License for more details.
kaf24@6583 16 *
kaf24@6583 17 * You should have received a copy of the GNU General Public License
kaf24@6583 18 * along with this program; if not, write to the Free Software
kaf24@6583 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
kaf24@6583 20 */
kaf24@6583 21
kaf24@6583 22 #ifndef _XEN_SHADOW_OPS_H
kaf24@6583 23 #define _XEN_SHADOW_OPS_H
kaf24@6583 24
kaf24@6583 25 #if defined( GUEST_PGENTRY_32 )
kaf24@6583 26
kaf24@6583 27 #define GUEST_L1_PAGETABLE_ENTRIES L1_PAGETABLE_ENTRIES_32
kaf24@6583 28 #define GUEST_L2_PAGETABLE_ENTRIES L2_PAGETABLE_ENTRIES_32
kaf24@6583 29 #define GUEST_ROOT_PAGETABLE_ENTRIES ROOT_PAGETABLE_ENTRIES_32
kaf24@6583 30 #define GUEST_L2_PAGETABLE_SHIFT L2_PAGETABLE_SHIFT_32
kaf24@6583 31
kaf24@6583 32 #define guest_l1_pgentry_t l1_pgentry_32_t
kaf24@6583 33 #define guest_l2_pgentry_t l2_pgentry_32_t
kaf24@6583 34 #define guest_root_pgentry_t l2_pgentry_32_t
kaf24@6583 35
kaf24@6583 36 #define guest_l1e_get_paddr l1e_get_paddr_32
kaf24@6583 37 #define guest_l2e_get_paddr l2e_get_paddr_32
kaf24@6583 38
kaf24@6583 39 #define guest_get_pte_flags get_pte_flags_32
kaf24@6583 40 #define guest_put_pte_flags put_pte_flags_32
kaf24@6583 41
kaf24@6583 42 #define guest_l1e_get_flags l1e_get_flags_32
kaf24@6583 43 #define guest_l2e_get_flags l2e_get_flags_32
kaf24@6583 44 #define guest_root_get_flags l2e_get_flags_32
kaf24@6583 45 #define guest_root_get_intpte l2e_get_intpte
kaf24@6583 46
kaf24@6583 47 #define guest_l1e_empty l1e_empty_32
kaf24@6583 48 #define guest_l2e_empty l2e_empty_32
kaf24@6583 49
kaf24@6583 50 #define guest_l1e_from_pfn l1e_from_pfn_32
kaf24@6583 51 #define guest_l2e_from_pfn l2e_from_pfn_32
kaf24@6583 52
kaf24@6583 53 #define guest_l1e_from_paddr l1e_from_paddr_32
kaf24@6583 54 #define guest_l2e_from_paddr l2e_from_paddr_32
kaf24@6583 55
kaf24@6583 56 #define guest_l1e_from_page l1e_from_page_32
kaf24@6583 57 #define guest_l2e_from_page l2e_from_page_32
kaf24@6583 58
kaf24@6583 59 #define guest_l1e_add_flags l1e_add_flags_32
kaf24@6583 60 #define guest_l2e_add_flags l2e_add_flags_32
kaf24@6583 61
kaf24@6583 62 #define guest_l1e_remove_flag l1e_remove_flags_32
kaf24@6583 63 #define guest_l2e_remove_flag l2e_remove_flags_32
kaf24@6583 64
kaf24@6583 65 #define guest_l1e_has_changed l1e_has_changed_32
kaf24@6583 66 #define guest_l2e_has_changed l2e_has_changed_32
kaf24@6583 67 #define root_entry_has_changed l2e_has_changed_32
kaf24@6583 68
kaf24@6583 69 #define guest_l1_table_offset l1_table_offset_32
kaf24@6583 70 #define guest_l2_table_offset l2_table_offset_32
kaf24@6583 71
kaf24@6583 72 #define guest_linear_l1_table linear_pg_table_32
kaf24@6583 73 #define guest_linear_l2_table linear_l2_table_32
kaf24@6583 74
kaf24@6583 75 #define guest_va_to_l1mfn va_to_l1mfn_32
kaf24@6583 76
kaf24@6583 77 #else
kaf24@6583 78
kaf24@6583 79 #define GUEST_L1_PAGETABLE_ENTRIES L1_PAGETABLE_ENTRIES
kaf24@6583 80 #define GUEST_L2_PAGETABLE_ENTRIES L2_PAGETABLE_ENTRIES
kaf24@6583 81 #define GUEST_ROOT_PAGETABLE_ENTRIES ROOT_PAGETABLE_ENTRIES
kaf24@6583 82 #define GUEST_L2_PAGETABLE_SHIFT L2_PAGETABLE_SHIFT
kaf24@6583 83
kaf24@6583 84 #define guest_l1_pgentry_t l1_pgentry_t
kaf24@6583 85 #define guest_l2_pgentry_t l2_pgentry_t
kaf24@6583 86 #define guest_root_pgentry_t l4_pgentry_t
kaf24@6583 87
kaf24@6583 88 #define guest_l1e_get_paddr l1e_get_paddr
kaf24@6583 89 #define guest_l2e_get_paddr l2e_get_paddr
kaf24@6583 90
kaf24@6583 91 #define guest_get_pte_flags get_pte_flags
kaf24@6583 92 #define guest_put_pte_flags put_pte_flags
kaf24@6583 93
kaf24@6583 94 #define guest_l1e_get_flags l1e_get_flags
kaf24@6583 95 #define guest_l2e_get_flags l2e_get_flags
kaf24@6583 96 #define guest_root_get_flags l4e_get_flags
kaf24@6583 97 #define guest_root_get_intpte l4e_get_intpte
kaf24@6583 98
kaf24@6583 99 #define guest_l1e_empty l1e_empty
kaf24@6583 100 #define guest_l2e_empty l2e_empty
kaf24@6583 101
kaf24@6583 102 #define guest_l1e_from_pfn l1e_from_pfn
kaf24@6583 103 #define guest_l2e_from_pfn l2e_from_pfn
kaf24@6583 104
kaf24@6583 105 #define guest_l1e_from_paddr l1e_from_paddr
kaf24@6583 106 #define guest_l2e_from_paddr l2e_from_paddr
kaf24@6583 107
kaf24@6583 108 #define guest_l1e_from_page l1e_from_page
kaf24@6583 109 #define guest_l2e_from_page l2e_from_page
kaf24@6583 110
kaf24@6583 111 #define guest_l1e_add_flags l1e_add_flags
kaf24@6583 112 #define guest_l2e_add_flags l2e_add_flags
kaf24@6583 113
kaf24@6583 114 #define guest_l1e_remove_flag l1e_remove_flags
kaf24@6583 115 #define guest_l2e_remove_flag l2e_remove_flags
kaf24@6583 116
kaf24@6583 117 #define guest_l1e_has_changed l1e_has_changed
kaf24@6583 118 #define guest_l2e_has_changed l2e_has_changed
kaf24@6583 119 #define root_entry_has_changed l4e_has_changed
kaf24@6583 120
kaf24@6583 121 #define guest_l1_table_offset l1_table_offset
kaf24@6583 122 #define guest_l2_table_offset l2_table_offset
kaf24@6583 123
kaf24@6583 124 #define guest_linear_l1_table linear_pg_table
kaf24@6583 125 #define guest_linear_l2_table linear_l2_table
kaf24@6583 126
kaf24@6583 127 #define guest_va_to_l1mfn va_to_l1mfn
kaf24@6583 128 #endif
kaf24@6583 129
kaf24@6730 130 #endif /* _XEN_SHADOW_OPS_H */