RFR: JDK-8300266: Detect Virtualization on Linux aarch64
Thomas Stuefe
stuefe at openjdk.org
Fri Jan 20 08:54:27 UTC 2023
On Wed, 18 Jan 2023 13:27:24 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> 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.
Hi Matthias,
- can you give an example of such a line? I assume it won't overflow the 500 bytes, right?
- Does it have to live inside CPU/aarch? Would be better in the linux_aarch branch
- People start using `nullptr` instead of `NULL` now in earnest, might be better to use that instead.
Cheers, Thomas
-------------
PR: https://git.openjdk.org/jdk/pull/12071
More information about the hotspot-dev
mailing list