Xen Security Modules: XSM
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · Xen staging patchbot-unstable
diff -r
0f196e11a143-r96f64f4c42f0xen/include/xsm/xsm.hxen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100 renamed from dev/null Thu Jan 01 00:00:00 1970 +0000 +0
-0
...
Quoted 1 line
+ int (
*update_va_mapping) (struct domain *d,l1_pgentry_tpte);
...
xen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100
Quoted 5 lines
+static inline int
xsm_update_va_mapping(struct domain *d, l1_pgentry_t pte)xen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100 renamed from dev/null Thu Jan 01 00:00:00 1970 +0000 +3
-0+{ + return xsm_call(update_va_mapping(d, pte)); +}
Shouldn't we be using a more opaque type here? l1_pgentry_t is
rather arch specific. The implementation of update_va_mapping() in flask is also very x86 centric. Thanks,
Alex
Signature · 1 line
Alex Williamson HP Open Source & Linux Org.
Quoted 7 lines · Alex Williamson
Quoted 3 lines · Xen staging patchbot-unstable
diff -r
0f196e11a143-r96f64f4c42f0xen/include/xsm/xsm.hxen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100 renamed from dev/null Thu Jan 01 00:00:00 1970 +0000 +0
-0...
Quoted 1 line
+ int (
*update_va_mapping) (struct domain *d,l1_pgentry_tpte);...
Quoted 10 lines
xen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100
Quoted 5 lines
+static inline int
xsm_update_va_mapping(struct domain *d, l1_pgentry_t pte)xen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100 renamed from dev/null Thu Jan 01 00:00:00 1970 +0000 +3
-0+{ + return xsm_call(update_va_mapping(d, pte)); +}Shouldn't we be using a more opaque type here?
l1_pgentry_tis
rather arch specific. The implementation ofupdate_va_mapping()in flask is also very x86 centric. Thanks,
For the moment, I would say no since this hook is in the do_update_va_mapping hypercall which currently exists only in the x86 bits of xen. The flask module and XSM code are also bounded by ifdefs, so for non-x86 archs it is not included. Should other archs ever develop equivalent funcs, I'd be happy to update this hook to a more generic interface to accommodate these archs and reduce the number of arch specific hooks.
George
Quoted 19 lines · II
Quoted 7 lines · Alex Williamson
Quoted 3 lines · Xen staging patchbot-unstable
diff -r
0f196e11a143-r96f64f4c42f0xen/include/xsm/xsm.hxen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100 renamed from dev/null Thu Jan 01 00:00:00 1970 +0000 +0
-0...
Quoted 1 line
+ int (
*update_va_mapping) (struct domain *d,l1_pgentry_tpte);...
Quoted 10 lines
xen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100
Quoted 5 lines
+static inline int
xsm_update_va_mapping(struct domain *d, l1_pgentry_t pte)xen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100 renamed from dev/null Thu Jan 01 00:00:00 1970 +0000 +3
-0+{ + return xsm_call(update_va_mapping(d, pte)); +}Shouldn't we be using a more opaque type here?
l1_pgentry_tis
rather arch specific. The implementation ofupdate_va_mapping()in flask is also very x86 centric. Thanks,
Quoted 7 lines
For the moment, I would say no since this hook is in the
do_update_va_mappinghypercall which currently exists only in the x86 bits of xen. The flask module and XSM code are also bounded by ifdefs, so for non-x86 archs it is not included. Should other archs ever develop equivalent funcs, I'd be happy to update this hook to a more generic interface to accommodate these archs and reduce the number of arch specific hooks.
Hi George,
Then perhaps xsm_update_va_mapping() and it's prototype need to be
put in #ifdef x86 code (it's not currently). Thanks,
Alex
Signature · 1 line
Alex Williamson HP Open Source & Linux Org.
Quoted 28 lines · Alex Williamson
Quoted 19 lines · II
Quoted 7 lines · Alex Williamson
Quoted 3 lines · Xen staging patchbot-unstable
diff -r
0f196e11a143-r96f64f4c42f0xen/include/xsm/xsm.hxen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100 renamed from dev/null Thu Jan 01 00:00:00 1970 +0000 +0
-0...
Quoted 1 line
+ int (
*update_va_mapping) (struct domain *d,l1_pgentry_tpte);...
Quoted 10 lines
xen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100
Quoted 5 lines
+static inline int
xsm_update_va_mapping(struct domain *d, l1_pgentry_t pte)xen/include/xsm/xsm.h Fri Aug 31 11:21:35 2007 +0100 renamed from dev/null Thu Jan 01 00:00:00 1970 +0000 +3
-0+{ + return xsm_call(update_va_mapping(d, pte)); +}Shouldn't we be using a more opaque type here?
l1_pgentry_tis
rather arch specific. The implementation ofupdate_va_mapping()in flask is also very x86 centric. Thanks,Quoted 7 lines
For the moment, I would say no since this hook is in the
do_update_va_mappinghypercall which currently exists only in the x86 bits of xen. The flask module and XSM code are also bounded by ifdefs, so for non-x86 archs it is not included. Should other archs ever develop equivalent funcs, I'd be happy to update this hook to a more generic interface to accommodate these archs and reduce the number of arch specific hooks.
Quoted 5 lines
Hi George,
Then perhaps
xsm_update_va_mapping()and it's prototype need to be
put in #ifdef x86 code (it's not currently). Thanks,
You are correct, I'll post a patch.