From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gianni Tedesco Subject: [PATCH 0 of 6] xl PCI passthrough updates v3 Date: Mon, 2 Aug 2010 15:58:42 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Devel Cc: Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org my current libxl PCI-passthrough patch-queue rebased modulo what has alread been applied. Changes since v1: 1. Move pci FLR function in to libxl_pci.c - got it all in now. 2. Properly initialize pci device structs in new code 3. Incorporate suggestions from Stefano wrt. API and putting sysfs paths in macros. 4. Rename libxl_device_pci_list to libxl_device_pci_list_assigned due to change in parameters for consistency with the rest of libxl PCI API. 5. Also introduced a patch to centralise parsing of PCI BDF's and allow omission of the PCI domain as a short-hand for both config files and hot-plug command parameters. This also fixes an infinite loop in xl create if there is a parse error in the pci config. Changes since v2: 1. Use SYS_PCI_DEV macro in libxl_device_pci_reset 2. Fix error in libxl_device_pci_list_assigned() as pointed out by Ian Campbell 3. Get rid of scan_sys_pcidir() and implement inside libxl_device_pci_list_assignable() since we're not supporting pcistub driver now 4. New patch: prevent attempting removal of non-attached device 5. New patch: implement pci attach to explicitly defined virtual PCI slot 6. New patch: corresponding to qemu-dm patch, detect pci insertion errors which are otherwise undetectable and cause a hang 7. New patch: implement PCI passthrough for multi-function