Skip to contentSkip to conversation

docs/system: riscv: Update description of CPU

PATCH Applied Yu Li 3 participants 4 messages Feb 8, 2022 – Mar 3, 2022 RISC-V

lore
Share & tools
lore

Yu Li

author
#0 lore raw

PATCH 1/1 docs/system: riscv: Update description of CPU

Since the hypervisor extension been non experimental and enabled for default CPU, the previous command is no longer available and the option x-h=true or h=true is also no longer required.

---
 docs/system/riscv/virt.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
docs/system/riscv/virt.rst +3 -3
index fa016584bf..08ce3c4177 100644
@@ -23,9 +23,9 @@ The ``virt`` machine supports the following devices:
 * 1 generic PCIe host bridge
 * The fw_cfg device that allows a guest to obtain data from QEMU
 
-Note that the default CPU is a generic RV32GC/RV64GC. Optional extensions
-can be enabled via command line parameters, e.g.: ``-cpu rv64,x-h=true``
-enables the hypervisor extension for RV64.
+The hypervisor extension has been enabled for the default CPU, so virtual
+machines with hypervisor extension can simply be used without explicitly
+declaring.
 
 Hardware configuration information
 ----------------------------------
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Yu Li

Since the hypervisor extension been non experimental and enabled for default CPU, the previous command is no longer available and the option x-h=true or h=true is also no longer required.

Alistair

Quoted 24 lines
---
  docs/system/riscv/virt.rst | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
docs/system/riscv/virt.rst +3 -4
index fa016584bf..08ce3c4177 100644
@@ -23,9 +23,9 @@ The ``virt`` machine supports the following devices:
  * 1 generic PCIe host bridge
  * The fw_cfg device that allows a guest to obtain data from QEMU
 
-Note that the default CPU is a generic RV32GC/RV64GC. Optional extensions
-can be enabled via command line parameters, e.g.: ``-cpu rv64,x-h=true``
-enables the hypervisor extension for RV64.
+The hypervisor extension has been enabled for the default CPU, so virtual
+machines with hypervisor extension can simply be used without explicitly
+declaring.
 
  Hardware configuration information
  ----------------------------------
--

2.20.1

#2 lore raw
In reply to Yu Li
Quoted 6 lines · Yu Li

Since the hypervisor extension been non experimental and enabled for default CPU, the previous command is no longer available and the option x-h=true or h=true is also no longer required.

Thanks!

Applied to riscv-to-apply.next

Alistair

Quoted 24 lines
---
  docs/system/riscv/virt.rst | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
docs/system/riscv/virt.rst +3 -4
index fa016584bf..08ce3c4177 100644
@@ -23,9 +23,9 @@ The ``virt`` machine supports the following devices:
  * 1 generic PCIe host bridge
  * The fw_cfg device that allows a guest to obtain data from QEMU
 
-Note that the default CPU is a generic RV32GC/RV64GC. Optional extensions
-can be enabled via command line parameters, e.g.: ``-cpu rv64,x-h=true``
-enables the hypervisor extension for RV64.
+The hypervisor extension has been enabled for the default CPU, so virtual
+machines with hypervisor extension can simply be used without explicitly
+declaring.
 
  Hardware configuration information
  ----------------------------------
--

2.20.1

maintainer
#3 lore raw
In reply to Yu Li
Quoted 16 lines · On Tue, 08 Feb 2022 05:07:23 PST (-0800), [email protected] wrote:

Since the hypervisor extension been non experimental and enabled for default CPU, the previous command is no longer available and the option x-h=true or h=true is also no longer required.

---
  docs/system/riscv/virt.rst | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
docs/system/riscv/virt.rst +0 -0
index fa016584bf..08ce3c4177 100644
@@ -23,9 +23,9 @@ The ``virt`` machine supports the following devices:
  * 1 generic PCIe host bridge
  * The fw_cfg device that allows a guest to obtain data from QEMU

docs/system/riscv/virt.rst The ``virt`` machine supports the following devices: · line 31

Quoted 10 lines
docs/system/riscv/virt.rst +3 -3
 
-Note that the default CPU is a generic RV32GC/RV64GC. Optional extensions
-can be enabled via command line parameters, e.g.: ``-cpu rv64,x-h=true``
-enables the hypervisor extension for RV64.
+The hypervisor extension has been enabled for the default CPU, so virtual
+machines with hypervisor extension can simply be used without explicitly
+declaring.
 
  Hardware configuration information
  ----------------------------------

I saw this landed, but I'm not sure the wording is quite right. I think it's at least missing what is being declared, so something like this

diff --git a/docs/system/riscv/virt.rst b/docs/system/riscv/virt.rst index 08ce3c4177..fe40d6565a 100644
--- a/docs/system/riscv/virt.rst
+++ b/docs/system/riscv/virt.rst
@@ -24,8 +24,8 @@ The ``virt`` machine supports the following devices:
* The fw_cfg device that allows a guest to obtain data from QEMU

The hypervisor extension has been enabled for the default CPU, so virtual
-machines with hypervisor extension can simply be used without explicitly -declaring.
+machines with the hypervisor extension can simply be used without explicitly +declaring it as enabled.

Hardware configuration information
----------------------------------

That said, I think we'd be better off just picking a different example extension to enable -- IMO this was less about the hypervisor extension and more about the syntax for enabling extensions, that's certianly what I end up looking at the docs for. So IMO we'd be better off with something like

diff --git a/docs/system/riscv/virt.rst b/docs/system/riscv/virt.rst index 08ce3c4177..f59e8777b2 100644
--- a/docs/system/riscv/virt.rst
+++ b/docs/system/riscv/virt.rst
@@ -23,9 +23,9 @@ The ``virt`` machine supports the following devices:
* 1 generic PCIe host bridge
* The fw_cfg device that allows a guest to obtain data from QEMU

-The hypervisor extension has been enabled for the default CPU, so virtual -machines with hypervisor extension can simply be used without explicitly -declaring.
+Note that the default CPU is a generic RV32GC/RV64GC. Optional extensions +can be enabled via command line parameters, e.g.: ``-cpu rv64,c=false`` +disables the C extension.

Hardware configuration information
----------------------------------