1. Mar 30, 2013
    • K. Y. Srinivasan's avatar
      Drivers: hv: balloon: Support 2M page allocations for ballooning · f766dc1e
      K. Y. Srinivasan authored
      
      
      On Hyper-V it will be very efficient to use 2M allocations in the guest as this
      makes the ballooning protocol with the host that much more efficient. Hyper-V
      uses page ranges (start pfn : number of pages) to specify memory being moved
      around and with 2M pages this encoding can be very efficient. However, when
      memory is returned to the guest, the host does not guarantee any granularity.
      To deal with this issue, split the page soon after a successful 2M allocation
      so that this memory can potentially be freed as 4K pages.
      
      If 2M allocations fail, we revert to 4K allocations.
      
      In this version of the patch, based on the feedback from Michal Hocko
      <mhocko@suse.cz>, I have added some additional commentary to the patch
      description.
      
      Cc: Michal Hocko <mhocko@suse.cz>
      Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f766dc1e
  2. Mar 29, 2013
  3. Mar 27, 2013
  4. Mar 26, 2013