1. 22 9月, 2011 3 次提交
    • J
      xen/pciback: miscellaneous adjustments · 402c5e15
      Jan Beulich 提交于
      This is a minor bugfix and a set of small cleanups; as it is not clear
      whether this needs splitting into pieces (and if so, at what
      granularity), it is a single combined patch.
      - add a missing return statement to an error path in
        kill_domain_by_device()
      - use pci_is_enabled() rather than raw atomic_read()
      - remove a bogus attempt to zero-terminate an already zero-terminated
        string
      - #define DRV_NAME once uniformly in the shared local header
      - make DRIVER_ATTR() variables static
      - eliminate a pointless use of list_for_each_entry_safe()
      - add MODULE_ALIAS()
      - a little bit of constification
      - adjust a few messages
      - remove stray semicolons from inline function definitions
      Signed-off-by: NJan Beulich <jbeulich@suse.com>
      [v1: Dropped the resource_size fix, altered the description]
      [v2: Fixed cleanpatch.pl comments]
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      402c5e15
    • J
      xen/pciback: use mutex rather than spinlock in passthrough backend · 04df3552
      Jan Beulich 提交于
      To accommodate the call to the callback function from
      __xen_pcibk_publish_pci_roots(), which so far dropped and the re-
      acquired the lock without checking that the list didn't actually
      change, convert the code to use a mutex instead (observing that the
      code taking the lock won't ever get called from non-sleepable
      context).
      
      As a result, drop the bogus use of list_for_each_entry_safe() and
      remove the inappropriate dropping of the lock.
      Signed-off-by: NJan Beulich <jbeulich@suse.com>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      04df3552
    • T
      xen/pciback: use resource_size() · 5fa99911
      Thomas Meyer 提交于
       Use resource_size function on resource object
       instead of explicit computation.
      
       The semantic patch that makes this output is available
       in scripts/coccinelle/api/resource_size.cocci.
      
       More information about semantic patching is available at
       http://coccinelle.lip6.fr/Signed-off-by: NThomas Meyer <thomas@m3y3r.de>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      5fa99911
  2. 13 9月, 2011 8 次提交
  3. 12 9月, 2011 3 次提交
  4. 11 9月, 2011 26 次提交