From patchwork Tue Dec 8 19:30:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Durrant X-Patchwork-Id: 11959325 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ABC9EC4167B for ; Tue, 8 Dec 2020 19:31:06 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 63B7923BAB for ; Tue, 8 Dec 2020 19:31:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 63B7923BAB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.47683.84379 (Exim 4.92) (envelope-from ) id 1kmih4-0000dY-VI; Tue, 08 Dec 2020 19:30:38 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 47683.84379; Tue, 08 Dec 2020 19:30:38 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kmih4-0000dR-SD; Tue, 08 Dec 2020 19:30:38 +0000 Received: by outflank-mailman (input) for mailman id 47683; Tue, 08 Dec 2020 19:30:36 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kmih2-0000dM-OH for xen-devel@lists.xenproject.org; Tue, 08 Dec 2020 19:30:36 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kmih2-0007L3-Bz; Tue, 08 Dec 2020 19:30:36 +0000 Received: from host86-183-162-145.range86-183.btcentralplus.com ([86.183.162.145] helo=desktop.home) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmih2-0001p0-3M; Tue, 08 Dec 2020 19:30:36 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date: Subject:Cc:To:From; bh=wPo+BLoCp0K6ZlG+7eNeHGnXEd8/37lHgn7nyvvMsSo=; b=fKUBug AzBY4OkZXK8KB75RXOQaTxJp3noFFYIXqE9qOY5fOi9QgTo509xFvI+/9/yF/FwtFyXZ2MT4lsrCF oYulmNuFht4qDrDpZb97d9/j6yyECWePTxXE8ZOFb+2azLTLnSvoXfkNRcQAwU9cBNAZE3pLPxfOL djHyTDfOWQk=; From: Paul Durrant To: xen-devel@lists.xenproject.org Cc: Paul Durrant Subject: [PATCH v6 00/25] xl / libxl: named PCI pass-through devices Date: Tue, 8 Dec 2020 19:30:08 +0000 Message-Id: <20201208193033.11306-1-paul@xen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 From: Paul Durrant Paul Durrant (25): libxl: s/pcidev/pci and remove DEFINE_DEVICE_TYPE_STRUCT_X xl: s/pcidev/pci where possible libxl: make libxl__device_list() work correctly for LIBXL__DEVICE_KIND_PCI... libxl: Make sure devices added by pci-attach are reflected in the config libxl: add/recover 'rdm_policy' to/from PCI backend in xenstore libxl: s/detatched/detached in libxl_pci.c libxl: remove extraneous arguments to do_pci_remove() in libxl_pci.c libxl: stop using aodev->device_config in libxl__device_pci_add()... libxl: generalise 'driver_path' xenstore access functions in libxl_pci.c libxl: remove unnecessary check from libxl__device_pci_add() libxl: remove get_all_assigned_devices() from libxl_pci.c libxl: make sure callers of libxl_device_pci_list() free the list after use libxl: add libxl_device_pci_assignable_list_free()... libxl: use COMPARE_PCI() macro is_pci_in_array()... docs/man: extract documentation of PCI_SPEC_STRING from the xl.cfg manpage... docs/man: improve documentation of PCI_SPEC_STRING... docs/man: fix xl(1) documentation for 'pci' operations libxl: introduce 'libxl_pci_bdf' in the idl... libxlu: introduce xlu_pci_parse_spec_string() docs/man: modify xl(1) in preparation for naming of assignable devices libxl: convert internal functions in libxl_pci.c... libxl: introduce libxl_pci_bdf_assignable_add/remove/list/list_free(), ... xl: support naming of assignable devices docs/man: modify xl-pci-configuration(5) to add 'name' field to PCI_SPEC_STRING libxl / libxlu: support 'xl pci-attach/detach' by name docs/man/xl-pci-configuration.5.pod | 218 ++++++ docs/man/xl.1.pod.in | 39 +- docs/man/xl.cfg.5.pod.in | 68 +- tools/golang/xenlight/helpers.gen.go | 77 +- tools/golang/xenlight/types.gen.go | 8 +- tools/include/libxl.h | 68 +- tools/include/libxlutil.h | 8 +- tools/libs/light/libxl_9pfs.c | 2 +- tools/libs/light/libxl_console.c | 2 +- tools/libs/light/libxl_create.c | 4 +- tools/libs/light/libxl_device.c | 66 +- tools/libs/light/libxl_disk.c | 2 +- tools/libs/light/libxl_dm.c | 8 +- tools/libs/light/libxl_internal.h | 39 +- tools/libs/light/libxl_nic.c | 2 +- tools/libs/light/libxl_pci.c | 1079 ++++++++++++++------------ tools/libs/light/libxl_pvcalls.c | 2 +- tools/libs/light/libxl_types.idl | 17 +- tools/libs/light/libxl_usb.c | 4 +- tools/libs/light/libxl_vdispl.c | 2 +- tools/libs/light/libxl_vkb.c | 2 +- tools/libs/light/libxl_vsnd.c | 2 +- tools/libs/light/libxl_vtpm.c | 2 +- tools/libs/util/libxlu_pci.c | 359 +++++---- tools/ocaml/libs/xl/xenlight_stubs.c | 3 +- tools/xl/xl_cmdtable.c | 16 +- tools/xl/xl_parse.c | 24 +- tools/xl/xl_pci.c | 163 ++-- tools/xl/xl_sxp.c | 4 +- 29 files changed, 1373 insertions(+), 917 deletions(-) create mode 100644 docs/man/xl-pci-configuration.5.pod