balloon.c (453130d9bfc1c6d68b366dfcb041689d69f81295) | balloon.c (cfa0b7b82fbdda56d7160569def5c6133eb045aa) |
---|---|
1/****************************************************************************** 2 * balloon.c 3 * 4 * Xen balloon driver - enables returning/claiming memory to/from Xen. 5 * 6 * Copyright (c) 2003, B Dragovic 7 * Copyright (c) 2003-2004, M Williamson, K Fraser 8 * Copyright (c) 2005 Dan M. Smith, IBM Corporation --- 368 unchanged lines hidden (view full) --- 377 */ 378static int 379xenballoon_attach(device_t dev) 380{ 381 int err; 382 383 mtx_init(&balloon_mutex, "balloon_mutex", NULL, MTX_DEF); 384 | 1/****************************************************************************** 2 * balloon.c 3 * 4 * Xen balloon driver - enables returning/claiming memory to/from Xen. 5 * 6 * Copyright (c) 2003, B Dragovic 7 * Copyright (c) 2003-2004, M Williamson, K Fraser 8 * Copyright (c) 2005 Dan M. Smith, IBM Corporation --- 368 unchanged lines hidden (view full) --- 377 */ 378static int 379xenballoon_attach(device_t dev) 380{ 381 int err; 382 383 mtx_init(&balloon_mutex, "balloon_mutex", NULL, MTX_DEF); 384 |
385 bs.current_pages = xen_pv_domain() ? 386 HYPERVISOR_start_info->nr_pages : realmem; | 385 bs.current_pages = realmem; |
387 bs.target_pages = bs.current_pages; 388 bs.balloon_low = 0; 389 bs.balloon_high = 0; 390 bs.driver_pages = 0UL; 391 bs.hard_limit = ~0UL; 392 393 kproc_create(balloon_process, NULL, NULL, 0, 0, "balloon"); 394 --- 25 unchanged lines hidden --- | 386 bs.target_pages = bs.current_pages; 387 bs.balloon_low = 0; 388 bs.balloon_high = 0; 389 bs.driver_pages = 0UL; 390 bs.hard_limit = ~0UL; 391 392 kproc_create(balloon_process, NULL, NULL, 0, 0, "balloon"); 393 --- 25 unchanged lines hidden --- |