From: Jan Beulich <jbeulich@suse.com>
To: Jiqian Chen <Jiqian.Chen@amd.com>
Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org,
"Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>,
"Juergen Gross" <jgross@suse.com>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Oleksandr Tyshchenko" <oleksandr_tyshchenko@epam.com>
Subject: Re: [PATCH v2] xen: Remove dependency between pciback and privcmd
Date: Thu, 10 Oct 2024 10:17:42 +0200 [thread overview]
Message-ID: <e6d4912a-d6d0-41f8-a3e6-fe3eec6c6807@suse.com> (raw)
In-Reply-To: <20241010075848.1002891-1-Jiqian.Chen@amd.com>
On 10.10.2024 09:58, Jiqian Chen wrote:
> --- a/drivers/xen/acpi.c
> +++ b/drivers/xen/acpi.c
> @@ -125,3 +125,20 @@ int xen_acpi_get_gsi_info(struct pci_dev *dev,
> return 0;
> }
> EXPORT_SYMBOL_GPL(xen_acpi_get_gsi_info);
> +
> +get_gsi_from_sbdf_t get_gsi_from_sbdf = NULL;
> +
> +void xen_acpi_register_get_gsi_func(get_gsi_from_sbdf_t func)
> +{
> + get_gsi_from_sbdf = func;
> +}
> +EXPORT_SYMBOL_GPL(xen_acpi_register_get_gsi_func);
> +
> +int xen_acpi_get_gsi_from_sbdf(u32 sbdf)
> +{
> + if (get_gsi_from_sbdf)
> + return get_gsi_from_sbdf(sbdf);
> +
> + return -EINVAL;
Perhaps better -EOPNOTSUPP?
> +}
> +EXPORT_SYMBOL_GPL(xen_acpi_get_gsi_from_sbdf);
> \ No newline at end of file
Can you please take care of this as well while touching the file? Or
maybe you are doing so, but the diff doesn't show it properly?
> @@ -484,6 +483,7 @@ static int pcistub_init_device(struct pcistub_device *psdev)
> if (err)
> goto config_release;
> psdev->gsi = gsi;
> + xen_acpi_register_get_gsi_func(pcistub_get_gsi_from_sbdf);
> }
> #endif
Why here rather than directly in xen_pcibk_init()? And why no change to
xen_pcibk_cleanup() to remove the hook again on unload? Which will then
raise the question of possible race conditions.
Jan
next prev parent reply other threads:[~2024-10-10 8:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-10 7:58 Jiqian Chen
2024-10-10 8:17 ` Jan Beulich [this message]
2024-10-10 8:41 ` Chen, Jiqian
2024-10-10 8:39 ` Jürgen Groß
2024-10-10 8:43 ` Chen, Jiqian
2024-10-10 10:37 ` Jürgen Groß
2024-10-10 19:38 ` Stefano Stabellini
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=e6d4912a-d6d0-41f8-a3e6-fe3eec6c6807@suse.com \
--to=jbeulich@suse.com \
--cc=Jiqian.Chen@amd.com \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marmarek@invisiblethingslab.com \
--cc=oleksandr_tyshchenko@epam.com \
--cc=sstabellini@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®