* [PATCH] docs/devel: Correct uefi-vars-x64 device name
@ 2025-09-22  6:57 nanliu
  2025-09-22  7:38 ` Thomas Huth
  2025-09-23 11:57 ` Peter Maydell
  0 siblings, 2 replies; 8+ messages in thread
From: nanliu @ 2025-09-22  6:57 UTC (permalink / raw)
  To: qemu-devel; +Cc: kraxel, nanliu
The documentation for UEFI variable storage in uefi-vars.rst
incorrectly listed the device name as `uefi-vars-x86`.
The correct device name as implemented in the source code is
`uefi-vars-x64`.
This commit updates the documentation to use the correct name,
aligning it with the implementation.
Signed-off-by: Nana Liu <nanliu@redhat.com>
---
 docs/devel/uefi-vars.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/devel/uefi-vars.rst b/docs/devel/uefi-vars.rst
index 0151a26a0a..b4013b5d12 100644
--- a/docs/devel/uefi-vars.rst
+++ b/docs/devel/uefi-vars.rst
@@ -34,7 +34,7 @@ configures the shared buffer location and size, and traps to the host
 to process the requests.
 
 The ``uefi-vars`` device implements the UEFI virtual device.  It comes
-in ``uefi-vars-x86`` and ``uefi-vars-sysbus`` flavours.  The device
+in ``uefi-vars-x64`` and ``uefi-vars-sysbus`` flavours.  The device
 reimplements the handlers needed, specifically
 ``EfiSmmVariableProtocol`` and ``VarCheckPolicyLibMmiHandler``.  It
 also consumes events (``EfiEndOfDxeEventGroup``,
@@ -57,7 +57,7 @@ usage on x86_64
 .. code::
 
    qemu-system-x86_64 \
-      -device uefi-vars-x86,jsonfile=/path/to/vars.json
+      -device uefi-vars-x64,jsonfile=/path/to/vars.json
 
 usage on aarch64
 ----------------
-- 
2.50.1
^ permalink raw reply related	[flat|nested] 8+ messages in thread
* Re: [PATCH] docs/devel: Correct uefi-vars-x64 device name
  2025-09-22  6:57 [PATCH] docs/devel: Correct uefi-vars-x64 device name nanliu
@ 2025-09-22  7:38 ` Thomas Huth
  2025-09-23 11:57 ` Peter Maydell
  1 sibling, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2025-09-22  7:38 UTC (permalink / raw)
  To: nanliu, qemu-devel; +Cc: kraxel, QEMU Trivial
On 22/09/2025 08.57, nanliu wrote:
> The documentation for UEFI variable storage in uefi-vars.rst
> incorrectly listed the device name as `uefi-vars-x86`.
> 
> The correct device name as implemented in the source code is
> `uefi-vars-x64`.
> 
> This commit updates the documentation to use the correct name,
> aligning it with the implementation.
> 
> Signed-off-by: Nana Liu <nanliu@redhat.com>
> ---
>   docs/devel/uefi-vars.rst | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/docs/devel/uefi-vars.rst b/docs/devel/uefi-vars.rst
> index 0151a26a0a..b4013b5d12 100644
> --- a/docs/devel/uefi-vars.rst
> +++ b/docs/devel/uefi-vars.rst
> @@ -34,7 +34,7 @@ configures the shared buffer location and size, and traps to the host
>   to process the requests.
>   
>   The ``uefi-vars`` device implements the UEFI virtual device.  It comes
> -in ``uefi-vars-x86`` and ``uefi-vars-sysbus`` flavours.  The device
> +in ``uefi-vars-x64`` and ``uefi-vars-sysbus`` flavours.  The device
>   reimplements the handlers needed, specifically
>   ``EfiSmmVariableProtocol`` and ``VarCheckPolicyLibMmiHandler``.  It
>   also consumes events (``EfiEndOfDxeEventGroup``,
> @@ -57,7 +57,7 @@ usage on x86_64
>   .. code::
>   
>      qemu-system-x86_64 \
> -      -device uefi-vars-x86,jsonfile=/path/to/vars.json
> +      -device uefi-vars-x64,jsonfile=/path/to/vars.json
>   
>   usage on aarch64
>   ----------------
Reviewed-by: Thomas Huth <thuth@redhat.com>
^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH] docs/devel: Correct uefi-vars-x64 device name
  2025-09-22  6:57 [PATCH] docs/devel: Correct uefi-vars-x64 device name nanliu
  2025-09-22  7:38 ` Thomas Huth
@ 2025-09-23 11:57 ` Peter Maydell
  2025-09-27  8:48   ` Michael Tokarev
  1 sibling, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2025-09-23 11:57 UTC (permalink / raw)
  To: nanliu; +Cc: qemu-devel, kraxel
On Mon, 22 Sept 2025 at 07:59, nanliu <nanliu@redhat.com> wrote:
>
> The documentation for UEFI variable storage in uefi-vars.rst
> incorrectly listed the device name as `uefi-vars-x86`.
>
> The correct device name as implemented in the source code is
> `uefi-vars-x64`.
>
> This commit updates the documentation to use the correct name,
> aligning it with the implementation.
>
> Signed-off-by: Nana Liu <nanliu@redhat.com>
> ---
We could probably also correct the bit of the text in this file
that currently reads "depend on SMM emulation on x64" to either
say "x86" or "x86_64". (Nowhere else in our docs calls
the 64-bit x86 platform "x64".)
thanks
-- PMM
^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH] docs/devel: Correct uefi-vars-x64 device name
  2025-09-23 11:57 ` Peter Maydell
@ 2025-09-27  8:48   ` Michael Tokarev
  2025-09-27 11:41     ` Peter Maydell
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Tokarev @ 2025-09-27  8:48 UTC (permalink / raw)
  To: Peter Maydell, nanliu; +Cc: qemu-devel, kraxel, qemu-trivial@nongnu.org
On 23.09.2025 14:57, Peter Maydell wrote:
> We could probably also correct the bit of the text in this file
> that currently reads "depend on SMM emulation on x64" to either
> say "x86" or "x86_64".
This one will be a bit more than trivial :)  I for one don't know
if this is related to any x86 or to x86_64 only.
I'm applying the suggested correction to the trivial-patches tree.
Thanks,
/mjt
^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH] docs/devel: Correct uefi-vars-x64 device name
  2025-09-27  8:48   ` Michael Tokarev
@ 2025-09-27 11:41     ` Peter Maydell
  2025-10-30  5:46       ` NaNa Liu
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2025-09-27 11:41 UTC (permalink / raw)
  To: Michael Tokarev; +Cc: nanliu, qemu-devel, kraxel, qemu-trivial@nongnu.org
On Sat, 27 Sept 2025 at 09:48, Michael Tokarev <mjt@tls.msk.ru> wrote:
>
> On 23.09.2025 14:57, Peter Maydell wrote:
>
> > We could probably also correct the bit of the text in this file
> > that currently reads "depend on SMM emulation on x64" to either
> > say "x86" or "x86_64".
>
> This one will be a bit more than trivial :)  I for one don't know
> if this is related to any x86 or to x86_64 only.
I just mean exactly and specifically the one place in this
file which says "x64" and ought to say either "x86" or
"x86_64". To me a single word change is pretty trivial,
especially since nowhere else in our docs do we use "x64".
-- PMM
^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH] docs/devel: Correct uefi-vars-x64 device name
  2025-09-27 11:41     ` Peter Maydell
