diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-01-07 08:05:22 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-01-30 06:50:04 -0500 |
commit | badb1e04028e3e029ff9447d4aeb162a84ad68c2 (patch) | |
tree | 2de5cc5f3649537fff030e8d2a864ee69d003aee /drivers | |
parent | ec04b13f67be3c90b38c625f4b8bdfea54c1ff60 (diff) |
lguest: introduce vcpu struct
this patch introduces a vcpu struct for lguest. In upcoming patches,
more and more fields will be moved from the lguest struct to the vcpu
Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/lguest/lg.h | 10 |
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 | ||
41 | struct lguest; | ||
42 | |||
43 | struct 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. */ |
42 | struct lguest | 49 | struct 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. */ |