All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Mykyta Poturai <Mykyta_Poturai@epam.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH v1 3/6] vpci: rename and export vpci_bar_add_rangeset
Date: Mon, 28 Jul 2025 11:51:44 +0200	[thread overview]
Message-ID: <aIdIMBLXfGwlibj0@macbook.local> (raw)
In-Reply-To: <2c7999d1186738a9f57364f127b9fbbbd440ca78.1753450965.git.mykyta_poturai@epam.com>

On Fri, Jul 25, 2025 at 02:24:32PM +0000, Mykyta Poturai wrote:
> Export functions required for SR-IOV support.
> 
> Signed-off-by: Mykyta Poturai <mykyta_poturai@epam.com>
> ---
>  xen/drivers/vpci/header.c | 8 ++++----
>  xen/include/xen/vpci.h    | 2 ++
>  2 files changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/xen/drivers/vpci/header.c b/xen/drivers/vpci/header.c
> index f33fb27bde..f947f652cd 100644
> --- a/xen/drivers/vpci/header.c
> +++ b/xen/drivers/vpci/header.c
> @@ -733,8 +733,8 @@ static void cf_check rom_write(
>      }
>  }
>  
> -static int bar_add_rangeset(const struct pci_dev *pdev, struct vpci_bar *bar,
> -                            unsigned int i)
> +int vpci_bar_add_rangeset(const struct pci_dev *pdev, struct vpci_bar *bar,
> +                          unsigned int i)

Inline from my reply on the BAR register write series, it might be
less wasteful to allocate the ranges per-vCPU rather than per-device.
The only purpose of those rangesets is for BAR mapping, and such
mapping is performed exclusively for each device on a single vCPU.

With that there's probably no need to export this function, as it will
no longer exist.

Thanks, Roger.


  parent reply	other threads:[~2025-07-28  9:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-25 14:24 [PATCH v1 0/6] Implement SR-IOV support for PVH Mykyta Poturai
2025-07-25 14:24 ` [PATCH v1 3/6] vpci: rename and export vpci_bar_add_rangeset Mykyta Poturai
2025-07-25 14:54   ` Teddy Astie
2025-07-28  9:51   ` Roger Pau Monné [this message]
2025-07-25 14:24 ` [PATCH v1 2/6] vpci: rename and export vpci_guest_mem_bar_{read,write} Mykyta Poturai
2025-07-25 14:51   ` Teddy Astie
2025-07-25 14:24 ` [PATCH v1 1/6] vpci: rename and export vpci_modify_bars Mykyta Poturai
2025-07-25 14:42   ` Teddy Astie
2025-07-25 14:24 ` [PATCH v1 4/6] vpci: add SR-IOV support for PVH Dom0 Mykyta Poturai
2025-07-25 17:39   ` Teddy Astie
2026-02-26 10:06     ` Mykyta Poturai
2025-07-28 11:33   ` Roger Pau Monné
2026-03-04  8:43     ` Mykyta Poturai
2026-03-04 15:16       ` Roger Pau Monné
2026-03-04 15:34         ` Stewart Hildebrand
2025-07-25 14:24 ` [PATCH v1 6/6] vpci: add SR-IOV support for DomUs Mykyta Poturai
2025-07-28 15:10   ` Roger Pau Monné
2025-07-25 14:24 ` [PATCH v1 5/6] vpci: export vpci_init_capability_list() Mykyta Poturai
2025-07-28  9:04 ` [PATCH v1 0/6] Implement SR-IOV support for PVH Roger Pau Monné

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=aIdIMBLXfGwlibj0@macbook.local \
    --to=roger.pau@citrix.com \
    --cc=Mykyta_Poturai@epam.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.