@ 2025-10-30  5:46       ` NaNa Liu
  2025-10-30 10:34         ` Peter Maydell
  0 siblings, 1 reply; 8+ messages in thread
From: NaNa Liu @ 2025-10-30  5:46 UTC (permalink / raw)
  To: Peter Maydell
  Cc: Michael Tokarev, qemu-devel, kraxel, qemu-trivial@nongnu.org
[-- Attachment #1: Type: text/plain, Size: 957 bytes --]
On Sat, Sep 27, 2025 at 7:41 PM Peter Maydell <peter.maydell@linaro.org>
wrote:
> On Sat, 27 Sept 2025 at 09:48, Michael Tokarev <mjt@tls.msk.ru> wrote:
> >
> > On 23.09.2025 14:57, Peter Maydell wrote:
> >
> > > We could probably also correct the bit of the text in this file
> > > that currently reads "depend on SMM emulation on x64" to either
> > > say "x86" or "x86_64".
> >
> > This one will be a bit more than trivial :)  I for one don't know
> > if this is related to any x86 or to x86_64 only.
>
> I just mean exactly and specifically the one place in this
> file which says "x64" and ought to say either "x86" or
> "x86_64". To me a single word change is pretty trivial,
> especially since nowhere else in our docs do we use "x64".
>
> This is to ensure consistency between the documentation and the API code
(var-service-api.h) parameters and json file, which use "uefi-vars-x64".
Thanks.
Nana
> -- PMM
>
>
[-- Attachment #2: Type: text/html, Size: 1713 bytes --]
^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH] docs/devel: Correct uefi-vars-x64 device name
  2025-10-30  5:46       ` NaNa Liu
@ 2025-10-30 10:34         ` Peter Maydell
  2025-10-30 12:56           ` Gerd Hoffmann
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2025-10-30 10:34 UTC (permalink / raw)
  To: NaNa Liu; +Cc: Michael Tokarev, qemu-devel, kraxel, qemu-trivial@nongnu.org
On Thu, 30 Oct 2025 at 05:47, NaNa Liu <nanliu@redhat.com> wrote:
>
>
>
> On Sat, Sep 27, 2025 at 7:41 PM Peter Maydell <peter.maydell@linaro.org> wrote:
>>
>> On Sat, 27 Sept 2025 at 09:48, Michael Tokarev <mjt@tls.msk.ru> wrote:
>> >
>> > On 23.09.2025 14:57, Peter Maydell wrote:
>> >
>> > > We could probably also correct the bit of the text in this file
>> > > that currently reads "depend on SMM emulation on x64" to either
>> > > say "x86" or "x86_64".
>> >
>> > This one will be a bit more than trivial :)  I for one don't know
>> > if this is related to any x86 or to x86_64 only.
>>
>> I just mean exactly and specifically the one place in this
>> file which says "x64" and ought to say either "x86" or
>> "x86_64". To me a single word change is pretty trivial,
>> especially since nowhere else in our docs do we use "x64".
>>
> This is to ensure consistency between the documentation and the API code (var-service-api.h) parameters and json file, which use "uefi-vars-x64".
The device name being "uefi-vars-x64" is unfortunate, but we
can't change that. We should be consistent about how we talk
about the architecture name in general when our hands are not
tied by compatibility problems.
-- PMM
^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: [PATCH] docs/devel: Correct uefi-vars-x64 device name
  2025-10-30 10:34         ` Peter Maydell
