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
- [hv] set ECX.bit31 to indicate the presence of a hypervisor ECS.bit31 is not used and always return 0 in SDM Vol.2A 3-195. It's a standard way to indicate whether there is a hypervisor. Track-On: #2... — committed to xinyunliu/acrn-hypervisor by xinyunliu 5 years ago
- [hv] set ECX.bit31 to indicate the presence of a hypervisor ECS.bit31 is not used and always return 0 in SDM Vol.2A 3-195. It's a standard way to indicate whether there is a hypervisor. Track-On: #2... — committed to xinyunliu/acrn-hypervisor by xinyunliu 5 years ago
- [hv] set ECX.bit31 to indicate the presence of a hypervisor ECS.bit31 is not used and always return 0 in SDM Vol.2A 3-195. It's a standard way to indicate whether there is a hypervisor. Tracked-On: ... — committed to xinyunliu/acrn-hypervisor by xinyunliu 5 years ago
- [hv] set ECX.bit31 to indicate the presence of a hypervisor ECS.bit31 is not used and always return 0 in SDM Vol.2A 3-195. It's a standard way to indicate whether there is a hypervisor. Tracked-On: ... — committed to projectacrn/acrn-hypervisor by xinyunliu 5 years ago
- set ECX.bit31 to indicate the presence of a hypervisor ECS.bit31 is not used and always return 0 in SDM Vol.2A 3-195. It's a standard way to indicate whether there is a hypervisor. Track-On: #2490 R... — committed to xinyunliu/acrn-hypervisor by xinyunliu 5 years ago
- set ECX.bit31 to indicate the presence of a hypervisor ECS.bit31 is not used and always return 0 in SDM Vol.2A 3-195. It's a standard way to indicate whether there is a hypervisor. Track-On: #2490 R... — committed to xinyunliu/acrn-hypervisor by xinyunliu 5 years ago
Next week when new systemd landed 😉