acrn-hypervisor: systemd virtualisation detection doesn't work

systemd has a systemd-detect-virt command that determines what virtualisation or container system is in place. I don’t expect it to say ‘acrn’ just yet because it doesn’t know the magic cpuid string yet (I’ve a patch for that), but it should say ‘other’. But apparently not, from both the SOS and UOS it always returns ‘none’.

https://github.com/systemd/systemd/blob/master/src/basic/virt.c#L24 is the logic. It looks like acrn is failing to set bit 31 of ecx?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 20 (18 by maintainers)

Commits related to this issue

Most upvoted comments

With systemd/systemd#11857:

$ systemd-detect-virt
acrn

Nice, thanks! (just need this to land in Clear Linux now 😉)

Next week when new systemd landed 😉