Add code to detect hypervisor. The code was based from FreeBSD and ported
by Kengo Nakahara.