chiark / gitweb /
virt: move caching of virtualization check results into detect_vm() and detect_contai...
authorLennart Poettering <lennart@poettering.net>
Thu, 31 Oct 2013 15:23:06 +0000 (16:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 31 Oct 2013 15:24:14 +0000 (16:24 +0100)
commit0fb533a53359cb8d034ec926638896b93f4fa839
tree13932e77c86ac25873847f5fb4920a3e0c3bf1d4
parentc9197a76ae552991b99673d104019e0940d6ad84
virt: move caching of virtualization check results into detect_vm() and detect_container()

After all, we ended up calling detect_container() more often than
detect_virtualization(), hence the former one should cache the results,
since the latter is only a wrapper around the former.
src/detect-virt/detect-virt.c
src/shared/virt.c