Lines Matching full:lg
21 #include "lg.h"
171 bool lguest_address_ok(const struct lguest *lg, in lguest_address_ok() argument
174 return (addr+len) / PAGE_SIZE < lg->pfn_limit && (addr+len >= addr); in lguest_address_ok()
184 if (!lguest_address_ok(cpu->lg, addr, bytes) in __lgread()
185 || copy_from_user(b, cpu->lg->mem_base + addr, bytes) != 0) { in __lgread()
196 if (!lguest_address_ok(cpu->lg, addr, bytes) in __lgwrite()
197 || copy_to_user(cpu->lg->mem_base + addr, b, bytes) != 0) in __lgwrite()
210 while (!cpu->lg->dead) { in run_guest()
259 if (cpu->lg->dead) in run_guest()
296 if (cpu->lg->dead == ERR_PTR(-ERESTART)) in run_guest()
308 * the heart. Let's begin at the initialization routine for the Host's lg