This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] [PATCH 4/5] pciback: deferred handling of pci configuration

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 4/5] pciback: deferred handling of pci configuration space accesses
From: Ryan <hap9@xxxxxxxxxxxxxx>
Date: Tue, 11 Apr 2006 14:32:20 -0400
Delivery-date: Tue, 11 Apr 2006 11:34:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Some of the linux PCI functions called by the virtual configuration
space handlers (both the ones added by this patch and the ones currently
in the xen-unstable tree) were making calls into ACPI code which uses
semaphores. Since semaphores can not be locked while atomic (because
they can sleep), I changed the way the PCI backend responds to requests
from the frontend. Previously, the virtual configuration space handlers
ran in the same context as the event channel interrupt handler (which
was often atomic if not always atomic). Now the interrupt handlers
schedules a callback function (a bottom half) in the system work queue
(keventd) that will get called in process context at a slightly later
time. This allows the handlers in the virtual configuration space to
call any core PCI function regardless of whether it will sleep or not.

Signed-off-by: Ryan Wilson <hap9@xxxxxxxxxxxxxx>

Attachment: pciback_op_workqueue.patch
Description: Text Data

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 4/5] pciback: deferred handling of pci configuration space accesses, Ryan <=