1. 26 5月, 2008 1 次提交
  2. 01 5月, 2008 4 次提交
  3. 26 4月, 2008 1 次提交
    • I
      x86: add optimized inlining · 60a3cdd0
      Ingo Molnar 提交于
      add CONFIG_OPTIMIZE_INLINING=y.
      
      allow gcc to optimize the kernel image's size by uninlining
      functions that have been marked 'inline'. Previously gcc was
      forced by Linux to always-inline these functions via a gcc
      attribute:
      
       #define inline	inline __attribute__((always_inline))
      
      Especially when the user has already selected
      CONFIG_OPTIMIZE_FOR_SIZE=y this can make a huge difference in
      kernel image size (using a standard Fedora .config):
      
         text    data     bss     dec           hex filename
         5613924  562708 3854336 10030968    990f78 vmlinux.before
         5486689  562708 3854336  9903733    971e75 vmlinux.after
      
      that's a 2.3% text size reduction (!).
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      60a3cdd0
  4. 25 4月, 2008 2 次提交
    • I
      /dev/mem: make promisc the default · 1f56cf1c
      Ingo Molnar 提交于
      default to the old semantics.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      1f56cf1c
    • A
      x86: introduce /dev/mem restrictions with a config option · ae531c26
      Arjan van de Ven 提交于
      This patch introduces a restriction on /dev/mem: Only non-memory can be
      read or written unless the newly introduced config option is set.
      
      The X server needs access to /dev/mem for the PCI space, but it doesn't need
      access to memory; both the file permissions and SELinux permissions of /dev/mem
      just make X effectively super-super powerful. With the exception of the
      BIOS area, there's just no valid app that uses /dev/mem on actual memory.
      Other popular users of /dev/mem are rootkits and the like.
      (note: mmap access of memory via /dev/mem was already not allowed since
      a really long time)
      
      People who want to use /dev/mem for kernel debugging can enable the config
      option.
      
      The restrictions of this patch have been in the Fedora and RHEL kernels for
      at least 4 years without any problems.
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      ae531c26
  5. 17 4月, 2008 4 次提交
  6. 19 2月, 2008 1 次提交
  7. 10 2月, 2008 1 次提交
  8. 07 2月, 2008 1 次提交
  9. 30 1月, 2008 14 次提交
  10. 30 10月, 2007 3 次提交
  11. 26 10月, 2007 1 次提交
  12. 30 7月, 2007 1 次提交
  13. 22 6月, 2007 1 次提交
  14. 21 6月, 2007 1 次提交
  15. 03 5月, 2007 1 次提交
  16. 13 2月, 2007 1 次提交
  17. 07 12月, 2006 1 次提交
    • R
      [PATCH] paravirt: Patch inline replacements for paravirt intercepts · 139ec7c4
      Rusty Russell 提交于
      It turns out that the most called ops, by several orders of magnitude,
      are the interrupt manipulation ops.  These are obvious candidates for
      patching, so mark them up and create infrastructure for it.
      
      The method used is that the ops structure has a patch function, which
      is called for each place which needs to be patched: this returns a
      number of instructions (the rest are NOP-padded).
      
      Usually we can spare a register (%eax) for the binary patched code to
      use, but in a couple of critical places in entry.S we can't: we make
      the clobbers explicit at the call site, and manually clobber the
      allowed registers in debug mode as an extra check.
      
      And:
      
      Don't abuse CONFIG_DEBUG_KERNEL, add CONFIG_DEBUG_PARAVIRT.
      
      And:
      
      AK:  Fix warnings in x86-64 alternative.c build
      
      And:
      
      AK: Fix compilation with defconfig
      
      And:
      
      ^From: Andrew Morton <akpm@osdl.org>
      
      Some binutlises still like to emit references to __stop_parainstructions and
      __start_parainstructions.
      
      And:
      
      AK: Fix warnings about unused variables when PARAVIRT is disabled.
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: NJeremy Fitzhardinge <jeremy@xensource.com>
      Signed-off-by: NChris Wright <chrisw@sous-sol.org>
      Signed-off-by: NZachary Amsden <zach@vmware.com>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      139ec7c4
  18. 04 7月, 2006 1 次提交