1. 24 Jan, 2009 1 commit
    • Hiroshi Shimamoto's avatar
      x86: uaccess: introduce try and catch framework · fe40c0af
      Hiroshi Shimamoto authored
      Impact: introduce new uaccess exception handling framework
      
      Introduce {get|put}_user_try and {get|put}_user_catch as new uaccess exception
      handling framework.
      {get|put}_user_try begins exception block and {get|put}_user_catch(err) ends
      the block and gets err if an exception occured in {get|put}_user_ex() in the
      block. The exception is stored thread_info->uaccess_err.
      
      The example usage of this framework is below;
      int func()
      {
      	int err = 0;
      
      	get_user_try {
      		get_user_ex(...);
      		get_user_ex(...);
      		:
      	} get_user_catch(err);
      
      	return err;
      }
      
      Note: get_user_ex() is not clear the value when an exception occurs, it's
      different from the behavior of __get_user(), but I think it doesn't matter.
      Signed-off-by: default avatarHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
      Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
      fe40c0af
  2. 21 Jan, 2009 2 commits
  3. 20 Jan, 2009 1 commit
    • Jiri Kosina's avatar
      x86: remove byte locks · afb33f8c
      Jiri Kosina authored
      Impact: cleanup
      
      Remove byte locks implementation, which was introduced by Jeremy in
      8efcbab6 ("paravirt: introduce a "lock-byte" spinlock implementation"),
      but turned out to be dead code that is not used by any in-kernel
      virtualization guest (Xen uses its own variant of spinlocks implementation
      and KVM is not planning to move to byte locks).
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      afb33f8c
  4. 19 Jan, 2009 1 commit
    • Michael Ellerman's avatar
      x86: Remove never-called arch_setup_msi_irq() · 422e79a8
      Michael Ellerman authored
      Since commit 75c46fa6, "x64, x2apic/intr-remap: MSI and MSI-X
      support for interrupt remapping infrastructure", x86 has had an
      implementation of arch_setup_msi_irqs().
      
      That implementation does not call arch_setup_msi_irq(), instead it calls
      setup_irq(). No other x86 code calls arch_setup_msi_irq().
      
      That leaves only arch_setup_msi_irqs() in drivers/pci/msi.c, but that
      routine is overridden by the x86 version of arch_setup_msi_irqs().
      
      So arch_setup_msi_irq() is dead code, remove it.
      Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
      422e79a8
  5. 14 Jan, 2009 3 commits
  6. 12 Jan, 2009 5 commits
  7. 10 Jan, 2009 21 commits
  8. 09 Jan, 2009 6 commits