From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933238AbcIVIq2 (ORCPT ); Thu, 22 Sep 2016 04:46:28 -0400 Received: from mx2.suse.de ([195.135.220.15]:58649 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756305AbcIVIpr (ORCPT ); Thu, 22 Sep 2016 04:45:47 -0400 From: Juergen Gross To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Cc: boris.ostrovsky@oracle.com, david.vrabel@citrix.com, Juergen Gross Subject: [PATCH v3 0/3] xen/pciback: support driver_override Date: Thu, 22 Sep 2016 10:45:38 +0200 Message-Id: <1474533941-6976-1-git-send-email-jgross@suse.com> X-Mailer: git-send-email 2.6.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Support the driver_override scheme introduced with commit 782a985d7af2 ("PCI: Introduce new device binding path using pci_dev.driver_override") Today you'd need something like: echo 0000:07:10.0 > /sys/bus/pci/devices/0000\:07\:10.0/driver/unbind echo 0000:07:10.0 > /sys/bus/pci/drivers/pciback/new_slot echo 0000:07:10.0 > /sys/bus/pci/drivers_probe while with the patch you can use the same mechanism as for similar drivers like pci-stub and vfio-pci: echo pciback > /sys/bus/pci/devices/0000\:07\:10.0/driver_override echo 0000:07:10.0 > /sys/bus/pci/devices/0000\:07\:10.0/driver/unbind echo 0000:07:10.0 > /sys/bus/pci/drivers_probe Changes in V3: - Added new patches 1 and 2 to do some cleanup and preparatory work. - patch 3: Add an assigned device to the slot list - patch 3: Move override check up in order not to miss the PCI_HEADER_TYPE check. Changes in V2: - Removed now unused label. *** BLURB HERE *** Juergen Gross (3): xen/pciback: simplify pcistub device handling xen/pciback: avoid multiple entries in slot list xen/pciback: support driver_override drivers/xen/xen-pciback/pci_stub.c | 125 +++++++++++++++++++++++++------------ 1 file changed, 85 insertions(+), 40 deletions(-) -- 2.6.6