
16 Dec
2020
16 Dec
'20
3:16 p.m.
On Wed, Dec 16, 2020 at 11:58:59AM +0800, Zhang Yu wrote:
- grep -q -w hypervisor /proc/cpuinfo + grep -q -w hypervisor /proc/cpuinfo && return 1
Are you sure? return 1 means false for shell.
If grep success, return 1 means it's a physical machine, return 0 means vm
I can read the code. So don't just translate code into English. What does "hypervisor" in cpuinfo mean? You may search and paste in patch changelog. Thanks, Fengguang