aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa <gcosta@redhat.com>2008-01-07 11:05:22 -0200
committerRusty Russell <rusty@rustcorp.com.au>2008-01-30 22:50:04 +1100
commitbadb1e04028e3e029ff9447d4aeb162a84ad68c2 (patch)
tree2de5cc5f3649537fff030e8d2a864ee69d003aee /drivers
parentec04b13f67be3c90b38c625f4b8bdfea54c1ff60 (diff)
downloadkernel_samsung_smdk4412-badb1e04028e3e029ff9447d4aeb162a84ad68c2.zip
kernel_samsung_smdk4412-badb1e04028e3e029ff9447d4aeb162a84ad68c2.tar.gz
kernel_samsung_smdk4412-badb1e04028e3e029ff9447d4aeb162a84ad68c2.tar.bz2
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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/lguest/lg.h b/drivers/lguest/lg.h
index 8692489..5f73ddf 100644
--- a/drivers/lguest/lg.h
+++ b/drivers/lguest/lg.h
@@ -38,6 +38,13 @@ struct lguest_pages
#define CHANGED_GDT_TLS 4 /* Actually a subset of CHANGED_GDT */
#define CHANGED_ALL 3
+struct lguest;
+
+struct lg_cpu {
+ unsigned int id;
+ struct lguest *lg;
+};
+
/* The private info the thread maintains about the guest. */
struct lguest
{
@@ -47,6 +54,9 @@ struct lguest
struct lguest_data __user *lguest_data;
struct task_struct *tsk;
struct mm_struct *mm; /* == tsk->mm, but that becomes NULL on exit */
+ struct lg_cpu cpus[NR_CPUS];
+ unsigned int nr_cpus;
+
u32 pfn_limit;
/* This provides the offset to the base of guest-physical
* memory in the Launcher. */