Skip to contentSkip to conversation

docs/devel: Correct uefi-vars-x64 device name

PATCH In review nanliu 5 participants 8 messages Sep 22, 2025 – Oct 30, 2025

lore
Share & tools
lore

nanliu

author
#0 lore raw

PATCH 1/1 docs/devel: Correct uefi-vars-x64 device name

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.

---
 docs/devel/uefi-vars.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/uefi-vars.rst +2 -2
index 0151a26a0a..b4013b5d12 100644
@@ -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
 ----------------
Signature · 1 line
2.50.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 28 lines · 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.

---
  docs/devel/uefi-vars.rst | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/uefi-vars.rst +1 -1
index 0151a26a0a..b4013b5d12 100644
@@ -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``,

docs/devel/uefi-vars.rst usage on x86_64 · line 63

Quoted 8 lines
docs/devel/uefi-vars.rst +1 -1
@@ -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 lore raw
In reply to nanliu
Quoted 4 lines · nanliu

The documentation for UEFI variable storage in uefi-vars.rst incorrectly listed the device name as uefi-vars-x86.

Quoted 8 lines

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.

---

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

#3 lore raw
Quoted 3 lines · Peter Maydell

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

#4 lore raw
Quoted 9 lines · Michael Tokarev
Quoted 3 lines · Peter Maydell

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

author
#5 lore raw
Quoted 11 lines · Peter Maydell
Quoted 9 lines · Michael Tokarev
Quoted 3 lines · Peter Maydell

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.

Quoted 6 lines

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

Quoted 3 lines

-- PMM

#6 lore raw
Quoted 16 lines · NaNa Liu
Quoted 12 lines · Peter Maydell
Quoted 9 lines · Michael Tokarev
Quoted 3 lines · Peter Maydell

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.

Quoted 6 lines
Quoted 5 lines

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

#7 lore raw
Quoted 6 lines · Peter Maydell

On Thu, 30 Oct 2025 at 05:47, NaNa Liu <[email protected]> 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