virt: Support detection for ARM64 Hyper-V guests (fixed upstream)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Lukas Märdian | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Hirsute |
Won't Fix
|
Undecided
|
Unassigned | ||
Impish |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Lukas Märdian |
Bug Description
[Impact]
* The detection of Microsoft Hyper-V VMs is done by cpuid currently,
however there is no cpuid on ARM64. And since ARM64 is now a supported
architecture for Microsoft Hyper-V guests[0], then introduce a more
generic way to detect whether a guest is running as a Hyper-V guest: check
if /sys/class/
* This bug has already been fixed upstream[1][2]
[Test Plan]
* While changes have been made in the kernel for ARM64 on Hyper-V, there is no way to start an ARM64 VM on Hyper-V at the moment. Thus we just want to make sure no regression is introduced.
* start an Hyper-V amd64 VM and make sure "systemd-
[Where problems could occur]
* The main risk is for the system to detect Hyper-V virt erroneously. An issue was reported upstream after the first commit was merged[3]. For this reason, systemd is now looking for "Hyper-V" (in /sys/class/
* This change might also break virt detection on hyper-v AMD64. That's why we need testing. However, AMD64 virt detection should still rely on cpuid instead of DMI as cpuid takes priority over DMI.
[0] https:/
[1] https:/
[2] https:/
[3] https:/
CVE References
tags: | added: fr-1886 |
Changed in systemd (Ubuntu Jammy): | |
assignee: | nobody → Lukas Märdian (slyon) |
This bug was fixed in the package systemd - 249.5-2ubuntu1
---------------
systemd (249.5-2ubuntu1) jammy; urgency=medium
* Merge to Ubuntu from Debian unstable units-disable- journald- watchdog. patch running- only-a- subset- of-integration- tests-by- .patch ProBook- to-use- micmute- hotkey. patch *.patch (ActivationPolicy=) hwdb-Add- mic-mute- key-mapping- for-HP- Elite-Dragonfly .patch *.patch (tzdata.zi) network- enable- DHCP-broadcast- flag-if- required- by-in.patch correct- suspend- then-sleep- string. patch 13529.patch 33910.patch request- 20199-from- ddstreet- unit_cgroup_ catchu. patch slot-based- network- names-on- s390.patch missing- initialization- to-fix- freeing- invalid- ad.patch onboard- index-up- to-65535. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=f35b4d6c065 3c3125b2e0e5d96 2f84543733c3c0 UseDomains- by-default. patch patches/ debian/ Ubuntu- UseDomains- by-default. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=6e3b2ffb1c2 c2bf2223f91b350 c1fd06b8903346 test-test- functions- launch- qemu-with- vga-none. patch patches/ debian/ UBUNTU- test-test- functions- launch- qemu-with- vga-none. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=7142fb9381a b98d750a7c24730 87ea7264be860d Revert- cgroup- Continue- unit-reset- if-cgroup- is-busy. patch patches/ debian/ UBUNTU- Revert- cgroup- Continue- unit-reset- if-cgroup- is-busy. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=3de0f444bfc 0cf3b601c4a1ad8 939d2cd69cdad6 resolved- default- no-negative- caching. patch patches/ debian/ UBUNTU- resolved- default- no-negative- caching. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=d7b25651ea7 ceae2ebfeafb84d 9d65fb8284367a network- if-sys- is-rw-then- udev-should- be-around. patch patches/ Revert- network- if-sys- is-rw-then- udev-should- be-around. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=61b004d7710 b305d9996b3ad9b b47dc372fcbbac src-test- testmount- util.c- Skip-parts- of-test- mount-util- in-LXC. patch patches/ debian/ UBUNTU- src-test- testmount- util.c- Skip-parts- of-test- mount-util- in-LXC. patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=5fe343a0fc8 9771820f997c2d6 621ac517d9070f request- 20705-from- yuwata- test-oomd- util.patch patches/ Merge-pull- request- 20705-from- yuwata- test-oomd- util.patch /git.launchpad. net/~ubuntu- core-dev/ ubuntu/ +source/ systemd/ commit/ ?id=e88125...
- Dropped changes (applied upstream):
+ UBUNTU-
+ test-Allow-
+ hwdb-Add-
+ d/p/lp1931578/
+ lp1932352-
+ d/p/lp1858210/
+ lp1914740-
+ lp1934981-
+ CVE-2020-
+ CVE-2021-
+ Merge-pull-
+ udev-fix-
+ udev-add-
+ udev-allow-
+ lp1940635.patch (networkd failed to acquire a DHCP6 lease, v249.5)
* debian/gbp.conf: Update debian-branch to ubuntu-jammy
File: debian/gbp.conf
https:/
* Refresh Ubuntu-
File: debian/
https:/
* Refresh UBUNTU-
File: debian/
https:/
* Refresh UBUNTU-
File: debian/
https:/
* Refresh UBUNTU-
File: debian/
https:/
* Refresh Revert-
File: debian/
https:/
* Refresh UBUNTU-
File: debian/
https:/
* Refresh Merge-pull-
File: debian/
https:/