search for: pgd_offset_k

Displaying 20 results from an estimated 40 matches for "pgd_offset_k".

2007 Apr 18
0
[PATCH 4/5] Add address translation
Add a helper function to convert an arbitrary mapped virtual address to a physical frame number. Adapted from code by Chris Wright, added support for large pages. Because of the placement, this needs to be a macro; pgd_offset_k requires init_mm to be defined, and getting the include files right seemed more complicated than a macroized implementation. A more proper location would be in asm/page.h, but that gets confounded by the use of pgd_offset_k() again. Signed-off-by: Zachary Amsden <zach@vmware.com> Index: lin...
2007 Apr 18
0
[PATCH 4/5] Add address translation
Add a helper function to convert an arbitrary mapped virtual address to a physical frame number. Adapted from code by Chris Wright, added support for large pages. Because of the placement, this needs to be a macro; pgd_offset_k requires init_mm to be defined, and getting the include files right seemed more complicated than a macroized implementation. A more proper location would be in asm/page.h, but that gets confounded by the use of pgd_offset_k() again. Signed-off-by: Zachary Amsden <zach@vmware.com> Index: lin...
2008 May 15
0
[PATCH] linux/x86: utilize lookup_address() for virt_to_ptep()
...2008-05-15 13:44:37.000000000 +0200 +++ head-2008-05-08/arch/x86_64/mm/pageattr-xen.c 2008-05-15 14:44:59.000000000 +0200 @@ -276,7 +276,7 @@ } #endif /* CONFIG_XEN */ -static inline pte_t *lookup_address(unsigned long address) +pte_t *lookup_address(unsigned long address) { pgd_t *pgd = pgd_offset_k(address); pud_t *pud; Index: head-2008-05-08/include/asm-i386/mach-xen/asm/pgtable.h =================================================================== --- head-2008-05-08.orig/include/asm-i386/mach-xen/asm/pgtable.h 2008-05-15 13:44:37.000000000 +0200 +++ head-2008-05-08/include/asm-i386/mach-x...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 01/13] HV VM Fix map area for HV.
..._pte_unmap(pmd, addr); +} + +static inline void hvvm_pud_unmap(pgd_t *pgd, unsigned long addr) +{ + pud_t *pud; + + pud = pud_offset(pgd, addr); + if (pud_none_or_clear_bad(pud)) + return; + hvvm_pmd_unmap(pud, addr); +} + +static void hvvm_unmap_page(unsigned long addr) +{ + pgd_t *pgd; + + pgd = pgd_offset_k(addr); + hvvm_pud_unmap(pgd, addr); +} + +static int hvvm_pte_alloc(pmd_t *pmd, unsigned long addr, + unsigned long page, pgprot_t prot) +{ + pte_t *pte; + + pte = pte_alloc_kernel(pmd, addr); + if (!pte) + return -ENOMEM; + + WARN_ON(!pte_none(*pte)); + set_pte_at(&init_mm, addr, pte, +...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 01/13] HV VM Fix map area for HV.
..._pte_unmap(pmd, addr); +} + +static inline void hvvm_pud_unmap(pgd_t *pgd, unsigned long addr) +{ + pud_t *pud; + + pud = pud_offset(pgd, addr); + if (pud_none_or_clear_bad(pud)) + return; + hvvm_pmd_unmap(pud, addr); +} + +static void hvvm_unmap_page(unsigned long addr) +{ + pgd_t *pgd; + + pgd = pgd_offset_k(addr); + hvvm_pud_unmap(pgd, addr); +} + +static int hvvm_pte_alloc(pmd_t *pmd, unsigned long addr, + unsigned long page, pgprot_t prot) +{ + pte_t *pte; + + pte = pte_alloc_kernel(pmd, addr); + if (!pte) + return -ENOMEM; + + WARN_ON(!pte_none(*pte)); + set_pte_at(&init_mm, addr, pte, +...
2008 Jun 19
0
[PATCH] ia64/xen: implement the arch specific part of xencomm.
...oot. + Furthermore the kernel is relocatable and __pa() doesn't + work on addresses. */ + if (vaddr >= KERNEL_START + && vaddr < (KERNEL_START + KERNEL_TR_PAGE_SIZE)) + return vaddr - kernel_virtual_offset; + + /* In kernel area -- virtually mapped. */ + pgd = pgd_offset_k(vaddr); + if (pgd_none(*pgd) || pgd_bad(*pgd)) + return ~0UL; + + pud = pud_offset(pgd, vaddr); + if (pud_none(*pud) || pud_bad(*pud)) + return ~0UL; + + pmd = pmd_offset(pud, vaddr); + if (pmd_none(*pmd) || pmd_bad(*pmd)) + return ~0UL; + + ptep = pte_offset_kernel(pmd, vaddr); + if (...
2008 Jun 19
0
[PATCH] ia64/xen: implement the arch specific part of xencomm.
...oot. + Furthermore the kernel is relocatable and __pa() doesn't + work on addresses. */ + if (vaddr >= KERNEL_START + && vaddr < (KERNEL_START + KERNEL_TR_PAGE_SIZE)) + return vaddr - kernel_virtual_offset; + + /* In kernel area -- virtually mapped. */ + pgd = pgd_offset_k(vaddr); + if (pgd_none(*pgd) || pgd_bad(*pgd)) + return ~0UL; + + pud = pud_offset(pgd, vaddr); + if (pud_none(*pud) || pud_bad(*pud)) + return ~0UL; + + pmd = pmd_offset(pud, vaddr); + if (pmd_none(*pmd) || pmd_bad(*pmd)) + return ~0UL; + + ptep = pte_offset_kernel(pmd, vaddr); + if (...
2006 Mar 14
12
[RFC] VMI for Xen?
I''m sure everyone has seen the drop of VMI patches for Linux at this point, but just in case, the link is included below. I''ve read this version of the VMI spec and have made my way through most of the patches. While I wasn''t really that impressed with the first spec wrt Xen, the second version seems to be much more palatable. Specifically, the code inlining and
2011 Feb 09
8
reboot after "scrubbing free ram"
Hello, I have some diagnostic Info for you. Tried to get xen-4.0.1 working on another node of my cluster. Only difference: Newer revision of the Hardware. Exactly same Software Stack. Stack: Ubuntu Lucid 64bit, xen-4.0.1 from Source, selfbuilt linux-2.6.32.27 from xen/stable-2.6.32.x Nodes working: HP DL380G5 16GB (Intel X5460) Node not working: HP DL380G6 16GB (Intel X5550) Effect: Xen
2008 May 19
20
[PATCH 00/23] ia64/xen domU take 6
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. Changes from take 5 are rebased to Linux 2.6.26-rc3, bug fix ivt.S paravirtualization and multi entry point support. I believe these patches can be applied to the linux ia64 repository. This patchset does the followings. - Some preparation work. Mainly importing header files to
2008 May 19
20
[PATCH 00/23] ia64/xen domU take 6
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. Changes from take 5 are rebased to Linux 2.6.26-rc3, bug fix ivt.S paravirtualization and multi entry point support. I believe these patches can be applied to the linux ia64 repository. This patchset does the followings. - Some preparation work. Mainly importing header files to
2008 Apr 30
23
[PATCH 00/23] ia64/xen domU take 5
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor. - Add some helper functions which is necessary to
2008 Apr 30
23
[PATCH 00/23] ia64/xen domU take 5
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor. - Add some helper functions which is necessary to
2008 Apr 09
24
[PATCH 00/23] ia64/xen domU take 4
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. Please review and comments. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor. - Add some helper functions
2008 Apr 09
24
[PATCH 00/23] ia64/xen domU take 4
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. Please review and comments. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor. - Add some helper functions
2008 Jun 10
31
[PATCH 00/27] ia64/xen domU take 7
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was already merged to linux ia64 test branch. This patch is for linux ia64 test branch. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor.
2008 Jun 10
31
[PATCH 00/27] ia64/xen domU take 7
Hi. This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was already merged to linux ia64 test branch. This patch is for linux ia64 test branch. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen hypervisor.
2008 Jul 03
29
[PATCH 00/29] ia64/xen domU take 8
Hi. This patchset is ia64/xen domU patch take 8 which was updated following Tony's review. (Thank you very much, Tony.) This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. This patchset is for linux ia64 test branch and depends on some patches for xen common part I'll send separately. To compile, the changesets in x86/xen
2008 Jul 03
29
[PATCH 00/29] ia64/xen domU take 8
Hi. This patchset is ia64/xen domU patch take 8 which was updated following Tony's review. (Thank you very much, Tony.) This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. This patchset is for linux ia64 test branch and depends on some patches for xen common part I'll send separately. To compile, the changesets in x86/xen
2008 Jul 17
31
[PATCH 00/29] ia64/xen domU take 9
This patchset is ia64/xen domU patch take 9 which is rebased to 2.6.26 This patchset implements ia64/xen domU support based on ia64/pv_ops frame work which was sent as another patchest. This patchset does the followings. - Some preparation work. Mainly importing header files to define related structures. - Then, define functions related to hypercall which is the way to communicate with Xen