Go to the documentation of this file.
5 #include <linux/types.h>
10 #include <linux/wait.h>
11 #include <linux/hrtimer.h>
13 #include <linux/slab.h>
37 #define CHANGED_GDT_TLS 4
124 unsigned long addr,
unsigned long len);
126 void __lgwrite(
struct lg_cpu *,
unsigned long,
const void *,
unsigned);
135 #define lgread(cpu, addr, type) \
136 ({ type _v; __lgread((cpu), &_v, (addr), sizeof(_v)); _v; })
139 #define lgwrite(cpu, addr, type, val) \
141 typecheck(type, val); \
142 __lgwrite((cpu), (addr), &(val), sizeof(val)); \
153 #define pgd_flags(x) (pgd_val(x) & ~PAGE_MASK)
154 #define pgd_pfn(x) (pgd_val(x) >> PAGE_SHIFT)
155 #define pmd_flags(x) (pmd_val(x) & ~PAGE_MASK)
156 #define pmd_pfn(x) (pmd_val(x) >> PAGE_SHIFT)
168 const unsigned long *def);
170 const unsigned long *def);
192 #ifdef CONFIG_X86_PAE
193 void guest_set_pmd(
struct lguest *lg,
unsigned long gpgdir,
u32 i);
249 #define kill_guest(cpu, fmt...) \
251 if (!(cpu)->lg->dead) { \
252 (cpu)->lg->dead = kasprintf(GFP_ATOMIC, fmt); \
253 if (!(cpu)->lg->dead) \
254 (cpu)->lg->dead = ERR_PTR(-ENOMEM); \