From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Stewart Hildebrand <stewart.hildebrand@amd.com>,
Oleksandr Andrushchenko <Oleksandr_Andrushchenko@epam.com>,
Jan Beulich <jbeulich@suse.com>, Paul Durrant <paul@xen.org>
Subject: Re: [PATCH v11 05/17] vpci: add hooks for PCI device assign/de-assign
Date: Thu, 21 Dec 2023 16:21:48 +0100 [thread overview]
Message-ID: <ZYRYDO2MPOIfx64b@macbook> (raw)
In-Reply-To: <20231202012556.2012281-6-volodymyr_babchuk@epam.com>
On Sat, Dec 02, 2023 at 01:27:03AM +0000, Volodymyr Babchuk wrote:
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
>
> When a PCI device gets assigned/de-assigned we need to
> initialize/de-initialize vPCI state for the device.
>
> Also, rename vpci_add_handlers() to vpci_assign_device() and
> vpci_remove_device() to vpci_deassign_device() to better reflect role
> of the functions.
>
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
> Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
> diff --git a/xen/include/xen/vpci.h b/xen/include/xen/vpci.h
> index d743d96a10..75cfb532ee 100644
> --- a/xen/include/xen/vpci.h
> +++ b/xen/include/xen/vpci.h
> @@ -25,11 +25,11 @@ typedef int vpci_register_init_t(struct pci_dev *dev);
> static vpci_register_init_t *const x##_entry \
> __used_section(".data.vpci." p) = x
>
> -/* Add vPCI handlers to device. */
> -int __must_check vpci_add_handlers(struct pci_dev *pdev);
> +/* Assign vPCI to device by adding handlers to device. */
Nit: the comment would likely benefit from removing the last device
before the full stop.
> +int __must_check vpci_assign_device(struct pci_dev *pdev);
Thanks, Roger.
next prev parent reply other threads:[~2023-12-21 15:22 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-02 1:27 [PATCH v11 00/17] PCI devices passthrough on Arm, part 3 Volodymyr Babchuk
2023-12-02 1:27 ` [PATCH v11 02/17] pci: introduce per-domain PCI rwlock Volodymyr Babchuk
2023-12-20 2:11 ` Stefano Stabellini
2023-12-20 11:04 ` Jan Beulich
2023-12-20 21:46 ` [PATCH v11.5 2/17] " Stewart Hildebrand
2023-12-02 1:27 ` [PATCH v11 01/17] pci: msi: pass pdev to pci_enable_msi() function Volodymyr Babchuk
2023-12-20 2:10 ` Stefano Stabellini
2023-12-20 8:49 ` Jan Beulich
2023-12-20 8:52 ` Jan Beulich
2023-12-20 21:46 ` [PATCH v11.5 1/17] " Stewart Hildebrand
2023-12-21 8:21 ` Jan Beulich
2023-12-02 1:27 ` [PATCH v11 05/17] vpci: add hooks for PCI device assign/de-assign Volodymyr Babchuk
2023-12-21 15:21 ` Roger Pau Monné [this message]
2024-01-02 17:59 ` Stewart Hildebrand
2023-12-22 8:52 ` Jan Beulich
2024-01-02 17:58 ` Stewart Hildebrand
2023-12-02 1:27 ` [PATCH v11 03/17] vpci: use per-domain PCI lock to protect vpci structure Volodymyr Babchuk
2023-12-21 14:05 ` Roger Pau Monné
2024-01-02 17:13 ` Stewart Hildebrand
2023-12-02 1:27 ` [PATCH v11 04/17] vpci: restrict unhandled read/write operations for guests Volodymyr Babchuk
2023-12-02 1:27 ` [PATCH v11 06/17] vpci/header: rework exit path in init_bars Volodymyr Babchuk
2023-12-04 8:30 ` Jan Beulich
2023-12-05 0:53 ` Volodymyr Babchuk
2023-12-05 7:42 ` Jan Beulich
2023-12-05 15:58 ` Stewart Hildebrand
2023-12-02 1:27 ` [PATCH v11 08/17] rangeset: add RANGESETF_no_print flag Volodymyr Babchuk
2023-12-02 1:27 ` [PATCH v11 09/17] rangeset: add rangeset_empty() function Volodymyr Babchuk
2023-12-04 8:36 ` Jan Beulich
2023-12-05 0:52 ` Volodymyr Babchuk
2023-12-21 15:45 ` Roger Pau Monné
2023-12-02 1:27 ` [PATCH v11 07/17] vpci/header: implement guest BAR register handlers Volodymyr Babchuk
2023-12-21 15:43 ` Roger Pau Monné
2024-01-02 21:09 ` Stewart Hildebrand
2023-12-02 1:27 ` [PATCH v11 10/17] vpci/header: handle p2m range sets per BAR Volodymyr Babchuk
2024-01-02 21:31 ` Stewart Hildebrand
2023-12-02 1:27 ` [PATCH v11 12/17] vpci/header: emulate PCI_COMMAND register for guests Volodymyr Babchuk
2023-12-05 2:45 ` Stewart Hildebrand
2023-12-02 1:27 ` [PATCH v11 11/17] vpci/header: program p2m with guest BAR view Volodymyr Babchuk
2023-12-21 15:59 ` Roger Pau Monné
2024-01-04 16:55 ` Stewart Hildebrand
2023-12-02 1:27 ` [PATCH v11 13/17] vpci: add initial support for virtual PCI bus topology Volodymyr Babchuk
2023-12-02 1:27 ` [PATCH v11 14/17] xen/arm: translate virtual PCI bus topology for guests Volodymyr Babchuk
2023-12-02 1:27 ` [PATCH v11 16/17] xen/arm: vpci: permit access to guest vpci space Volodymyr Babchuk
2023-12-04 8:29 ` Jan Beulich
2023-12-04 16:16 ` Stewart Hildebrand
2023-12-04 16:18 ` [PATCH v11.1 " Stewart Hildebrand
2023-12-05 2:55 ` Stewart Hildebrand
2023-12-05 2:57 ` [PATCH v11.2 " Stewart Hildebrand
2023-12-02 1:27 ` [PATCH v11 17/17] arm/vpci: honor access size when returning an error Volodymyr Babchuk
2023-12-02 1:27 ` [PATCH v11 15/17] xen/arm: account IO handlers for emulated PCI MSI-X Volodymyr Babchuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZYRYDO2MPOIfx64b@macbook \
--to=roger.pau@citrix.com \
--cc=Oleksandr_Andrushchenko@epam.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=jbeulich@suse.com \
--cc=paul@xen.org \
--cc=stewart.hildebrand@amd.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.