Displaying 4 results from an estimated 4 matches for "install_ldt_entry".
2007 Apr 18
0
[PATCH 12/12] xen-ldt
...make_pages_readonly(void *va, unsigned int nr)
+{
+}
+
+static inline void make_pages_writable(void *va, unsigned int nr)
+{
+}
+
+static inline void add_context_to_unpinned(struct mm_struct *mm)
+{
+}
+
+static inline void del_context_from_unpinned(struct mm_struct *mm)
+{
+}
+
+static inline int install_ldt_entry (__u32 *lp, __u32 entry_1, __u32 entry_2)
+{
+ *lp = entry_1;
+ *(lp+1) = entry_2;
+ return 0;
+}
+
+#endif /* __ASM_HYPERVISOR_HOOKS_H */
Index: linux-2.6.13/include/asm-i386/mach-xen/hypervisor_hooks.h
===================================================================
--- linux-2.6.13.orig/i...
2007 Apr 18
0
[PATCH 12/12] xen-ldt
...make_pages_readonly(void *va, unsigned int nr)
+{
+}
+
+static inline void make_pages_writable(void *va, unsigned int nr)
+{
+}
+
+static inline void add_context_to_unpinned(struct mm_struct *mm)
+{
+}
+
+static inline void del_context_from_unpinned(struct mm_struct *mm)
+{
+}
+
+static inline int install_ldt_entry (__u32 *lp, __u32 entry_1, __u32 entry_2)
+{
+ *lp = entry_1;
+ *(lp+1) = entry_2;
+ return 0;
+}
+
+#endif /* __ASM_HYPERVISOR_HOOKS_H */
Index: linux-2.6.13/include/asm-i386/mach-xen/hypervisor_hooks.h
===================================================================
--- linux-2.6.13.orig/i...
2007 Apr 18
1
Descriptor table patches integrated
I've integrated patches from Chris and Martin into the -mm tree. I'll
be sending out the patches shortly after testing with my (still in
progress!) Linux LDT test suite.
First interface quirk came up. It looks like Xen wants to return errors
from hypercalls:
+static inline int install_ldt_entry (__u32 *lp, __u32 entry_1, __u32 entry_2)
+{
+ unsigned long mach_lp = arbitrary_virt_to_machine(lp);
+
+ return HYPERVISOR_update_descriptor(mach_lp, entry_1, entry_2);
+}
While this is fine here, this could be problematic in terms of forcing
error checking in lots of situations where there used...
2007 Apr 18
1
Descriptor table patches integrated
I've integrated patches from Chris and Martin into the -mm tree. I'll
be sending out the patches shortly after testing with my (still in
progress!) Linux LDT test suite.
First interface quirk came up. It looks like Xen wants to return errors
from hypercalls:
+static inline int install_ldt_entry (__u32 *lp, __u32 entry_1, __u32 entry_2)
+{
+ unsigned long mach_lp = arbitrary_virt_to_machine(lp);
+
+ return HYPERVISOR_update_descriptor(mach_lp, entry_1, entry_2);
+}
While this is fine here, this could be problematic in terms of forcing
error checking in lots of situations where there used...