[SRU] RISC-V: Incorrect time-base frequency in KVM

Bug #2076927 reported by Heinrich Schuchardt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Ubuntu)
Status tracked in Oracular
Noble
New
Undecided
Sergio Durigan Junior
Oracular
Fix Released
Undecided
Sergio Durigan Junior

Bug Description

[ Impact ]

When running on RISC-V under KVM the displayed time does not match the wall-clock.

On a specific system U-Boot's and GRUB's count-down before booting where 10 times slower than expected.

Please, apply upstream patch
385e575cd5ab ("target/riscv/kvm: fix timebase-frequency when using KVM acceleration")
to Ubuntu 22.04 Noble and 22.10 Oracular.

[ Test Plan ]

Boot a RISC-V virtual machine according to https://wiki.ubuntu.com/RISC-V/QEMU. Inside the virtual machine start a nested VM adding '-accel kvm' to the command line.

Do the same with '-accel tcg'

Check that the count-down in U-Boot and GRUB matches the wall time.

[ Where problems could occur ]

Only RISC-V code is changed.

VMs might not boot anymore.

The time-base frequency could still be wrong.

[ Other Info ]

n/a

Tags: server-todo
Changed in qemu (Ubuntu):
assignee: nobody → Heinrich Schuchardt (xypron)
description: updated
Changed in qemu (Ubuntu Noble):
assignee: nobody → Heinrich Schuchardt (xypron)
Revision history for this message
Heinrich Schuchardt (xypron) wrote :
summary: - RISC-V: Incorrect time-base frequency in KVM
+ [SRU] RISC-V: Incorrect time-base frequency in KVM
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

I've uploaded QEMU 9.0.2 to Oracular yesterday and it has this fix, so I'm marking its task as Fix Released.

Changed in qemu (Ubuntu Oracular):
status: New → Fix Released
Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

@Heinrich, I'm preparing a batch of bugfixes for QEMU on Noble. I see you assigned this bug to yourself, but I'm going to reassign it to me just to reflect the fact that I'll be doing the upload.

Changed in qemu (Ubuntu Oracular):
assignee: Heinrich Schuchardt (xypron) → Sergio Durigan Junior (sergiodj)
Changed in qemu (Ubuntu Noble):
assignee: Heinrich Schuchardt (xypron) → Sergio Durigan Junior (sergiodj)
tags: added: server-todo
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.