Skip to content
  1. Sep 01, 2011
    • David Vrabel's avatar
      xen: use maximum reservation to limit amount of usable RAM · d312ae87
      David Vrabel authored
      
      
      Use the domain's maximum reservation to limit the amount of extra RAM
      for the memory balloon. This reduces the size of the pages tables and
      the amount of reserved low memory (which defaults to about 1/32 of the
      total RAM).
      
      On a system with 8 GiB of RAM with the domain limited to 1 GiB the
      kernel reports:
      
      Before:
      
      Memory: 627792k/4472000k available
      
      After:
      
      Memory: 549740k/11132224k available
      
      A increase of about 76 MiB (~1.5% of the unused 7 GiB).  The reserved
      low memory is also reduced from 253 MiB to 32 MiB.  The total
      additional usable RAM is 329 MiB.
      
      For dom0, this requires at patch to Xen ('x86: use 'dom0_mem' to limit
      the number of pages for dom0') (c/s 23790)
      
      CC: stable@kernel.org
      Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      d312ae87
  2. Aug 22, 2011
  3. Aug 17, 2011
    • Jan Beulich's avatar
      xen/x86: replace order-based range checking of M2P table by linear one · ccbcdf7c
      Jan Beulich authored
      
      
      The order-based approach is not only less efficient (requiring a shift
      and a compare, typical generated code looking like this
      
      	mov	eax, [machine_to_phys_order]
      	mov	ecx, eax
      	shr	ebx, cl
      	test	ebx, ebx
      	jnz	...
      
      whereas a direct check requires just a compare, like in
      
      	cmp	ebx, [machine_to_phys_nr]
      	jae	...
      
      ), but also slightly dangerous in the 32-on-64 case - the element
      address calculation can wrap if the next power of two boundary is
      sufficiently far away from the actual upper limit of the table, and
      hence can result in user space addresses being accessed (with it being
      unknown what may actually be mapped there).
      
      Additionally, the elimination of the mistaken use of fls() here (should
      have been __fls()) fixes a latent issue on x86-64 that would trigger
      if the code was run on a system with memory extending beyond the 44-bit
      boundary.
      
      CC: stable@kernel.org
      Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
      [v1: Based on Jeremy's feedback]
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      ccbcdf7c
  4. Aug 11, 2011
    • Randy Dunlap's avatar
      xen: xen-selfballoon.c needs more header files · 30eefc95
      Randy Dunlap authored
      
      
      Fix build errors (found when CONFIG_SYSFS is not enabled):
      
      drivers/xen/xen-selfballoon.c:446: warning: data definition has no type or storage class
      drivers/xen/xen-selfballoon.c:446: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL'
      drivers/xen/xen-selfballoon.c:446: warning: parameter names (without types) in function declaration
      drivers/xen/xen-selfballoon.c:485: error: expected declaration specifiers or '...' before string constant
      drivers/xen/xen-selfballoon.c:485: warning: data definition has no type or storage class
      drivers/xen/xen-selfballoon.c:485: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
      drivers/xen/xen-selfballoon.c:485: warning: function declaration isn't a prototype
      
      Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      30eefc95
  5. Aug 05, 2011
  6. Aug 04, 2011
  7. Jul 30, 2011
    • Linus Torvalds's avatar
      Merge branch 'upstream/xen-tracing2' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen · b993fdbc
      Linus Torvalds authored
      * 'upstream/xen-tracing2' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen:
        xen/tracing: fix compile errors when tracing is disabled.
      b993fdbc
    • Linus Torvalds's avatar
      Merge branch 'at91/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc · 8f57be8e
      Linus Torvalds authored
      * 'at91/cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc:
        at91: add arch specific ioremap support
        at91: factorize sram init
        at91: move register clocks to soc generic init
        at91: move clock subsystem init to soc generic init
        at91: use structure to store the current soc
        at91: remove AT91_DBGU offset from dbgu register macro
        at91: factorize at91 interrupts init to soc
        at91: introduce commom AT91_BASE_SYS
      8f57be8e
    • Linus Torvalds's avatar
      Merge branch 'next/dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc · cb7dee8d
      Linus Torvalds authored
      * 'next/dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc: (21 commits)
        arm/dt: tegra devicetree support
        arm/versatile: Add device tree support
        dt/irq: add irq_domain_generate_simple() helper
        irq: add irq_domain translation infrastructure
        dmaengine: imx-sdma: add device tree probe support
        dmaengine: imx-sdma: sdma_get_firmware does not need to copy fw_name
        dmaengine: imx-sdma: use platform_device_id to identify sdma version
        mmc: sdhci-esdhc-imx: add device tree probe support
        mmc: sdhci-pltfm: dt device does not pass parent to sdhci_alloc_host
        mmc: sdhci-esdhc-imx: get rid of the uses of cpu_is_mx()
        mmc: sdhci-esdhc-imx: do not reference platform data after probe
        mmc: sdhci-esdhc-imx: extend card_detect and write_protect support for mx5
        net/fec: add device tree probe support
        net: ibm_newemac: convert it to use of_get_phy_mode
        dt/net: add helper function of_get_phy_mode
        net/fec: gasket needs to be enabled for some i.mx
        serial/imx: add device tree probe support
        serial/imx: get rid of the uses of cpu_is_mx1()
        arm/dt: Add dtb make rule
        arm/dt: Add skeleton dtsi file
        ...
      cb7dee8d
    • Linus Torvalds's avatar
      Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc · 49267fc8
      Linus Torvalds authored
      * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc:
        ARM: zynq: remove incorrectly deleted file
        ARM: tegra: only select MACH_HAS_SND_SOC_TEGRA_WM8903 if SND_SOC
      49267fc8
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-watchdog · 2313bcdc
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-watchdog: (25 commits)
        watchdog: WatchDog Timer Driver Core - Add minimum and max timeout
        watchdog: WatchDog Timer Driver Core - Add ioctl call
        watchdog: WatchDog Timer Driver Core - Add nowayout feature
        watchdog: WatchDog Timer Driver Core - Add Magic Close feature
        watchdog: WatchDog Timer Driver Core - Add WDIOC_SETTIMEOUT and WDIOC_GETTIMEOUT ioctl
        watchdog: WatchDog Timer Driver Core - Add WDIOC_SETOPTIONS ioctl
        watchdog: WatchDog Timer Driver Core - Add WDIOC_KEEPALIVE ioctl
        watchdog: WatchDog Timer Driver Core - Add basic ioctl functionality
        watchdog: WatchDog Timer Driver Core - Add basic framework
        watchdog: hpwdt: add next gen HP servers
        watchdog: it8712f_wdt.c: improve includes
        watchdog: at91sam9/wdt: move register header to drivers
        watchdog: Add Xilinx watchdog timer driver
        watchdog: remove empty pm-functions
        watchdog: sp805: Flush posted writes in enable/disable.
        watchdog: sp805: Don't write 0 to the load value register.
        watchdog: imx2_wdt: add device tree probe support
        watchdog: s3c2410: Add support for device tree based probe
        watchdog: mpcore_wdt: Add suspend/resume support.
        watchdog: mtx1-wdt: use dev_{err,info} instead of printk()
        ...
      2313bcdc
    • Linus Torvalds's avatar
      ext2: remove duplicate 'ext2_get_acl()' define · 59ed2bb2
      Linus Torvalds authored
      When commit 4e34e719
      
       ("fs: take the ACL checks to common code")
      changed the xyz_check_acl() functions into the more natural
      xyz_get_acl() interface, we grew two copies of the
      
        #define ext2_get_acl	NULL
      
      define for the non-acl case.
      
      Remove the extra one.
      
      Reported-by: default avatarMarco Stornelli <marco.stornelli@gmail.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      59ed2bb2
  8. Jul 29, 2011
  9. Jul 28, 2011