@ 2025-10-30 12:56           ` Gerd Hoffmann
  0 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2025-10-30 12:56 UTC (permalink / raw)
  To: Peter Maydell
  Cc: NaNa Liu, Michael Tokarev, qemu-devel, qemu-trivial@nongnu.org
On Thu, Oct 30, 2025 at 10:34:24AM +0000, Peter Maydell wrote:
> On Thu, 30 Oct 2025 at 05:47, NaNa Liu <nanliu@redhat.com> wrote:
> 
> The device name being "uefi-vars-x64" is unfortunate, but we
> can't change that. We should be consistent about how we talk
> about the architecture name in general when our hands are not
> tied by compatibility problems.
Well, UEFI has the habit of having their own architecture
names, which is where this comes from ...
  i386 -> ia32
  x86_64 -> x64
  aarch64 -> aa64
Luckily they stopped doing so, new architectures like riscv
and loongarch kept their name in the UEFI universe, so going
forward this confusion should at least not become worse than
it already is.
take care,
  Gerd
^ permalink raw reply	[flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-10-30 12:58 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-22  6:57 [PATCH] docs/devel: Correct uefi-vars-x64 device name nanliu
2025-09-22  7:38 ` Thomas Huth
2025-09-23 11:57 ` Peter Maydell
2025-09-27  8:48   ` Michael Tokarev
2025-09-27 11:41     ` Peter Maydell
2025-10-30  5:46       ` NaNa Liu
2025-10-30 10:34         ` Peter Maydell
2025-10-30 12:56           ` Gerd Hoffmann
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).