aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/lguest/core.c')
-rw-r--r--drivers/lguest/core.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c
index eb95860cf098..ca581ef591e8 100644
--- a/drivers/lguest/core.c
+++ b/drivers/lguest/core.c
@@ -47,10 +47,6 @@ static struct {
47DEFINE_MUTEX(lguest_lock); 47DEFINE_MUTEX(lguest_lock);
48static DEFINE_PER_CPU(struct lguest *, last_guest); 48static DEFINE_PER_CPU(struct lguest *, last_guest);
49 49
50/* FIXME: Make dynamic. */
51#define MAX_LGUEST_GUESTS 16
52struct lguest lguests[MAX_LGUEST_GUESTS];
53
54/* Offset from where switcher.S was compiled to where we've copied it */ 50/* Offset from where switcher.S was compiled to where we've copied it */
55static unsigned long switcher_offset(void) 51static unsigned long switcher_offset(void)
56{ 52{
@@ -660,16 +656,6 @@ int run_guest(struct lguest *lg, unsigned long __user *user)
660 * deliver_trap() and demand_page(). After all those, we'll be ready to 656 * deliver_trap() and demand_page(). After all those, we'll be ready to
661 * examine the Switcher, and our philosophical understanding of the Host/Guest 657 * examine the Switcher, and our philosophical understanding of the Host/Guest
662 * duality will be complete. :*/ 658 * duality will be complete. :*/
663
664int find_free_guest(void)
665{
666 unsigned int i;
667 for (i = 0; i < MAX_LGUEST_GUESTS; i++)
668 if (!lguests[i].tsk)
669 return i;
670 return -1;
671}
672
673static void adjust_pge(void *on) 659static void adjust_pge(void *on)
674{ 660{
675 if (on) 661 if (on)