diff options
author | Matias Zabaljauregui <zabaljauregui@gmail.com> | 2009-05-30 14:48:08 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2009-06-12 08:57:07 -0400 |
commit | ebe0ba84f55950a89cb7af94c7ffc35ee3992f9e (patch) | |
tree | df1c3373274846b4998ea75c56f347a264b2c8ad /drivers/lguest | |
parent | 90603d15fa95605d1d08235b73e220d766f04bb0 (diff) |
lguest: replace hypercall name LHCALL_SET_PMD with LHCALL_SET_PGD
replace LHCALL_SET_PMD with LHCALL_SET_PGD hypercall name
(That's really what it is, and the confusion gets worse with PAE support)
Signed-off-by: Matias Zabaljauregui <zabaljauregui@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reported-by: Jeremy Fitzhardinge <jeremy@goop.org>
Diffstat (limited to 'drivers/lguest')
-rw-r--r-- | drivers/lguest/hypercalls.c | 4 | ||||
-rw-r--r-- | drivers/lguest/lg.h | 2 | ||||
-rw-r--r-- | drivers/lguest/page_tables.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/lguest/hypercalls.c b/drivers/lguest/hypercalls.c index f252b71ae79e..51149ca14617 100644 --- a/drivers/lguest/hypercalls.c +++ b/drivers/lguest/hypercalls.c | |||
@@ -79,8 +79,8 @@ static void do_hcall(struct lg_cpu *cpu, struct hcall_args *args) | |||
79 | case LHCALL_SET_PTE: | 79 | case LHCALL_SET_PTE: |
80 | guest_set_pte(cpu, args->arg1, args->arg2, __pte(args->arg3)); | 80 | guest_set_pte(cpu, args->arg1, args->arg2, __pte(args->arg3)); |
81 | break; | 81 | break; |
82 | case LHCALL_SET_PMD: | 82 | case LHCALL_SET_PGD: |
83 | guest_set_pmd(cpu->lg, args->arg1, args->arg2); | 83 | guest_set_pgd(cpu->lg, args->arg1, args->arg2); |
84 | break; | 84 | break; |
85 | case LHCALL_SET_CLOCKEVENT: | 85 | case LHCALL_SET_CLOCKEVENT: |
86 | guest_set_clockevent(cpu, args->arg1); | 86 | guest_set_clockevent(cpu, args->arg1); |
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h index 74af503ad63c..cacc2da2058d 100644 --- a/drivers/lguest/lg.h +++ b/drivers/lguest/lg.h | |||
@@ -169,7 +169,7 @@ void copy_gdt_tls(const struct lg_cpu *cpu, struct desc_struct *gdt); | |||
169 | int init_guest_pagetable(struct lguest *lg); | 169 | int init_guest_pagetable(struct lguest *lg); |
170 | void free_guest_pagetable(struct lguest *lg); | 170 | void free_guest_pagetable(struct lguest *lg); |
171 | void guest_new_pagetable(struct lg_cpu *cpu, unsigned long pgtable); | 171 | void guest_new_pagetable(struct lg_cpu *cpu, unsigned long pgtable); |
172 | void guest_set_pmd(struct lguest *lg, unsigned long gpgdir, u32 i); | 172 | void guest_set_pgd(struct lguest *lg, unsigned long gpgdir, u32 i); |
173 | void guest_pagetable_clear_all(struct lg_cpu *cpu); | 173 | void guest_pagetable_clear_all(struct lg_cpu *cpu); |
174 | void guest_pagetable_flush_user(struct lg_cpu *cpu); | 174 | void guest_pagetable_flush_user(struct lg_cpu *cpu); |
175 | void guest_set_pte(struct lg_cpu *cpu, unsigned long gpgdir, | 175 | void guest_set_pte(struct lg_cpu *cpu, unsigned long gpgdir, |
diff --git a/drivers/lguest/page_tables.c b/drivers/lguest/page_tables.c index ffba723cd98d..6a54d76b6236 100644 --- a/drivers/lguest/page_tables.c +++ b/drivers/lguest/page_tables.c | |||
@@ -568,7 +568,7 @@ void guest_set_pte(struct lg_cpu *cpu, | |||
568 | * | 568 | * |
569 | * So with that in mind here's our code to to update a (top-level) PGD entry: | 569 | * So with that in mind here's our code to to update a (top-level) PGD entry: |
570 | */ | 570 | */ |
571 | void guest_set_pmd(struct lguest *lg, unsigned long gpgdir, u32 idx) | 571 | void guest_set_pgd(struct lguest *lg, unsigned long gpgdir, u32 idx) |
572 | { | 572 | { |
573 | int pgdir; | 573 | int pgdir; |
574 | 574 | ||