>>> On 11/10/2018 at 02:08 PM, Mike Walter <[email protected]> >>> wrote:
> Wouldn't a CP QUERY CPUID (perhaps CP QUERY VIRTUAL CPUID) via diag08, or the > Linux command to issue CP commands, work? If the returned value begins with > FF, you are running in a virtual machine. If you can issue a CP command at all, and not get an error, you're running in a virtual machine. The "typical" method of figuring out things like this is to look at one or more of /sys/kernel/debug /proc/cpuinfo /proc/sysinfo You'll find such things as /sys/kernel/debug/s390/stsi/* /sys/kernel/debug/diag_0c /sys/kernel/debug/diag_204 /sys/kernel/debug/diag_2fc The values in /proc/cpuinfo and /proc/sysinfo will vary, depending on whether you're running in an LPAR, z/VM, or KVM for Z. If you're running on a system with systemd, then the systemd-detect-virt command will tell you what hypervisor, if any, is running. Mark Post ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
