1. 20 2月, 2013 10 次提交
  2. 14 2月, 2013 1 次提交
  3. 13 2月, 2013 1 次提交
  4. 06 2月, 2013 2 次提交
  5. 30 1月, 2013 1 次提交
    • Y
      x86: Don't panic if can not alloc buffer for swiotlb · ac2cbab2
      Yinghai Lu 提交于
      Normal boot path on system with iommu support:
      swiotlb buffer will be allocated early at first and then try to initialize
      iommu, if iommu for intel or AMD could setup properly, swiotlb buffer
      will be freed.
      
      The early allocating is with bootmem, and could panic when we try to use
      kdump with buffer above 4G only, or with memmap to limit mem under 4G.
      for example: memmap=4095M$1M to remove memory under 4G.
      
      According to Eric, add _nopanic version and no_iotlb_memory to fail
      map single later if swiotlb is still needed.
      
      -v2: don't pass nopanic, and use -ENOMEM return value according to Eric.
           panic early instead of using swiotlb_full to panic...according to Eric/Konrad.
      -v3: make swiotlb_init to be notpanic, but will affect:
           arm64, ia64, powerpc, tile, unicore32, x86.
      -v4: cleanup swiotlb_init by removing swiotlb_init_with_default_size.
      Suggested-by: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      Link: http://lkml.kernel.org/r/1359058816-7615-36-git-send-email-yinghai@kernel.orgReviewed-and-tested-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Marek Szyprowski <m.szyprowski@samsung.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
      Cc: linux-mips@linux-mips.org
      Cc: xen-devel@lists.xensource.com
      Cc: virtualization@lists.linux-foundation.org
      Cc: Shuah Khan <shuahkhan@gmail.com>
      Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
      ac2cbab2
  6. 26 1月, 2013 1 次提交
  7. 16 1月, 2013 7 次提交
  8. 12 1月, 2013 1 次提交
  9. 04 1月, 2013 1 次提交
    • G
      Drivers: xen: remove __dev* attributes. · 345a5255
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, and __devinitdata from these
      drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Jan Beulich <jbeulich@suse.com>
      Cc: Stephen Hemminger <shemminger@vyatta.com>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      345a5255
  10. 29 11月, 2012 6 次提交
  11. 27 11月, 2012 1 次提交
    • L
      xen/acpi: ACPI PAD driver · 92e3229d
      Liu, Jinsong 提交于
      PAD is acpi Processor Aggregator Device which provides a control point
      that enables the platform to perform specific processor configuration
      and control that applies to all processors in the platform.
      
      This patch is to implement Xen acpi pad logic. When running under Xen
      virt platform, native pad driver would not work. Instead Xen pad driver,
      a self-contained and thin logic level, would take over acpi pad logic.
      
      When acpi pad notify OSPM, xen pad logic intercept and parse _PUR object
      to get the expected idle cpu number, and then hypercall to hypervisor.
      Xen hypervisor would then do the rest work, say, core parking, to idle
      specific number of cpus on its own policy.
      Signed-off-by: NJan Beulich <JBeulich@suse.com>
      Signed-off-by: NLiu Jinsong <jinsong.liu@intel.com>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      92e3229d
  12. 21 11月, 2012 1 次提交
  13. 19 11月, 2012 1 次提交
  14. 16 11月, 2012 1 次提交
  15. 07 11月, 2012 2 次提交
    • K
      xen/generic: Disable fallback build on ARM. · 6bf926dd
      Konrad Rzeszutek Wilk 提交于
      As there is no need for it (the fallback code is for older
      hypervisors and they only run under x86), and also b/c
      we get:
      
      drivers/xen/fallback.c: In function 'xen_event_channel_op_compat':
      drivers/xen/fallback.c:10:19: error: storage size of 'op' isn't known
      drivers/xen/fallback.c:15:2: error: implicit declaration of function '_hypercall1' [-Werror=implicit-function-declaration]
      drivers/xen/fallback.c:15:19: error: expected expression before 'int'
      drivers/xen/fallback.c:18:7: error: 'EVTCHNOP_close' undeclared (first use in this function)
      drivers/xen/fallback.c:18:7: note: each undeclared identifier is reported only once for each function it appears in
      .. and more
      
      [v1: Moved the enablement to be covered by CONFIG_X86 per Ian's suggestion]
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      6bf926dd
    • M
      xen/events: fix RCU warning, or Call idle notifier after irq_enter() · 772aebce
      Mojiong Qiu 提交于
      exit_idle() should be called after irq_enter(), otherwise it throws:
      
      [ INFO: suspicious RCU usage. ]
      3.6.5 #1 Not tainted
      -------------------------------
      include/linux/rcupdate.h:725 rcu_read_lock() used illegally while idle!
      
      other info that might help us debug this:
      
      RCU used illegally from idle CPU!
      rcu_scheduler_active = 1, debug_locks = 1
      RCU used illegally from extended quiescent state!
      1 lock held by swapper/0/0:
       #0:  (rcu_read_lock){......}, at: [<ffffffff810e9fe0>] __atomic_notifier_call_chain+0x0/0x140
      
      stack backtrace:
      Pid: 0, comm: swapper/0 Not tainted 3.6.5 #1
      Call Trace:
       <IRQ>  [<ffffffff811259a2>] lockdep_rcu_suspicious+0xe2/0x130
       [<ffffffff810ea10c>] __atomic_notifier_call_chain+0x12c/0x140
       [<ffffffff810e9fe0>] ? atomic_notifier_chain_unregister+0x90/0x90
       [<ffffffff811216cd>] ? trace_hardirqs_off+0xd/0x10
       [<ffffffff810ea136>] atomic_notifier_call_chain+0x16/0x20
       [<ffffffff810777c3>] exit_idle+0x43/0x50
       [<ffffffff81568865>] xen_evtchn_do_upcall+0x25/0x50
       [<ffffffff81aa690e>] xen_do_hypervisor_callback+0x1e/0x30
       <EOI>  [<ffffffff810013aa>] ? hypercall_page+0x3aa/0x1000
       [<ffffffff810013aa>] ? hypercall_page+0x3aa/0x1000
       [<ffffffff81061540>] ? xen_safe_halt+0x10/0x20
       [<ffffffff81075cfa>] ? default_idle+0xba/0x570
       [<ffffffff810778af>] ? cpu_idle+0xdf/0x140
       [<ffffffff81a4d881>] ? rest_init+0x135/0x144
       [<ffffffff81a4d74c>] ? csum_partial_copy_generic+0x16c/0x16c
       [<ffffffff82520c45>] ? start_kernel+0x3db/0x3e8
       [<ffffffff8252066a>] ? repair_env_string+0x5a/0x5a
       [<ffffffff82520356>] ? x86_64_start_reservations+0x131/0x135
       [<ffffffff82524aca>] ? xen_start_kernel+0x465/0x46
      
      Git commit 98ad1cc1
      Author: Frederic Weisbecker <fweisbec@gmail.com>
      Date:   Fri Oct 7 18:22:09 2011 +0200
      
          x86: Call idle notifier after irq_enter()
      
      did this, but it missed the Xen code.
      Signed-off-by: NMojiong Qiu <mjqiu@tencent.com>
      Cc: stable@vger.kernel.org # from 3.3 and newer.
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      772aebce
  16. 04 11月, 2012 1 次提交
    • J
      xen/hypercall: fix hypercall fallback code for very old hypervisors · cf47a83f
      Jan Beulich 提交于
      While copying the argument structures in HYPERVISOR_event_channel_op()
      and HYPERVISOR_physdev_op() into the local variable is sufficiently
      safe even if the actual structure is smaller than the container one,
      copying back eventual output values the same way isn't: This may
      collide with on-stack variables (particularly "rc") which may change
      between the first and second memcpy() (i.e. the second memcpy() could
      discard that change).
      
      Move the fallback code into out-of-line functions, and handle all of
      the operations known by this old a hypervisor individually: Some don't
      require copying back anything at all, and for the rest use the
      individual argument structures' sizes rather than the container's.
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NJan Beulich <jbeulich@suse.com>
      [v2: Reduce #define/#undef usage in HYPERVISOR_physdev_op_compat().]
      [v3: Fix compile errors when modules use said hypercalls]
      [v4: Add xen_ prefix to the HYPERCALL_..]
      [v5: Alter the name and only EXPORT_SYMBOL_GPL one of them]
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      cf47a83f
  17. 02 11月, 2012 2 次提交
    • J
      xen-pciback: reject out of range inputs · b3e40b72
      Jan Beulich 提交于
      This add checks for out of range numbers (including in cases where the
      folding of slot and function into a single value could yield false
      matches).
      
      It also removes the bogus field width restrictions in str_to_quirk() -
      nowhere else in the driver this is being done, and hence this function
      could reject input the equivalent of which would be happily accepted
      in other places (in particular, "0x" prefixes causing the effective
      width of the actual number to be either zero or less than what would be
      required to cover the full range of valid values). Note that for the
      moment this second part is cosmetic only, as the kernel's sscanf()
      currently ignores the field widths, but a patch to overcome this is on
      its way.
      Signed-off-by: NJan Beulich <jbeulich@suse.com>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      b3e40b72
    • J
      xen-pciback: simplify and tighten parsing of device IDs · 5b71fbdc
      Jan Beulich 提交于
      Now that at least one of the conformance problems of the kernel's
      sscanf() was addressed (commit da99075c),
      we can improve the parsing done in xen-pciback both in terms of code
      readability and correctness (in particular properly rejecting input
      strings not well formed).
      Signed-off-by: NJan Beulich <jbeulich@suse.com>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      5b71fbdc