diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-06 18:04:42 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-09-06 18:04:42 +0100 |
commit | 3b2aadebed757d37c4f004a3bc23aa435d922fa5 (patch) | |
tree | fbb5411d5766d23c6df5136ea33baa0686cb6d2d /xen/xsm/dummy.c | |
parent | 78669ef30b734cd2c37d3093c78590879be30797 (diff) | |
download | xen-3b2aadebed757d37c4f004a3bc23aa435d922fa5.tar.gz xen-3b2aadebed757d37c4f004a3bc23aa435d922fa5.tar.bz2 xen-3b2aadebed757d37c4f004a3bc23aa435d922fa5.zip |
[XSM] correctly located update_va_mapping hook within x86 ifdefs
The following patch addresses the issue where the XSM update_va_mapping
hook was not correctly located inside the x86 ifdefs. Included are
updates for the dummy and flask modules which are also effected by
this issue.
- update_va_mapping ifdef fix for xsm
- update_va_mapping ifdef fix for dummy module
- update_va_mapping ifdef fix for flask module
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
Diffstat (limited to 'xen/xsm/dummy.c')
-rw-r--r-- | xen/xsm/dummy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xen/xsm/dummy.c b/xen/xsm/dummy.c index c572f67799..8379b69c50 100644 --- a/xen/xsm/dummy.c +++ b/xen/xsm/dummy.c @@ -187,11 +187,6 @@ static int dummy_memory_stat_reservation (struct domain *d1, struct domain *d2) return 0; } -static int dummy_update_va_mapping (struct domain *d, l1_pgentry_t pte) -{ - return 0; -} - static int dummy_console_io (struct domain *d, int cmd) { return 0; @@ -381,6 +376,11 @@ static int dummy_mmu_machphys_update (struct domain *d, unsigned long mfn) return 0; } +static int dummy_update_va_mapping (struct domain *d, l1_pgentry_t pte) +{ + return 0; +} + static int dummy_add_to_physmap (struct domain *d1, struct domain *d2) { return 0; @@ -448,7 +448,6 @@ void xsm_fixup_ops (struct xsm_operations *ops) set_to_dummy_if_null(ops, memory_adjust_reservation); set_to_dummy_if_null(ops, memory_stat_reservation); set_to_dummy_if_null(ops, memory_pin_page); - set_to_dummy_if_null(ops, update_va_mapping); set_to_dummy_if_null(ops, console_io); @@ -483,6 +482,7 @@ void xsm_fixup_ops (struct xsm_operations *ops) set_to_dummy_if_null(ops, domain_memory_map); set_to_dummy_if_null(ops, mmu_normal_update); set_to_dummy_if_null(ops, mmu_machphys_update); + set_to_dummy_if_null(ops, update_va_mapping); set_to_dummy_if_null(ops, add_to_physmap); #endif } |