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 unstableunits-disable-journald-watchdog.patchrunning-only-a-subset-of-integration-tests-by-.patchProBook-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.patchcorrect-suspend-then-sleep-string.patch13529.patch33910.patchrequest-20199-from-ddstreet-unit_cgroup_catchu.patchslot-based-network-names-on-s390.patchmissing-initialization-to-fix-freeing-invalid-ad.patchonboard-index-up-to-65535.patch/git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=f35b4d6c0653c3125b2e0e5d962f84543733c3c0 UseDomains-by-default.patchpatches/debian/Ubuntu-UseDomains-by-default.patch/git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=6e3b2ffb1c2c2bf2223f91b350c1fd06b8903346 test-test-functions-launch-qemu-with-vga-none.patchpatches/debian/UBUNTU-test-test-functions-launch-qemu-with-vga-none.patch/git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=7142fb9381ab98d750a7c2473087ea7264be860d Revert-cgroup-Continue-unit-reset-if-cgroup-is-busy.patchpatches/debian/UBUNTU-Revert-cgroup-Continue-unit-reset-if-cgroup-is-busy.patch/git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=3de0f444bfc0cf3b601c4a1ad8939d2cd69cdad6 resolved-default-no-negative-caching.patchpatches/debian/UBUNTU-resolved-default-no-negative-caching.patch/git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=d7b25651ea7ceae2ebfeafb84d9d65fb8284367a network-if-sys-is-rw-then-udev-should-be-around.patchpatches/Revert-network-if-sys-is-rw-then-udev-should-be-around.patch/git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=61b004d7710b305d9996b3ad9bb47dc372fcbbac src-test-testmount-util.c-Skip-parts-of-test-mount-util-in-LXC.patchpatches/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=5fe343a0fc89771820f997c2d6621ac517d9070f request-20705-from-yuwata-test-oomd-util.patchpatches/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:/