lguest: cache last cpu we ran on.

This optimizes the frobbing of our Switcher map.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2013-04-22 14:10:41 +09:30
parent 86935fc4ee
commit 6d0cda93c0
2 changed files with 55 additions and 26 deletions

View File

@@ -17,6 +17,7 @@
struct pgdir {
unsigned long gpgdir;
bool switcher_mapped;
int last_host_cpu;
pgd_t *pgdir;
};