Skip to content
Commit c8037dbf authored by Christopher Obbard's avatar Christopher Obbard Committed by Yu Watanabe
Browse files

virt: Properly detect nested UML inside another hypervisor



UML runs as a user-process so it can quite easily be ran inside of
another hypervisor, for instance inside a KVM instance. UML passes
through the CPUID from the host machine so in this case detect_vm
incorrectly identifies as running under KVM. So check we are running
a UML kernel first, before we check any other hypervisors.

Resolves: #17754

Signed-off-by: default avatarChristopher Obbard <chris.obbard@collabora.com>
parent 0b261ac5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment