[Bug 2076651] Re: [SRU] Crash on RISC-V in virtual machine using KVM
Timo Aaltonen
2076651 at bugs.launchpad.net
Fri Dec 13 12:26:29 UTC 2024
Hello Heinrich, or anyone else affected,
Accepted grub2-unsigned into noble-proposed. The package will build now
and be available at
https://launchpad.net/ubuntu/+source/grub2-unsigned/2.12-1ubuntu7.1 in a
few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
noble to verification-done-noble. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-noble. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: grub2-unsigned (Ubuntu Noble)
Status: Invalid => Fix Committed
** Tags removed: verification-done
** Tags added: verification-needed verification-needed-noble
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2076651
Title:
[SRU] Crash on RISC-V in virtual machine using KVM
Status in grub2 package in Ubuntu:
Fix Released
Status in grub2-signed package in Ubuntu:
Invalid
Status in grub2-unsigned package in Ubuntu:
Invalid
Status in grub2 source package in Noble:
Fix Committed
Status in grub2-signed source package in Noble:
Invalid
Status in grub2-unsigned source package in Noble:
Fix Committed
Status in grub2 source package in Oracular:
Fix Released
Status in grub2-signed source package in Oracular:
Invalid
Status in grub2-unsigned source package in Oracular:
Fix Released
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_get_time_ms()
https://lists.gnu.org/archive/html/grub-devel/2024-08/msg00008.html
[ Test Plan ]
To reproduce the error run Ubuntu on QEMU according to
https://wiki.ubuntu.com/RISC-V/QEMU on an HiFive P550 Premier. Add
'-accel kvm' to the command line to use KVM. GRUB crashes.
Run Ubuntu on QEMU according to https://wiki.ubuntu.com/RISC-V/QEMU.
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2076651/+subscriptions
More information about the foundations-bugs
mailing list