1. 03 2月, 2008 1 次提交
  2. 30 1月, 2008 2 次提交
  3. 29 1月, 2008 2 次提交
  4. 28 1月, 2008 1 次提交
  5. 24 12月, 2007 1 次提交
  6. 18 12月, 2007 1 次提交
    • S
      uml: stop gdb from deleting breakpoints when running UML · 4dbed85a
      Stanislaw Gruszka 提交于
      Sometimes when UML is debugged gdb miss breakpoints.
      
      When process traced by gdb do fork, debugger remove breakpoints from
      child address space. There is possibility to trace more than one fork,
      but this not work with UML, I guess (only guess) there is a deadlock -
      gdb waits for UML and UML waits for gdb.
      
      When clone() is called with SIGCHLD and CLONE_VM flags, gdb see this
      as PTRACE_EVENT_FORK not as PTRACE_EVENT_CLONE and remove breakpoints
      from child and at the same time from traced process, because either
      have the same address space.
      
      Maybe it is possible to do fix in gdb, but I'm not sure if there is
      easy way to find out if traced and child processes share memory. So I
      do fix for UML, it simply do not call clone() with both SIGCHLD and
      CLONE_VM flags together.  Additionally __WALL flag is used for
      waitpid() to assure not miss clone and normal process events.
      
      [ jdike - checkpatch fixes ]
      Signed-off-by: NStanislaw Gruszka <stf_xl@wp.pl>
      Signed-off-by: NJeff Dike <jdike@linux.intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4dbed85a
  7. 11 12月, 2007 1 次提交
  8. 06 12月, 2007 1 次提交
  9. 04 12月, 2007 3 次提交
  10. 30 11月, 2007 3 次提交
  11. 15 11月, 2007 6 次提交
  12. 07 11月, 2007 1 次提交
  13. 06 11月, 2007 2 次提交
  14. 29 10月, 2007 3 次提交
  15. 24 10月, 2007 1 次提交
    • W
      arch/um/drivers/ubd_kern.c: fix a building error · 23464ffa
      WANG Cong 提交于
      Fix this uml building error:
      arch/um/drivers/ubd_kern.c: In function 'do_ubd_request':
      arch/um/drivers/ubd_kern.c:1118: error: implicit declaration of function
      'sg_page'
      arch/um/drivers/ubd_kern.c:1118: warning: passing argument 6 of
      'prepare_request' makes pointer from integer without a cast
      make[1]: *** [arch/um/drivers/ubd_kern.o] Error 1
      make: *** [arch/um/drivers] Error 2
      Signed-off-by: NWANG Cong <xiyou.wangcong@gmail.com>
      
      Add sg_init_table() call as well.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      23464ffa
  16. 23 10月, 2007 1 次提交
  17. 20 10月, 2007 5 次提交
  18. 18 10月, 2007 1 次提交
  19. 17 10月, 2007 4 次提交
    • A
      remove include/asm-*/ipc.h · cba4fbbf
      Adrian Bunk 提交于
      All asm/ipc.h files do only #include <asm-generic/ipc.h>.
      
      This patch therefore removes all include/asm-*/ipc.h files and moves the
      contents of include/asm-generic/ipc.h to include/linux/ipc.h.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cba4fbbf
    • L
      uml: definitively kill subprocesses on panic · a24864a1
      Lepton Wu 提交于
      In a stock 2.6.22.6 kernel, poweroff a user mode linux guest (2.6.22.6 running
      in skas0 mode) will halt the host linux.  I think the reason is the kernel
      thread abort because of a bug.  Then the sys_reboot in process of user mode
      linux guest is not trapped by the user mode linux kernel and is executed by
      host.  I think it is better to make sure all of our children process to quit
      when user mode linux kernel abort.
      
      [ jdike - the kernel process needs to ignore SIGTERM, plus the waitpid/kill
      loop is needed to make sure that all of our children are dead before the
      kernel exits ]
      Signed-off-by: NLepton Wu <ytht.net@gmail.com>
      Signed-off-by: NJeff Dike <jdike@linux.intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a24864a1
    • J
      uml: arch/um/drivers formatting · cb8fa61c
      Jeff Dike 提交于
      Style fixes for the rest of the drivers.  arch/um/drivers should be pretty
      CodingStyle-compliant now.
      
      Except for the ubd driver, which will have to be treated separately.
      
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: NJeff Dike <jdike@linux.intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cb8fa61c
    • J
      uml: fix stub address calculations · 54ae36f2
      Jeff Dike 提交于
      The calculation of CONFIG_STUB_CODE and CONFIG_STUB_DATA didn't take into
      account anything but 3G/1G and 2G/2G, leaving the other vmsplits out in the
      cold.
      
      I'd rather not duplicate the four known host vmsplit cases for each of these
      symbols.  I'd also like to calculate them based on the highest userspace
      address.
      
      The Kconfig language seems not to allow calculation of hex constants, so I
      moved this to as-layout.h.  CONFIG_STUB_CODE, CONFIG_STUB_DATA, and
      CONFIG_STUB_START are now gone.  In their place are STUB_CODE, STUB_DATA, and
      STUB_START in as-layout.h.
      
      i386 and x86_64 seem to differ as to whether an unadorned constant is an int
      or a long, so I cast them to unsigned long so they can be printed
      consistently.  However, they are also used in stub.S, where C types don't work
      so well.  So, there are ASM_ versions of these constants for use in stub.S.  I
      also ifdef-ed the non-asm-friendly portion of as-layout.h.
      
      With this in place, most of the rest of this patch is changing CONFIG_STUB_*
      to STUB_*, except in stub.S, where they are changed to ASM_STUB_*.
      
      defconfig has the old symbols deleted.
      
      I also print these addresses out in case there is any problem mapping them on
      the host.
      
      The two stub.S files had some trailing whitespace, so that is cleaned up here.
      
      [akpm@linux-foundation.org: coding-style fixes]
      Signed-off-by: NJeff Dike <jdike@linux.intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      54ae36f2