search for: make_pages_readonly

Displaying 5 results from an estimated 5 matches for "make_pages_readonly".

2007 Apr 18
2
[PATCH 12/12; UPDATED] xen-ldt
.../system.h> #include <asm/ldt.h> #include <asm/desc.h> +#include <hypervisor_hooks.h> #ifdef CONFIG_SMP /* avoids "defined but not used" warnig */ static void flush_ldt(void *null) @@ -58,16 +59,22 @@ #ifdef CONFIG_SMP cpumask_t mask; preempt_disable(); + make_pages_readonly(pc->ldt, (pc->size * LDT_ENTRY_SIZE) / + PAGE_SIZE); load_LDT(pc); mask = cpumask_of_cpu(smp_processor_id()); if (!cpus_equal(current->mm->cpu_vm_mask, mask)) smp_call_function(flush_ldt, NULL, 1, 1); preempt_enable(); #else + make_pages_readonly(pc->ldt, (p...
2007 Apr 18
2
[PATCH 12/12; UPDATED] xen-ldt
.../system.h> #include <asm/ldt.h> #include <asm/desc.h> +#include <hypervisor_hooks.h> #ifdef CONFIG_SMP /* avoids "defined but not used" warnig */ static void flush_ldt(void *null) @@ -58,16 +59,22 @@ #ifdef CONFIG_SMP cpumask_t mask; preempt_disable(); + make_pages_readonly(pc->ldt, (pc->size * LDT_ENTRY_SIZE) / + PAGE_SIZE); load_LDT(pc); mask = cpumask_of_cpu(smp_processor_id()); if (!cpus_equal(current->mm->cpu_vm_mask, mask)) smp_call_function(flush_ldt, NULL, 1, 1); preempt_enable(); #else + make_pages_readonly(pc->ldt, (p...
2007 Apr 18
0
[PATCH 12/12] xen-ldt
.../system.h> #include <asm/ldt.h> #include <asm/desc.h> +#include <hypervisor_hooks.h> #ifdef CONFIG_SMP /* avoids "defined but not used" warnig */ static void flush_ldt(void *null) @@ -58,16 +59,22 @@ #ifdef CONFIG_SMP cpumask_t mask; preempt_disable(); + make_pages_readonly(pc->ldt, (pc->size * LDT_ENTRY_SIZE) / + PAGE_SIZE); load_LDT(pc); mask = cpumask_of_cpu(smp_processor_id()); if (!cpus_equal(current->mm->cpu_vm_mask, mask)) smp_call_function(flush_ldt, NULL, 1, 1); preempt_enable(); #else + make_pages_readonly(pc->ldt, (p...
2007 Apr 18
0
[PATCH 12/12] xen-ldt
.../system.h> #include <asm/ldt.h> #include <asm/desc.h> +#include <hypervisor_hooks.h> #ifdef CONFIG_SMP /* avoids "defined but not used" warnig */ static void flush_ldt(void *null) @@ -58,16 +59,22 @@ #ifdef CONFIG_SMP cpumask_t mask; preempt_disable(); + make_pages_readonly(pc->ldt, (pc->size * LDT_ENTRY_SIZE) / + PAGE_SIZE); load_LDT(pc); mask = cpumask_of_cpu(smp_processor_id()); if (!cpus_equal(current->mm->cpu_vm_mask, mask)) smp_call_function(flush_ldt, NULL, 1, 1); preempt_enable(); #else + make_pages_readonly(pc->ldt, (p...
2008 May 15
0
[PATCH] linux/x86: utilize lookup_address() for virt_to_ptep()
...================================= --- 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-xen/asm/pgtable.h 2008-05-15 13:38:59.000000000 +0200 @@ -477,19 +477,16 @@ void make_page_writable(void *va, unsign void make_pages_readonly(void *va, unsigned int nr, unsigned int feature); void make_pages_writable(void *va, unsigned int nr, unsigned int feature); -#define virt_to_ptep(__va) \ -({ \ - pgd_t *__pgd = pgd_offset_k((unsigned long)(__va)); \ - pud_t *__pud = pud_offset(__pgd, (unsigned long)(__va)); \ - pm...