RFR: JDK-8301050: Detect Xen Virtualization on Linux aarch64 [v2]

Matthias Baesken mbaesken at openjdk.org
Thu Feb 2 09:14:06 UTC 2023


On Wed, 1 Feb 2023 13:09:19 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> With https://bugs.openjdk.org/browse/JDK-8300266 KVM and VMWare virtualization detection has been added; this should be enhanced by Xen detection.
>> However it seems that for Xen we should look at other file system locations compared to the other virtualizations.
>> more /sys/hypervisor/type
>> xen
>> seems to be available there.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Do not scan the product_name file twice

Not a big fan or varargs, and I think we do not need them here.   But sure we can move modifying Abstract_VM_Version::_detected_virtualization directly in check_info_file,  I adjusted the coding.

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

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


More information about the hotspot-dev mailing list