ia64/xen-unstable

changeset 6601:4544d105f194

Missing shadow files.
author kaf24@firebug.cl.cam.ac.uk
date Fri Sep 02 10:04:11 2005 +0000 (2005-09-02)
parents 8b87d43412bf
children fc12b08bf4fe
files xen/arch/x86/shadow_guest32.c xen/include/asm-x86/shadow_ops.h
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xen/arch/x86/shadow_guest32.c	Fri Sep 02 10:04:11 2005 +0000
     1.3 @@ -0,0 +1,18 @@
     1.4 +#define GUEST_PGENTRY_32
     1.5 +#if defined (__x86_64__)
     1.6 +
     1.7 +#include "shadow.c"
     1.8 +struct shadow_ops MODE_D_HANDLER = {
     1.9 +    .guest_paging_levels              = 2,
    1.10 +    .invlpg                     = shadow_invlpg_64,
    1.11 +    .fault                      = shadow_fault_64,
    1.12 +    .update_pagetables          = shadow_update_pagetables,
    1.13 +    .sync_all                   = sync_all,
    1.14 +    .remove_all_write_access    = remove_all_write_access,
    1.15 +    .do_update_va_mapping       = do_update_va_mapping,
    1.16 +    .mark_mfn_out_of_sync       = mark_mfn_out_of_sync,
    1.17 +    .is_out_of_sync             = is_out_of_sync,
    1.18 +    .gva_to_gpa                 = gva_to_gpa_64,
    1.19 +};
    1.20 +
    1.21 +#endif
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/xen/include/asm-x86/shadow_ops.h	Fri Sep 02 10:04:11 2005 +0000
     2.3 @@ -0,0 +1,130 @@
     2.4 +/******************************************************************************
     2.5 + * include/asm-x86/shadow_ops.h
     2.6 + * 
     2.7 + * Copyright (c) 2005 Michael A Fetterman
     2.8 + * Based on an earlier implementation by Ian Pratt et al
     2.9 + * 
    2.10 + * This program is free software; you can redistribute it and/or modify
    2.11 + * it under the terms of the GNU General Public License as published by
    2.12 + * the Free Software Foundation; either version 2 of the License, or
    2.13 + * (at your option) any later version.
    2.14 + * 
    2.15 + * This program is distributed in the hope that it will be useful,
    2.16 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    2.17 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    2.18 + * GNU General Public License for more details.
    2.19 + * 
    2.20 + * You should have received a copy of the GNU General Public License
    2.21 + * along with this program; if not, write to the Free Software
    2.22 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    2.23 + */
    2.24 +
    2.25 +#ifndef _XEN_SHADOW_OPS_H
    2.26 +#define _XEN_SHADOW_OPS_H
    2.27 +
    2.28 +#if defined( GUEST_PGENTRY_32 )
    2.29 +
    2.30 +#define GUEST_L1_PAGETABLE_ENTRIES     L1_PAGETABLE_ENTRIES_32
    2.31 +#define GUEST_L2_PAGETABLE_ENTRIES     L2_PAGETABLE_ENTRIES_32
    2.32 +#define GUEST_ROOT_PAGETABLE_ENTRIES   ROOT_PAGETABLE_ENTRIES_32
    2.33 +#define GUEST_L2_PAGETABLE_SHIFT       L2_PAGETABLE_SHIFT_32
    2.34 +
    2.35 +#define guest_l1_pgentry_t      l1_pgentry_32_t
    2.36 +#define guest_l2_pgentry_t      l2_pgentry_32_t
    2.37 +#define guest_root_pgentry_t    l2_pgentry_32_t
    2.38 +
    2.39 +#define guest_l1e_get_paddr     l1e_get_paddr_32
    2.40 +#define guest_l2e_get_paddr     l2e_get_paddr_32
    2.41 +
    2.42 +#define guest_get_pte_flags     get_pte_flags_32
    2.43 +#define guest_put_pte_flags     put_pte_flags_32
    2.44 +
    2.45 +#define guest_l1e_get_flags     l1e_get_flags_32
    2.46 +#define guest_l2e_get_flags     l2e_get_flags_32
    2.47 +#define guest_root_get_flags          l2e_get_flags_32
    2.48 +#define guest_root_get_intpte         l2e_get_intpte
    2.49 +
    2.50 +#define guest_l1e_empty         l1e_empty_32
    2.51 +#define guest_l2e_empty         l2e_empty_32
    2.52 +
    2.53 +#define guest_l1e_from_pfn      l1e_from_pfn_32
    2.54 +#define guest_l2e_from_pfn      l2e_from_pfn_32
    2.55 +
    2.56 +#define guest_l1e_from_paddr    l1e_from_paddr_32
    2.57 +#define guest_l2e_from_paddr    l2e_from_paddr_32
    2.58 +
    2.59 +#define guest_l1e_from_page     l1e_from_page_32
    2.60 +#define guest_l2e_from_page     l2e_from_page_32
    2.61 +
    2.62 +#define guest_l1e_add_flags     l1e_add_flags_32
    2.63 +#define guest_l2e_add_flags     l2e_add_flags_32
    2.64 +
    2.65 +#define guest_l1e_remove_flag   l1e_remove_flags_32
    2.66 +#define guest_l2e_remove_flag   l2e_remove_flags_32
    2.67 +
    2.68 +#define guest_l1e_has_changed   l1e_has_changed_32
    2.69 +#define guest_l2e_has_changed   l2e_has_changed_32
    2.70 +#define root_entry_has_changed  l2e_has_changed_32
    2.71 +
    2.72 +#define guest_l1_table_offset   l1_table_offset_32
    2.73 +#define guest_l2_table_offset   l2_table_offset_32
    2.74 +
    2.75 +#define guest_linear_l1_table   linear_pg_table_32
    2.76 +#define guest_linear_l2_table   linear_l2_table_32
    2.77 +
    2.78 +#define guest_va_to_l1mfn       va_to_l1mfn_32
    2.79 +
    2.80 +#else
    2.81 +
    2.82 +#define GUEST_L1_PAGETABLE_ENTRIES      L1_PAGETABLE_ENTRIES
    2.83 +#define GUEST_L2_PAGETABLE_ENTRIES      L2_PAGETABLE_ENTRIES
    2.84 +#define GUEST_ROOT_PAGETABLE_ENTRIES    ROOT_PAGETABLE_ENTRIES
    2.85 +#define GUEST_L2_PAGETABLE_SHIFT        L2_PAGETABLE_SHIFT
    2.86 +
    2.87 +#define guest_l1_pgentry_t      l1_pgentry_t
    2.88 +#define guest_l2_pgentry_t      l2_pgentry_t
    2.89 +#define guest_root_pgentry_t    l4_pgentry_t
    2.90 +
    2.91 +#define guest_l1e_get_paddr     l1e_get_paddr
    2.92 +#define guest_l2e_get_paddr     l2e_get_paddr
    2.93 +
    2.94 +#define guest_get_pte_flags     get_pte_flags
    2.95 +#define guest_put_pte_flags     put_pte_flags
    2.96 +
    2.97 +#define guest_l1e_get_flags     l1e_get_flags
    2.98 +#define guest_l2e_get_flags     l2e_get_flags
    2.99 +#define guest_root_get_flags    l4e_get_flags
   2.100 +#define guest_root_get_intpte   l4e_get_intpte
   2.101 +
   2.102 +#define guest_l1e_empty         l1e_empty
   2.103 +#define guest_l2e_empty         l2e_empty
   2.104 +
   2.105 +#define guest_l1e_from_pfn      l1e_from_pfn
   2.106 +#define guest_l2e_from_pfn      l2e_from_pfn
   2.107 +
   2.108 +#define guest_l1e_from_paddr    l1e_from_paddr
   2.109 +#define guest_l2e_from_paddr    l2e_from_paddr
   2.110 +
   2.111 +#define guest_l1e_from_page     l1e_from_page
   2.112 +#define guest_l2e_from_page     l2e_from_page
   2.113 +
   2.114 +#define guest_l1e_add_flags     l1e_add_flags
   2.115 +#define guest_l2e_add_flags     l2e_add_flags
   2.116 +
   2.117 +#define guest_l1e_remove_flag   l1e_remove_flags
   2.118 +#define guest_l2e_remove_flag   l2e_remove_flags
   2.119 +
   2.120 +#define guest_l1e_has_changed   l1e_has_changed
   2.121 +#define guest_l2e_has_changed   l2e_has_changed
   2.122 +#define root_entry_has_changed  l4e_has_changed
   2.123 +
   2.124 +#define guest_l1_table_offset   l1_table_offset
   2.125 +#define guest_l2_table_offset   l2_table_offset
   2.126 +
   2.127 +#define guest_linear_l1_table   linear_pg_table
   2.128 +#define guest_linear_l2_table   linear_l2_table
   2.129 +
   2.130 +#define guest_va_to_l1mfn       va_to_l1mfn
   2.131 +#endif
   2.132 +
   2.133 +#endif	/* _XEN_SHADOW_OPS_H */