From: "Michael S. Tsirkin" <mst@redhat.com>
To: Ani Sinha <ani@anisinha.ca>
Cc: imammedo@redhat.com, qemu-devel@nongnu.org
Subject: Re: [PATCH-for-6.2] docs: add a word of caution on x-native-hotplug property for pcie-root-ports
Date: Thu, 25 Nov 2021 15:49:50 -0500 [thread overview]
Message-ID: <20211125154927-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20211125120629.187014-1-ani@anisinha.ca>
On Thu, Nov 25, 2021 at 05:36:29PM +0530, Ani Sinha wrote:
> x-native-hotplug property, when used in order to disable HPC bit on the PCIE
> root ports, can lead to unexpected results from the guest operating system.
> Users are strongly advised not to touch this property in order to manipulte the
> HPC bit. Add a word of caution in the pcie.txt doc file to document this.
>
> Signed-off-by: Ani Sinha <ani@anisinha.ca>
Do we want to generally document this for all "x-" options?
> ---
> docs/pcie.txt | 17 ++++++++++++++++-
> 1 file changed, 16 insertions(+), 1 deletion(-)
>
> diff --git a/docs/pcie.txt b/docs/pcie.txt
> index 89e3502075..e1f99f725f 100644
> --- a/docs/pcie.txt
> +++ b/docs/pcie.txt
> @@ -262,11 +262,26 @@ PCI Express Root Ports (and PCI Express Downstream Ports).
> Port, which may come handy for hot-plugging another device.
>
>
> -5.3 Hot-plug example:
> +5.2 Hot-plug example:
> Using HMP: (add -monitor stdio to QEMU command line)
> device_add <dev>,id=<id>,bus=<PCI Express Root Port Id/PCI Express Downstream Port Id/PCI-PCI Bridge Id/>
>
>
> +5.3 A word of caution using hotplug on PCI Express Root Ports:
> +Starting Qemu version 6.2, PCI Express Root ports have a property
> +"x-native-hotplug" ("native-hotplug" for Qemu version 6.1), that can be used to
> +enable or disable hotplug on that port. For example:
> +
> +-device pcie-root-port,x-native-hotplug=off,... etc.
> +
> +The "x-" prefix indicates that this property is highly experimental and can
> +lead to unexpected results from the guest operating system if users try to use
> +it to alter the native hotplug on the port. It also means that the property
> +name and its behavior is liable to change in the future and is not expected to
> +be stable across Qemu versions. Therefore, end users are advised not to change
> +the value of this option from its default set value or use it in the Qemu
> +command line.
> +
> 6. Device assignment
> ====================
> Host devices are mostly PCI Express and should be plugged only into
> --
> 2.25.1
next prev parent reply other threads:[~2021-11-25 20:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 12:06 [PATCH-for-6.2] docs: add a word of caution on x-native-hotplug property for pcie-root-ports Ani Sinha
2021-11-25 20:49 ` Michael S. Tsirkin [this message]
2021-11-26 5:42 ` Ani Sinha
2021-11-26 19:38 ` Igor Mammedov
2021-12-02 5:21 ` Ani Sinha
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=20211125154927-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=ani@anisinha.ca \
--cc=imammedo@redhat.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).