[SRU] Crash on RISC-V in virtual machine using KVM
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
grub2 (Ubuntu) | Status tracked in Oracular | |||||
Noble |
Fix Committed
|
Undecided
|
Unassigned | |||
Oracular |
Fix Committed
|
Undecided
|
Mate Kukri |
Bug Description
[ Impact ]
On RISC-V hardware offering the hypervisor extension GRUB crashes in virtual machines running under KVM due to missing accessibility of the counter register.
For measuring time the RISC-V ISA provides the time register.
Please, apply the following patch:
[PATCH 1/1] riscv: use time register in grub_efi_
https:/
[ Test Plan ]
To reproduce the error run Ubuntu on QEMU according to https:/
Run Ubuntu on QEMU according to https:/
In GRUB press the <C>-key to enter the console.
Execute 'sleep 10' and check that the console prompt is written after approximately 10 seconds.
Restart the VM with the 'reset' command.
Check that the countdown in the Ubuntu menu runs at wall time speed.
Check that the login prompt is reached.
Correct timing under KVM depends on LP #2076927.
[ Where problems could occur ]
The patch only concerns RISC-V. It changes how GRUB measures elapsed time.
Incorrect measuring of time could lead to the menu countdown or the sleep command not working.
[ Other Info ]
n/a
summary: |
- Crash on RISC-V in virtual machine using KVM + [SRU] Crash on RISC-V in virtual machine using KVM |
description: | updated |
description: | updated |
Changed in grub2 (Ubuntu Oracular): | |
assignee: | nobody → Mate Kukri (mkukri) |
tags: | added: foundations-todo |
https:/ /salsa. debian. org/grub- team/grub/ -/merge_ requests/ 65