Displaying 2 results from an estimated 2 matches for "vtomach".
Did you mean:
stomach
2005 Apr 30
4
[PATCH] disable writable pagetables on FreeBSD
...ndif
+#if 0
#define WRITABLE_PAGETABLES
+#endif
#define ALWAYS_SYNC 0
#ifdef PT_DEBUG
@@ -118,18 +120,18 @@
#define PT_SET_VA(_ptp,_npte,sync) do { \
PMAP_REF((_ptp), xpmap_ptom(_npte)); \
- xen_queue_pt_update((pt_entry_t *)vtomach(_ptp), \
+ xen_queue_pt_update(vtomach(_ptp), \
xpmap_ptom(_npte)); \
if (sync || ALWAYS_SYNC) xen_flush_queue(); \
} while (/*CONSTCOND*/0)
#define PT_SET_VA_MA(_ptp,_npte,sync) do {...
2006 Mar 09
1
FreeBSD netfront.c / problem
...l on line 112 below fails
because Xen is handed the page number -1.
1 static void
2 network_alloc_rx_buffers(struct netfront_info *sc)
3 {
[...]
48 for (i = 0, m_new = sc->xn_rx_batch; m_new;
49 i++, sc->xn_rx_batchlen--, m_new = next) {
50
[...]
70 rx_pfn_array[i] = vtomach(mtod(m_new,vm_offset_t)) >> PAGE_SHIFT;
The above call fails gives -1 (i.e., an invalid virtual -> machine
translation) time since some mbufs are placed on the same page.
71
72 /* Remove this page from pseudo phys map before passing back to Xen. */
73 xen_phys_machine[((unsigne...