search for: l2_table_offset

Displaying 8 results from an estimated 8 matches for "l2_table_offset".

2005 Mar 14
4
[patch/unstable] page table cleanups
...gned long va, unsigned long *sl2e) + struct exec_domain *ed, unsigned long va, l2_pgentry_t *sl2e) { if ( !likely(shadow_mode_enabled(ed->domain)) ) BUG(); if ( shadow_mode_translate(ed->domain) ) - *sl2e = l2_pgentry_val( - ed->arch.shadow_vtable[l2_table_offset(va)]); + *sl2e = ed->arch.shadow_vtable[l2_table_offset(va)]; else - *sl2e = l2_pgentry_val( - shadow_linear_l2_table[l2_table_offset(va)]); + *sl2e = shadow_linear_l2_table[l2_table_offset(va)]; } static inline void __shadow_set_l2e( - struct...
2005 Sep 05
0
[PATCH][4/6] Add to virtual device operations
...l1_pgentry_t *mpl1e; /* monitor page table l1 */ + struct pfn_info *l1_mfn_info; + unsigned long l1_mfn; + struct vcpu* v = current; + struct domain *d = v->domain; + + mfn = __gpfn_to_mfn(d, gva >> PAGE_SHIFT); + mpl2e = current->arch.monitor_vtable; + if ( mpl2e[l2_table_offset(hva)].l2 ){ + printk("map of hva 0x%lx already exists\n",hva); + return -1; + } + + /* alloc l1 page table */ + d->max_pages++; + l1_mfn_info = alloc_domheap_page(d); + if (!l1_mfn_info){ + printk("alloc_domheap_page failed\n"); + re...
2006 Aug 31
5
x86-64''s paging_init()
While adding code to create the compatibility p2m table mappings it seemed to me that the creation of the native ones is restricted to memory below the 512G boundary - otherwise, additional L2 tables would need to be allocated (currently other memory following the one L2 page getting allocated would be blindly overwritten). While I realize that machines this big aren''t likely to be
2007 Mar 08
3
Mini-OS: new_pt_frame fails
...c:456:d1 Could not get page ref for pfn 0 (XEN) mm.c:2225:d1 Could not get page for normal update New PT could not be mapped R/W. Now I am puzzled what these hypervisor errors mean, and what I could have done wrong? The code in question is the following: mmu_updates[0].ptr = ((pgentry_t)tab[l2_table_offset(pt_page)] & PAGE_MASK) + sizeof(pgentry_t) * l1_table_offset(pt_page); mmu_updates[0].val = ((pgentry_t)pfn_to_mfn(*pt_pfn) << PAGE_SHIFT) | _PAGE_RW | _PAGE_PRESENT; if(HYPERVISOR_mmu_update(mmu_updates, 1, NULL, DOMID_SELF) < 0) { p...
2008 Jan 18
0
[PATCH] minios: support COW for a zero page
...if (!(page & _PAGE_PRESENT)) + return 0; + tab = pte_to_virt(page); +#endif +#if defined(__x86_64__) || defined(CONFIG_X86_PAE) + page = tab[l3_table_offset(addr)]; + if (!(page & _PAGE_PRESENT)) + return 0; + tab = pte_to_virt(page); +#endif + page = tab[l2_table_offset(addr)]; + if (!(page & _PAGE_PRESENT)) + return 0; + tab = pte_to_virt(page); + + page = tab[l1_table_offset(addr)]; + if (!(page & _PAGE_PRESENT)) + return 0; + /* Only support CoW for the zero page. */ + if (PHYS_PFN(page) != mfn_zero) + return 0; + + ne...
2012 Nov 26
13
[PATCH 0 of 4] Minios improvements for app development
This patch series contains a set of patches making minios rather easier to use, from an application development point of view. Overview of patches: 1 Command line argument parsing support, from Xen. 2 Weak console handler function. 3 Build system tweaks for application directories. 4 Trailing whitespace cleanup. (because it is very messy) Patch 4 is likely to be more controversial than
2013 Dec 06
36
[V6 PATCH 0/7]: PVH dom0....
Hi, V6: The only change from V5 is in patch #6: - changed comment to reflect autoxlate - removed a redundant ASSERT - reworked logic a bit so that get_page_from_gfn() is called with NULL for p2m type as before. arm has ASSERT wanting it to be NULL. Tim: patch 4 needs your approval. Daniel: patch 5 needs your approval. These patches implement PVH dom0. Patches 1 and 2
2012 Jun 08
18
[PATCH 0 of 4 RFC] Populate-on-demand: Check pages being returned by the balloon driver
Populate-on-demand: Check pages being returned by the balloon driver This patch series is the second result of my work last summer on decreasing fragmentation of superpages in a guests'' p2m when using populate-on-demand. This patch series is against 4.1; I''m posting it to get feedback on the viability of getting a ported version of this patch into 4.2. As with the previous