diff options
Diffstat (limited to 'drivers/lguest/lg.h')
-rw-r--r-- | drivers/lguest/lg.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h index 7408cebe995e..e4845d7f0688 100644 --- a/drivers/lguest/lg.h +++ b/drivers/lguest/lg.h | |||
@@ -63,7 +63,7 @@ struct lguest | |||
63 | /* This provides the offset to the base of guest-physical | 63 | /* This provides the offset to the base of guest-physical |
64 | * memory in the Launcher. */ | 64 | * memory in the Launcher. */ |
65 | void __user *mem_base; | 65 | void __user *mem_base; |
66 | u32 page_offset; | 66 | unsigned long kernel_address; |
67 | u32 cr2; | 67 | u32 cr2; |
68 | int halted; | 68 | int halted; |
69 | int ts; | 69 | int ts; |
@@ -165,6 +165,8 @@ void guest_set_pte(struct lguest *lg, unsigned long gpgdir, | |||
165 | void map_switcher_in_guest(struct lguest *lg, struct lguest_pages *pages); | 165 | void map_switcher_in_guest(struct lguest *lg, struct lguest_pages *pages); |
166 | int demand_page(struct lguest *info, unsigned long cr2, int errcode); | 166 | int demand_page(struct lguest *info, unsigned long cr2, int errcode); |
167 | void pin_page(struct lguest *lg, unsigned long vaddr); | 167 | void pin_page(struct lguest *lg, unsigned long vaddr); |
168 | unsigned long guest_pa(struct lguest *lg, unsigned long vaddr); | ||
169 | void page_table_guest_data_init(struct lguest *lg); | ||
168 | 170 | ||
169 | /* <arch>/core.c: */ | 171 | /* <arch>/core.c: */ |
170 | void lguest_arch_host_init(void); | 172 | void lguest_arch_host_init(void); |
@@ -229,9 +231,5 @@ do { \ | |||
229 | } while(0) | 231 | } while(0) |
230 | /* (End of aside) :*/ | 232 | /* (End of aside) :*/ |
231 | 233 | ||
232 | static inline unsigned long guest_pa(struct lguest *lg, unsigned long vaddr) | ||
233 | { | ||
234 | return vaddr - lg->page_offset; | ||
235 | } | ||
236 | #endif /* __ASSEMBLY__ */ | 234 | #endif /* __ASSEMBLY__ */ |
237 | #endif /* _LGUEST_H */ | 235 | #endif /* _LGUEST_H */ |