[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v8 11/13] vpci: add initial support for virtual PCI bus topology
- To: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Fri, 21 Jul 2023 15:53:31 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9Bki3pXulailNmGES+dJJCo9+B1TZeL/qAv6gQDrOuw=; b=LPa2XpK7+POOisjmcXHGCmL6uMS4R4bVrMvC2RvmciJUpLZHFnyTuHvwtxLGrg5sUb/Ix+RXD7nO5OXtVf5RTl2CAFK1xz+iP2qNYT955e+9eoHE49g1SYTlv1raO4Y3h4ZyiG9PDFe2FJuLU7diveITh9tbeRFz8vZrCvCBS82gzfmxpjtEVD7zSRxTtIUrchUWA3uO5bAEArw6IOjRZkwzEs5v9wQCQcb2ZL9LJv3LVxy6Cehr1jxSzwm8xtoRYI9EfOw2/8yeqkdQvpsFaixQ8vMwc1dyRzpux8OlwyfMBULTt5EWTHU7aslpXRKbOagJAhOWxpY0cWCiTnPOgw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ilVHyZzi7CIYKvSjMxrvX3KKRLzfo+0f3hvXkR14PXtXd/Ig1ZREMYxFErSKysy8FH4AAZnV/wx06uB4A4WfevempYY7SFeDjYmB+HVH3/K7FumRShZ3jPC5CdAPLArIyWcXzJYNqLZ6m2HPgYWIUKQOFXusE1VD7c1jJPcWyLONCj1/6FnIO3Bmvr3i4/8IhoccE6W38N0mdmEM9d2NsedIJrTBF6KkWoo17hFqOyXn2TLXHtJ05gwbOVSA/l8XfgTW4UVFcE9qH0JmRD2N/dxNwXudLuX2J02dF+a4dtrCh5EsF1ftXN0v1hyw4E9Bjhs+BzbgY5wwvO05h5YyMg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
- Delivery-date: Fri, 21 Jul 2023 13:54:12 +0000
- Ironport-data: A9a23:JeTDSKIJcCrw0cnCFE+RFZQlxSXFcZb7ZxGr2PjKsXjdYENS0GAOn zFKW23TM63cN2vxeYonYN+0oEgB6J7dxoBnTQRlqX01Q3x08seUXt7xwmUcnc+xBpaaEB84t ZV2hv3odp1coqr0/0/1WlTZhSAgk/rOHvykU7Ss1hlZHWdMUD0mhQ9oh9k3i4tphcnRKw6Ws Jb5rta31GWNglaYCUpKrfrawP9TlK6q4mhA4QZnPakjUGL2zBH5MrpOfcldEFOgKmVkNrbSb /rOyri/4lTY838FYj9yuu+mGqGiaue60Tmm0hK6aYD76vRxjnVaPpIAHOgdcS9qZwChxLid/ jnvWauYEm/FNoWU8AgUvoIx/ytWZcWq85efSZSzXFD6I+QrvBIAzt03ZHzaM7H09c50XkFp6 qQhEwo9RRaZtrjm3ZSYcOxz05FLwMnDZOvzu1lG5BSBUbMMZ8CGRK/Ho9hFwD03m8ZCW+7EY NYUYiZuaxKGZABTPlAQC9Q1m+LAanvXKmUE7g7K4/VrpTSJpOBy+OGF3N79YNuFSN8Thk+Fj mnH4374ElcRM9n3JT+tqyv92LaSzX+kMG4UPJqhscNw3WS//VQKMV4dDGS7uvyQiUHrDrqzL GRRoELCt5MaykuvSdXsWgyil1SNtBUcRtl4HvUz7UeGza+8yxaUAC0IQyBMbPQitdQqXno62 1mRhdTrCDdz9rqPRhq10bOZrii7PyQPGkYEaTUZVgsO49Tlo4YbgwrGS5BoF6vdszHuMTT5w jTPpi5ugbwW1ZIPz//joQqBhC+wrJ/USAJz/h/QQm+u8gJ+YsiiepCs7l/Yq/1HKe51U2W8g ZTNoODGhMhmMH1HvHLlrDkldF1x28u4DQ==
- Ironport-hdrordr: A9a23:CGxTeq8kw2YCK008mWNuk+Gydr1zdoMgy1knxilNoENuH/Bwxv rFoB1E73TJYVYqN03IV+rwXZVoZUmsjaKdgLNhRItKOTOLhILGFuFfBOfZsl7d8mjFh5VgPM RbAtRD4b/LfD9HZK/BiWHXcurIguP3lpxA7d2uskuFJjsaD52IgT0JaDpyRSZNNXN77NcCZe 2hz/sCgwDlVWUcb8y9CHVAd+/fp+fTnJajTQ8aCwUh4AyuiyrtzLLhCRCX0joXTjsKmN4ZgC P4uj28wp/mn+Cwyxfa2WOWx5NKmOH5wt8GKN2QhtMTIjDMjB/tQIh6QbWNsB08venqwlc3l9 vnpQsmIq1ImjvsV1DwhSGo9xjr0T4o5XOn4ViEgUH7qci8YD4hEcJOia9QbxOcsiMbzZhB+Z MO+1jcm4tcDBvGkii4z9/UVytynk7xhXY5i+Ycg1FWTINbQr5Mqo40+l9TDf47bVTHwbFiNN MrINDX5f5Qf1/fR3fFvlN3yNjpZXg3FgfueDlxhuWllxxt2FxpxUoRw8IS2l0a8ogmdpVC7+ PYdox1ibBnVKYtHO1ALdZEZfHyJn3GQBrKPm7XC0/gDrs7N3XErIOyyKkp5dutZIcDwPIJ6d j8uWtjxC8Pkn/VeI2zNMUhyGGPfIz9Z0Wh9ihm3ek2hlWmL4CbcxFqSzgV4ridSrskc4jmss 2ISeNr6s/YXBTT8LlyrnPDsrlpWAwjuZ4uy6IGcmPLhP73AavXkcGeWMrvBdPWYEYZsyXEcz E+YAQ=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu, Jul 20, 2023 at 12:32:33AM +0000, Volodymyr Babchuk wrote:
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
> diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h
> index 80dd150bbf..478bd21f3e 100644
> --- a/xen/include/xen/sched.h
> +++ b/xen/include/xen/sched.h
> @@ -461,6 +461,14 @@ struct domain
> #ifdef CONFIG_HAS_PCI
> struct list_head pdev_list;
> rwlock_t pci_lock;
> +#ifdef CONFIG_HAS_VPCI_GUEST_SUPPORT
> + /*
> + * The bitmap which shows which device numbers are already used by the
> + * virtual PCI bus topology and is used to assign a unique SBDF to the
> + * next passed through virtual PCI device.
> + */
> + DECLARE_BITMAP(vpci_dev_assigned_map, VPCI_MAX_VIRT_DEV);
> +#endif
I think it would be helpful to state that vpci_dev_assigned_map is
protected by pci_lock (as I understand it's the intention).
Thanks, Roger.
|