“5bd5a367fd121dba09cfaff2cc77e3c7a5c974e3”上不存在“...ActsStopServiceExtensionTest/BUILD.gn”
  1. 17 12月, 2011 6 次提交
  2. 22 11月, 2011 7 次提交
  3. 01 11月, 2011 2 次提交
  4. 20 10月, 2011 6 次提交
  5. 17 10月, 2011 1 次提交
  6. 15 10月, 2011 1 次提交
    • D
      xen: Fix selfballooning and ensure it doesn't go too far · 38a1ed4f
      Dan Magenheimer 提交于
      The balloon driver's "current_pages" is very different from
      totalram_pages.  Self-ballooning needs to be driven by
      the latter.  Also, Committed_AS doesn't account for pages
      used by the kernel so:
      1) Add totalreserve_pages to Committed_AS for the normal target.
      2) Enforce a floor for when there are little or no user-space threads
         using memory (e.g. single-user mode) to avoid OOMs.  The floor
         function includes a "min_usable_mb" tuneable in case we discover
         later that the floor function is still too aggressive in some
         workloads, though likely it will not be needed.
      
      Changes since version 4:
      - change floor calculation so that it is not as aggressive; this version
        uses a piecewise linear function similar to minimum_target in the 2.6.18
        balloon driver, but modified to add to totalreserve_pages instead of
        subtract from max_pfn, the 2.6.18 version causes OOMs on recent kernels
        because the kernel has expanded over time
      - change safety_margin to min_usable_mb and comment on its use
      - since committed_as does NOT include kernel space (and other reserved
        pages), totalreserve_pages is now added to committed_as.  The result is
        less aggressive self-ballooning, but theoretically more appropriate.
      Changes since version 3:
      - missing include causes compile problem when CONFIG_FRONTSWAP is disabled
      - add comments after includes
      Changes since version 2:
      - missing include causes compile problem only on 32-bit
      Changes since version 1:
      - tuneable safety margin added
      
      [v5: avi.miller@oracle.com: still too aggressive, seeing some OOMs]
      [v4: konrad.wilk@oracle.com: fix compile when CONFIG_FRONTSWAP is disabled]
      [v3: guru.anbalagane@oracle.com: fix 32-bit compile]
      [v2: konrad.wilk@oracle.com: make safety margin tuneable]
      Signed-off-by: NDan Magenheimer <dan.magenheimer@oracle.com>
      [v1: Altered description and added an extra include]
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      38a1ed4f
  7. 14 10月, 2011 3 次提交
    • D
      xen/gntdev: Fix sleep-inside-spinlock · 1f1503ba
      Daniel De Graaf 提交于
      BUG: sleeping function called from invalid context at /local/scratch/dariof/linux/kernel/mutex.c:271
      in_atomic(): 1, irqs_disabled(): 0, pid: 3256, name: qemu-dm
      1 lock held by qemu-dm/3256:
       #0:  (&(&priv->lock)->rlock){......}, at: [<ffffffff813223da>] gntdev_ioctl+0x2bd/0x4d5
      Pid: 3256, comm: qemu-dm Tainted: G        W   3.1.0-rc8+ #5
      Call Trace:
       [<ffffffff81054594>] __might_sleep+0x131/0x135
       [<ffffffff816bd64f>] mutex_lock_nested+0x25/0x45
       [<ffffffff8131c7c8>] free_xenballooned_pages+0x20/0xb1
       [<ffffffff8132194d>] gntdev_put_map+0xa8/0xdb
       [<ffffffff816be546>] ? _raw_spin_lock+0x71/0x7a
       [<ffffffff813223da>] ? gntdev_ioctl+0x2bd/0x4d5
       [<ffffffff8132243c>] gntdev_ioctl+0x31f/0x4d5
       [<ffffffff81007d62>] ? check_events+0x12/0x20
       [<ffffffff811433bc>] do_vfs_ioctl+0x488/0x4d7
       [<ffffffff81007d4f>] ? xen_restore_fl_direct_reloc+0x4/0x4
       [<ffffffff8109168b>] ? lock_release+0x21c/0x229
       [<ffffffff81135cdd>] ? rcu_read_unlock+0x21/0x32
       [<ffffffff81143452>] sys_ioctl+0x47/0x6a
       [<ffffffff816bfd82>] system_call_fastpath+0x16/0x1b
      
      gntdev_put_map tries to acquire a mutex when freeing pages back to the
      xenballoon pool, so it cannot be called with a spinlock held. In
      gntdev_release, the spinlock is not needed as we are freeing the
      structure later; in the ioctl, only the list manipulation needs to be
      under the lock.
      Reported-and-Tested-By: NDario Faggioli <dario.faggioli@citrix.com>
      Signed-off-by: NDaniel De Graaf <dgdegra@tycho.nsa.gov>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      1f1503ba
    • D
      xenbus: don't rely on xen_initial_domain to detect local xenstore · e4184aaf
      Daniel De Graaf 提交于
      The xenstore daemon does not have to run in the xen initial domain;
      however, Linux currently uses xen_initial_domain to test if a loopback
      event channel should be used instead of the event channel provided in
      Xen's start_info structure. Instead, if the event channel passed in the
      start_info structure is not valid, assume that this domain will run
      xenstored locally and set up the event channel.
      Signed-off-by: NDaniel De Graaf <dgdegra@tycho.nsa.gov>
      Reviewed-by: NIan Campbell <Ian.Campbell@citrix.com>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      e4184aaf
    • D
      xenbus: Fix loopback event channel assuming domain 0 · 77447991
      Daniel De Graaf 提交于
      The xenbus event channel established in xenbus_init is intended to be a
      loopback channel, but the remote domain was hardcoded to 0; this will
      cause the channel to be unusable when xenstore is not being run in
      domain 0.
      Signed-off-by: NDaniel De Graaf <dgdegra@tycho.nsa.gov>
      Reviewed-by: NIan Campbell <Ian.Campbell@citrix.com>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      77447991
  8. 30 9月, 2011 1 次提交
  9. 29 9月, 2011 7 次提交
  10. 27 9月, 2011 2 次提交
  11. 23 9月, 2011 2 次提交
    • O
      xen/pv-on-hvm kexec: add xs_reset_watches to shutdown watches from old kernel · ddacf5ef
      Olaf Hering 提交于
      Add new xs_reset_watches function to shutdown watches from old kernel after
      kexec boot.  The old kernel does not unregister all watches in the
      shutdown path.  They are still active, the double registration can not
      be detected by the new kernel.  When the watches fire, unexpected events
      will arrive and the xenwatch thread will crash (jumps to NULL).  An
      orderly reboot of a hvm guest will destroy the entire guest with all its
      resources (including the watches) before it is rebuilt from scratch, so
      the missing unregister is not an issue in that case.
      
      With this change the xenstored is instructed to wipe all active watches
      for the guest.  However, a patch for xenstored is required so that it
      accepts the XS_RESET_WATCHES request from a client (see changeset
      23839:42a45baf037d in xen-unstable.hg). Without the patch for xenstored
      the registration of watches will fail and some features of a PVonHVM
      guest are not available. The guest is still able to boot, but repeated
      kexec boots will fail.
      
      [v5: use xs_single instead of passing a dummy string to xs_talkv]
      [v4: ignore -EEXIST in xs_reset_watches]
      [v3: use XS_RESET_WATCHES instead of XS_INTRODUCE]
      [v2: move all code which deals with XS_INTRODUCE into xs_introduce()
          (based on feedback from Ian Campbell); remove casts from kvec assignment]
      Signed-off-by: NOlaf Hering <olaf@aepfle.de>
      [v1: Redid the git description a bit]
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      ddacf5ef
    • J
      xen/pci: support multi-segment systems · 55e901fc
      Jan Beulich 提交于
      Now that the hypercall interface changes are in -unstable, make the
      kernel side code not ignore the segment (aka domain) number anymore
      (which results in pretty odd behavior on such systems). Rather, if
      only the old interfaces are available, don't call them for devices on
      non-zero segments at all.
      Signed-off-by: NJan Beulich <jbeulich@suse.com>
      [v1: Edited git description]
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      55e901fc
  12. 22 9月, 2011 2 次提交
    • K
      xen/pciback: use mutex rather than spinlock in vpci backend · 74d33ded
      Konrad Rzeszutek Wilk 提交于
      Similar to the "xen/pciback: use mutex rather than spinlock in passthrough backend"
      this patch converts the vpci backend to use a mutex instead of
      a spinlock. Note that the code taking the lock won't ever get called
      from non-sleepable context
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      74d33ded
    • K
      xen/pciback: Use mutexes when working with Xenbus state transitions. · b1766b62
      Konrad Rzeszutek Wilk 提交于
      The caller that orchestrates the state changes is xenwatch_thread
      and it takes a mutex. In our processing of Xenbus states we can take
      the luxery of going to sleep on a mutex, so lets do that and
      also fix this bug:
      
      BUG: sleeping function called from invalid context at /linux/kernel/mutex.c:271
      in_atomic(): 1, irqs_disabled(): 0, pid: 32, name: xenwatch
      2 locks held by xenwatch/32:
       #0:  (xenwatch_mutex){......}, at: [<ffffffff813856ab>] xenwatch_thread+0x4b/0x180
       #1:  (&(&pdev->dev_lock)->rlock){......}, at: [<ffffffff8138f05b>] xen_pcibk_disconnect+0x1b/0x80
      Pid: 32, comm: xenwatch Not tainted 3.1.0-rc6-00015-g3ce340d #2
      Call Trace:
       [<ffffffff810892b2>] __might_sleep+0x102/0x130
       [<ffffffff8163b90f>] mutex_lock_nested+0x2f/0x50
       [<ffffffff81382c1c>] unbind_from_irq+0x2c/0x1b0
       [<ffffffff8110da66>] ? free_irq+0x56/0xb0
       [<ffffffff81382dbc>] unbind_from_irqhandler+0x1c/0x30
       [<ffffffff8138f06b>] xen_pcibk_disconnect+0x2b/0x80
       [<ffffffff81390348>] xen_pcibk_frontend_changed+0xe8/0x140
       [<ffffffff81387ac2>] xenbus_otherend_changed+0xd2/0x150
       [<ffffffff810895c1>] ? get_parent_ip+0x11/0x50
       [<ffffffff81387de0>] frontend_changed+0x10/0x20
       [<ffffffff81385712>] xenwatch_thread+0xb2/0x180
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      b1766b62