aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/lguest')
-rw-r--r--drivers/lguest/lg.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h
index 86924891b5eb..5f73ddff0e3d 100644
--- a/drivers/lguest/lg.h
+++ b/drivers/lguest/lg.h
@@ -38,6 +38,13 @@ struct lguest_pages
38#define CHANGED_GDT_TLS 4 /* Actually a subset of CHANGED_GDT */ 38#define CHANGED_GDT_TLS 4 /* Actually a subset of CHANGED_GDT */
39#define CHANGED_ALL 3 39#define CHANGED_ALL 3
40 40
41struct lguest;
42
43struct lg_cpu {
44 unsigned int id;
45 struct lguest *lg;
46};
47
41/* The private info the thread maintains about the guest. */ 48/* The private info the thread maintains about the guest. */
42struct lguest 49struct lguest
43{ 50{
@@ -47,6 +54,9 @@ struct lguest
47 struct lguest_data __user *lguest_data; 54 struct lguest_data __user *lguest_data;
48 struct task_struct *tsk; 55 struct task_struct *tsk;
49 struct mm_struct *mm; /* == tsk->mm, but that becomes NULL on exit */ 56 struct mm_struct *mm; /* == tsk->mm, but that becomes NULL on exit */
57 struct lg_cpu cpus[NR_CPUS];
58 unsigned int nr_cpus;
59
50 u32 pfn_limit; 60 u32 pfn_limit;
51 /* This provides the offset to the base of guest-physical 61 /* This provides the offset to the base of guest-physical
52 * memory in the Launcher. */ 62 * memory in the Launcher. */