ia64/linux-2.6.18-xen.hg

annotate Documentation/pcmcia/driver-changes.txt @ 897:329ea0ccb344

balloon: try harder to balloon up under memory pressure.

Currently if the balloon driver is unable to increase the guest's
reservation it assumes the failure was due to reaching its full
allocation, gives up on the ballooning operation and records the limit
it reached as the "hard limit". The driver will not try again until
the target is set again (even to the same value).

However it is possible that ballooning has in fact failed due to
memory pressure in the host and therefore it is desirable to keep
attempting to reach the target in case memory becomes available. The
most likely scenario is that some guests are ballooning down while
others are ballooning up and therefore there is temporary memory
pressure while things stabilise. You would not expect a well behaved
toolstack to ask a domain to balloon to more than its allocation nor
would you expect it to deliberately over-commit memory by setting
balloon targets which exceed the total host memory.

This patch drops the concept of a hard limit and causes the balloon
driver to retry increasing the reservation on a timer in the same
manner as when decreasing the reservation.

Also if we partially succeed in increasing the reservation
(i.e. receive less pages than we asked for) then we may as well keep
those pages rather than returning them to Xen.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 05 14:01:20 2009 +0100 (2009-06-05)
parents 831230e53067
children
rev   line source
ian@0 1 This file details changes in 2.6 which affect PCMCIA card driver authors:
ian@0 2
ian@0 3 * New release helper (as of 2.6.17)
ian@0 4 Instead of calling pcmcia_release_{configuration,io,irq,win}, all that's
ian@0 5 necessary now is calling pcmcia_disable_device. As there is no valid
ian@0 6 reason left to call pcmcia_release_io and pcmcia_release_irq, the
ian@0 7 exports for them were removed.
ian@0 8
ian@0 9 * Unify detach and REMOVAL event code, as well as attach and INSERTION
ian@0 10 code (as of 2.6.16)
ian@0 11 void (*remove) (struct pcmcia_device *dev);
ian@0 12 int (*probe) (struct pcmcia_device *dev);
ian@0 13
ian@0 14 * Move suspend, resume and reset out of event handler (as of 2.6.16)
ian@0 15 int (*suspend) (struct pcmcia_device *dev);
ian@0 16 int (*resume) (struct pcmcia_device *dev);
ian@0 17 should be initialized in struct pcmcia_driver, and handle
ian@0 18 (SUSPEND == RESET_PHYSICAL) and (RESUME == CARD_RESET) events
ian@0 19
ian@0 20 * event handler initialization in struct pcmcia_driver (as of 2.6.13)
ian@0 21 The event handler is notified of all events, and must be initialized
ian@0 22 as the event() callback in the driver's struct pcmcia_driver.
ian@0 23
ian@0 24 * pcmcia/version.h should not be used (as of 2.6.13)
ian@0 25 This file will be removed eventually.
ian@0 26
ian@0 27 * in-kernel device<->driver matching (as of 2.6.13)
ian@0 28 PCMCIA devices and their correct drivers can now be matched in
ian@0 29 kernelspace. See 'devicetable.txt' for details.
ian@0 30
ian@0 31 * Device model integration (as of 2.6.11)
ian@0 32 A struct pcmcia_device is registered with the device model core,
ian@0 33 and can be used (e.g. for SET_NETDEV_DEV) by using
ian@0 34 handle_to_dev(client_handle_t * handle).
ian@0 35
ian@0 36 * Convert internal I/O port addresses to unsigned long (as of 2.6.11)
ian@0 37 ioaddr_t should be replaced by kio_addr_t in PCMCIA card drivers.
ian@0 38
ian@0 39 * irq_mask and irq_list parameters (as of 2.6.11)
ian@0 40 The irq_mask and irq_list parameters should no longer be used in
ian@0 41 PCMCIA card drivers. Instead, it is the job of the PCMCIA core to
ian@0 42 determine which IRQ should be used. Therefore, link->irq.IRQInfo2
ian@0 43 is ignored.
ian@0 44
ian@0 45 * client->PendingEvents is gone (as of 2.6.11)
ian@0 46 client->PendingEvents is no longer available.
ian@0 47
ian@0 48 * client->Attributes are gone (as of 2.6.11)
ian@0 49 client->Attributes is unused, therefore it is removed from all
ian@0 50 PCMCIA card drivers
ian@0 51
ian@0 52 * core functions no longer available (as of 2.6.11)
ian@0 53 The following functions have been removed from the kernel source
ian@0 54 because they are unused by all in-kernel drivers, and no external
ian@0 55 driver was reported to rely on them:
ian@0 56 pcmcia_get_first_region()
ian@0 57 pcmcia_get_next_region()
ian@0 58 pcmcia_modify_window()
ian@0 59 pcmcia_set_event_mask()
ian@0 60 pcmcia_get_first_window()
ian@0 61 pcmcia_get_next_window()
ian@0 62
ian@0 63 * device list iteration upon module removal (as of 2.6.10)
ian@0 64 It is no longer necessary to iterate on the driver's internal
ian@0 65 client list and call the ->detach() function upon module removal.
ian@0 66
ian@0 67 * Resource management. (as of 2.6.8)
ian@0 68 Although the PCMCIA subsystem will allocate resources for cards,
ian@0 69 it no longer marks these resources busy. This means that driver
ian@0 70 authors are now responsible for claiming your resources as per
ian@0 71 other drivers in Linux. You should use request_region() to mark
ian@0 72 your IO regions in-use, and request_mem_region() to mark your
ian@0 73 memory regions in-use. The name argument should be a pointer to
ian@0 74 your driver name. Eg, for pcnet_cs, name should point to the
ian@0 75 string "pcnet_cs".
ian@0 76
ian@0 77 * CardServices is gone
ian@0 78 CardServices() in 2.4 is just a big switch statement to call various
ian@0 79 services. In 2.6, all of those entry points are exported and called
ian@0 80 directly (except for pcmcia_report_error(), just use cs_error() instead).
ian@0 81
ian@0 82 * struct pcmcia_driver
ian@0 83 You need to use struct pcmcia_driver and pcmcia_{un,}register_driver
ian@0 84 instead of {un,}register_pccard_driver