Performing the verification on Jammy.
1) Unit test verification
First, making sure that we can reproduce the problem.
# apt policy qemu-system-x86 qemu-system-x86: Installed: 1:6.2+dfsg-2ubuntu6.19 Candidate: 1:6.2+dfsg-2ubuntu6.19 Version table: *** 1:6.2+dfsg-2ubuntu6.19 500 500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages 100 /var/lib/dpkg/status 1:6.2+dfsg-2ubuntu6.16 500 500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages 1:6.2+dfsg-2ubuntu6 500 500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
Booting from ROM..enabling apic^M smp: waiting for 0 APs^M rdtsc = 311924236^M rdtsc = 312962416^M rdtsc = 314029548^M rdtsc = 315083088^M rdtsc = 316153232^M
... system_reset issued here ...
Booting from ROM..enabling apic^M smp: waiting for 0 APs^M rdtsc = 14001762132^M rdtsc = 14002862272^M rdtsc = 14004006064^M rdtsc = 14005093708^M rdtsc = 14006248040^M
We can see that the value of rdtsc increased after the system_reset, which is the issue we want to fix.
Now, verifying that the new QEMU fixes the problem.
# apt policy qemu-system-x86 qemu-system-x86: Installed: 1:6.2+dfsg-2ubuntu6.20 Candidate: 1:6.2+dfsg-2ubuntu6.20 Version table: *** 1:6.2+dfsg-2ubuntu6.20 500 500 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages 100 /var/lib/dpkg/status 1:6.2+dfsg-2ubuntu6.19 500 500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages 1:6.2+dfsg-2ubuntu6.16 500 500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages 1:6.2+dfsg-2ubuntu6 500 500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
Booting from ROM..enabling apic^M smp: waiting for 0 APs^M rdtsc = 322897852^M rdtsc = 324612970^M rdtsc = 326347882^M rdtsc = 328061272^M rdtsc = 329828278^M
Booting from ROM..enabling apic^M smp: waiting for 0 APs^M rdtsc = 231401932^M rdtsc = 232646796^M rdtsc = 233860396^M rdtsc = 235070448^M rdtsc = 236306912^M
We can see that rdtsc is now lower than it was after system_reset is issued.
2) Boot verification
Tested that the new QEMU properly boots *and* reboots an Ubuntu cloud image.
This concludes the verification for Jammy.
Performing the verification on Jammy.
1) Unit test verification
First, making sure that we can reproduce the problem.
# apt policy qemu-system-x86 2ubuntu6. 19 2ubuntu6. 19 2ubuntu6. 19 500 archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages dpkg/status 6.2+dfsg- 2ubuntu6. 16 500 security. ubuntu. com/ubuntu jammy-security/main amd64 Packages 6.2+dfsg- 2ubuntu6 500 archive. ubuntu. com/ubuntu jammy/main amd64 Packages
qemu-system-x86:
Installed: 1:6.2+dfsg-
Candidate: 1:6.2+dfsg-
Version table:
*** 1:6.2+dfsg-
500 http://
100 /var/lib/
1:
500 http://
1:
500 http://
Booting from ROM..enabling apic^M
smp: waiting for 0 APs^M
rdtsc = 311924236^M
rdtsc = 312962416^M
rdtsc = 314029548^M
rdtsc = 315083088^M
rdtsc = 316153232^M
... system_reset issued here ...
Booting from ROM..enabling apic^M
smp: waiting for 0 APs^M
rdtsc = 14001762132^M
rdtsc = 14002862272^M
rdtsc = 14004006064^M
rdtsc = 14005093708^M
rdtsc = 14006248040^M
We can see that the value of rdtsc increased after the system_reset, which is the issue we want to fix.
Now, verifying that the new QEMU fixes the problem.
# apt policy qemu-system-x86 2ubuntu6. 20 2ubuntu6. 20 2ubuntu6. 20 500 archive. ubuntu. com/ubuntu jammy-proposed/main amd64 Packages dpkg/status 6.2+dfsg- 2ubuntu6. 19 500 archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages 6.2+dfsg- 2ubuntu6. 16 500 security. ubuntu. com/ubuntu jammy-security/main amd64 Packages 6.2+dfsg- 2ubuntu6 500 archive. ubuntu. com/ubuntu jammy/main amd64 Packages
qemu-system-x86:
Installed: 1:6.2+dfsg-
Candidate: 1:6.2+dfsg-
Version table:
*** 1:6.2+dfsg-
500 http://
100 /var/lib/
1:
500 http://
1:
500 http://
1:
500 http://
Booting from ROM..enabling apic^M
smp: waiting for 0 APs^M
rdtsc = 322897852^M
rdtsc = 324612970^M
rdtsc = 326347882^M
rdtsc = 328061272^M
rdtsc = 329828278^M
... system_reset issued here ...
Booting from ROM..enabling apic^M
smp: waiting for 0 APs^M
rdtsc = 231401932^M
rdtsc = 232646796^M
rdtsc = 233860396^M
rdtsc = 235070448^M
rdtsc = 236306912^M
We can see that rdtsc is now lower than it was after system_reset is issued.
2) Boot verification
Tested that the new QEMU properly boots *and* reboots an Ubuntu cloud image.
This concludes the verification for Jammy.