core-util: Fix detection when running in a VM
authorArun Raghavan <arun@arunraghavan.net>
Mon, 1 Jul 2019 01:52:55 +0000 (07:22 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 4 Jul 2019 07:13:51 +0000 (07:13 +0000)
commit2ed4f388de8171dcd1e3261baf3c7a45fb8f3f38
treeae857eeb27ae38fb6697701f137459f812b5101f
parent4c6bab435316768974b94573e3f67ea17f56e221
core-util: Fix detection when running in a VM

The original code that was written was trying to detect what hypervisor
we were running under, rather than testing the presence bit first. We
don't really need the former, so let's use the more comprehensive latter
instead.

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/684
src/pulsecore/core-util.c