aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/lguest/hypercalls.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2007-10-21 21:03:27 -0400
committerRusty Russell <rusty@rustcorp.com.au>2007-10-23 01:49:51 -0400
commit48245cc0708d49d1d0566b9fa617ad6c5f4c6934 (patch)
treeb396fd2d1ab185aab20894570e7e84bd4f656355 /drivers/lguest/hypercalls.c
parent3c6b5bfa3cf3b4057788e08482a468cc3bc00780 (diff)
Remove fixed limit on number of guests, and lguests array.
Back when we had all the Guest state in the switcher, we had a fixed array of them. This is no longer necessary. If we switch the network code to using random_ether_addr (46 bits is enough to avoid clashes), we can get rid of the concept of "guest id" altogether. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/hypercalls.c')
-rw-r--r--drivers/lguest/hypercalls.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/lguest/hypercalls.c b/drivers/lguest/hypercalls.c
index 02e67b49ea4f..8bde20934f91 100644
--- a/drivers/lguest/hypercalls.c
+++ b/drivers/lguest/hypercalls.c
@@ -225,9 +225,7 @@ static void initialize(struct lguest *lg)
225 /* We tell the Guest that it can't use the top 4MB of virtual 225 /* We tell the Guest that it can't use the top 4MB of virtual
226 * addresses used by the Switcher. */ 226 * addresses used by the Switcher. */
227 || put_user(4U*1024*1024, &lg->lguest_data->reserve_mem) 227 || put_user(4U*1024*1024, &lg->lguest_data->reserve_mem)
228 || put_user(tsc_speed, &lg->lguest_data->tsc_khz) 228 || put_user(tsc_speed, &lg->lguest_data->tsc_khz))
229 /* We also give the Guest a unique id, as used in lguest_net.c. */
230 || put_user(lg->guestid, &lg->lguest_data->guestid))
231 kill_guest(lg, "bad guest page %p", lg->lguest_data); 229 kill_guest(lg, "bad guest page %p", lg->lguest_data);
232 230
233 /* We write the current time into the Guest's data page once now. */ 231 /* We write the current time into the Guest's data page once now. */