Public bug reported:

[ Impact ]

When running a KVM guest on a RISC-V RVA23 host (e.g. SpacemiT K3
processor or virtual machine with rva23s64 profile) the guest VM is not
RVA23 compliant.

The following upstream patch which was introduced after v11.0.0 is meant
to resolve it:

7499bae6d91f ("target/riscv/kvm: add KVM support for Zicbop extension")

[ Test Plan ]

Launch a virtual machine using the RVA23S64 profile as described in
https://github.com/ubuntu/ubuntu-manual-tests/blob/main/resolute/testsuites/RISCV%20Generic/Mandatory/Install%20Qemu.md

Inside the virtual machine use KVM to launch another virtual machine.

Use https://github.com/xypron/hwprobe/blob/main/python/hwprobe.py to
check if the inner VM is compliant to RVA23.

Execute the tests from https://github.com/ubuntu/ubuntu-manual-
tests/blob/main/resolute/testsuites/RISCV%20Generic/Mandatory/Install%20Qemu.md

on the inner VM.

[ Where problems could occur ]

The changes in the patch are RISC-V specific (only files in
target/riscv/kvm/).

Backporting the patch might lead to failures to boot a RISC-V svirtual
machine or to incorrect emulation.

[ Other Info ]

n/a

** Affects: qemu (Ubuntu)
     Importance: Undecided
     Assignee: Heinrich Schuchardt (xypron)
         Status: New

** Affects: qemu (Ubuntu Resolute)
     Importance: Undecided
     Assignee: Heinrich Schuchardt (xypron)
         Status: New

** Affects: qemu (Ubuntu Stonking)
     Importance: Undecided
     Assignee: Heinrich Schuchardt (xypron)
         Status: New

** Changed in: qemu (Ubuntu)
     Assignee: (unassigned) => Heinrich Schuchardt (xypron)

** Also affects: qemu (Ubuntu Resolute)
   Importance: Undecided
       Status: New

** Also affects: qemu (Ubuntu Stonking)
   Importance: Undecided
     Assignee: Heinrich Schuchardt (xypron)
       Status: New

** Changed in: qemu (Ubuntu Resolute)
     Assignee: (unassigned) => Heinrich Schuchardt (xypron)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154708

Title:
  [SRU] RISC-V: Missing support for Zicbop extension in KVM guest

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/2154708/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to