lguest: per-vcpu lguest pgdir management

this patch makes the pgdir management per-vcpu. The pgdirs pool
is still guest-wide (although it'll probably need to grow when we
are really executing more vcpus), but the pgdidx index is gone,
since it makes no sense anymore. Instead, we use a per-vcpu
index.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Glauber de Oliveira Costa
2008-01-07 11:05:37 -02:00
committed by Rusty Russell
parent 5e232f4f42
commit 1713608f28
5 changed files with 44 additions and 42 deletions

View File

@ -62,7 +62,7 @@ static void do_hcall(struct lg_cpu *cpu, struct hcall_args *args)
if (args->arg1)
guest_pagetable_clear_all(cpu);
else
guest_pagetable_flush_user(lg);
guest_pagetable_flush_user(cpu);
break;
/* All these calls simply pass the arguments through to the right