1. 18 3月, 2014 4 次提交
    • S
      xen/acpi-processor: fix enabling interrupts on syscore_resume · cd979883
      Stanislaw Gruszka 提交于
      syscore->resume() callback is expected to do not enable interrupts,
      it generates warning like below otherwise:
      
      [ 9386.365390] WARNING: CPU: 0 PID: 6733 at drivers/base/syscore.c:104 syscore_resume+0x9a/0xe0()
      [ 9386.365403] Interrupts enabled after xen_acpi_processor_resume+0x0/0x34 [xen_acpi_processor]
      ...
      [ 9386.365429] Call Trace:
      [ 9386.365434]  [<ffffffff81667a8b>] dump_stack+0x45/0x56
      [ 9386.365437]  [<ffffffff8106921d>] warn_slowpath_common+0x7d/0xa0
      [ 9386.365439]  [<ffffffff8106928c>] warn_slowpath_fmt+0x4c/0x50
      [ 9386.365442]  [<ffffffffa0261bb0>] ? xen_upload_processor_pm_data+0x300/0x300 [xen_acpi_processor]
      [ 9386.365443]  [<ffffffff814055fa>] syscore_resume+0x9a/0xe0
      [ 9386.365445]  [<ffffffff810aef42>] suspend_devices_and_enter+0x402/0x470
      [ 9386.365447]  [<ffffffff810af128>] pm_suspend+0x178/0x260
      
      On xen_acpi_processor_resume() we call various procedures, which are
      non atomic and can enable interrupts. To prevent the issue introduce
      separate resume notify called after we enable interrupts on resume
      and before we call other drivers resume callbacks.
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      cd979883
    • Z
      xen/grant-table: Refactor gnttab_[un]map_refs to avoid m2p_override · 1429d46d
      Zoltan Kiss 提交于
      The grant mapping API does m2p_override unnecessarily: only gntdev needs it,
      for blkback and future netback patches it just cause a lock contention, as
      those pages never go to userspace. Therefore this series does the following:
      - the bulk of the original function (everything after the mapping hypercall)
        is moved to arch-dependent set/clear_foreign_p2m_mapping
      - the "if (xen_feature(XENFEAT_auto_translated_physmap))" branch goes to ARM
      - therefore the ARM function could be much smaller, the m2p_override stubs
        could be also removed
      - on x86 the set_phys_to_machine calls were moved up to this new funcion
        from m2p_override functions
      - and m2p_override functions are only called when there is a kmap_ops param
      
      It also removes a stray space from arch/x86/include/asm/xen/page.h.
      Signed-off-by: NZoltan Kiss <zoltan.kiss@citrix.com>
      Suggested-by: NAnthony Liguori <aliguori@amazon.com>
      Suggested-by: NDavid Vrabel <david.vrabel@citrix.com>
      Suggested-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NDavid Vrabel <david.vrabel@citrix.com>
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      1429d46d
    • M
      xen: remove XEN_PRIVILEGED_GUEST · 395edbb8
      Michael Opdenacker 提交于
      This patch removes the Kconfig symbol XEN_PRIVILEGED_GUEST which is
      used nowhere in the tree.
      
      We do know grub2 has a script that greps kernel configuration files for
      its macro. It shouldn't do that. As Linus summarized:
          This is a grub bug. It really is that simple. Treat it as one.
      
      Besides, grub2's grepping for that macro is actually superfluous. See,
      that script currently contains this test (simplified):
          grep -x CONFIG_XEN_DOM0=y $config || grep -x CONFIG_XEN_PRIVILEGED_GUEST=y $config
      
      But since XEN_DOM0 and XEN_PRIVILEGED_GUEST are by definition equal,
      removing XEN_PRIVILEGED_GUEST cannot influence this test.
      
      So there's no reason to not remove this symbol, like we do with all
      unused Kconfig symbols.
      
      [pebolle@tiscali.nl: rewrote commit explanation.]
      Signed-off-by: NMichael Opdenacker <michael.opdenacker@free-electrons.com>
      Signed-off-by: NPaul Bolle <pebolle@tiscali.nl>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      395edbb8
    • R
      xen: add support for MSI message groups · 4892c9b4
      Roger Pau Monne 提交于
      Add support for MSI message groups for Xen Dom0 using the
      MAP_PIRQ_TYPE_MULTI_MSI pirq map type.
      
      In order to keep track of which pirq is the first one in the group all
      pirqs in the MSI group except for the first one have the newly
      introduced PIRQ_MSI_GROUP flag set. This prevents calling
      PHYSDEVOP_unmap_pirq on them, since the unmap must be done with the
      first pirq in the group.
      Signed-off-by: NRoger Pau Monné <roger.pau@citrix.com>
      Signed-off-by: NDavid Vrabel <david.vrabel@citrix.com>
      Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
      4892c9b4
  2. 01 3月, 2014 7 次提交
  3. 24 2月, 2014 10 次提交
  4. 23 2月, 2014 9 次提交
  5. 22 2月, 2014 10 次提交