RFR: JDK-8300266: Detect Virtualization on Linux aarch64

Matthias Baesken mbaesken at openjdk.org
Wed Jan 18 14:06:03 UTC 2023


Currently we detect virtualization on Linux x86_64 (cpuid call) and Linux ppc64le ; the result is afterwards used e.g. in hs_err and JFR output.

On Linux aarch64 the detection is missing, this should be added.
One option would be to look at /sys/devices/virtual/dmi/id/product_name and related files , at least KVM and VMWare can be detected using these files.

-------------

Commit messages:
 - JDK-8300266

Changes: https://git.openjdk.org/jdk/pull/12071/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12071&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8300266
  Stats: 39 lines in 2 files changed: 39 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/12071.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12071/head:pull/12071

PR: https://git.openjdk.org/jdk/pull/12071


More information about the hotspot-dev mailing list