I already know how to detect VMWare and VirtualPC, but I want to know how to do this in Kernel Virtual Machine. I would like t开发者_开发技巧he code to be in C or C++.
This page implies that it's enough to check the kernel's boot messages, if Linux is your hosted OS:
 # dmesg | grep -i virtual
 CPU: AMD QEMU Virtual CPU version 0.9.1 stepping 03
That should be easy enough to implement in C.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论