< prev index next >

src/hotspot/share/runtime/abstract_vm_version.hpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_RUNTIME_ABSTRACT_VM_VERSION_HPP
  26 #define SHARE_RUNTIME_ABSTRACT_VM_VERSION_HPP
  27 
  28 #include "memory/allocation.hpp"  // For declaration of class AllStatic
  29 #include "utilities/globalDefinitions.hpp"
  30 
  31 typedef enum {
  32   NoDetectedVirtualization,
  33   XenHVM,
  34   KVM,
  35   VMWare,
  36   HyperV,

  37   PowerVM, // on AIX or Linux ppc64(le)
  38   PowerFullPartitionMode, // on Linux ppc64(le)
  39   PowerKVM
  40 } VirtualizationType;
  41 
  42 class outputStream;
  43 
  44 // Abstract_VM_Version provides information about the VM.
  45 
  46 class Abstract_VM_Version: AllStatic {
  47   friend class VMStructs;
  48   friend class JVMCIVMStructs;
  49 
  50  protected:
  51   static const char*  _s_vm_release;
  52   static const char*  _s_internal_vm_info_string;
  53 
  54   // CPU feature flags.
  55   static uint64_t _features;
  56   static const char* _features_string;


   1 /*
   2  * Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_RUNTIME_ABSTRACT_VM_VERSION_HPP
  26 #define SHARE_RUNTIME_ABSTRACT_VM_VERSION_HPP
  27 
  28 #include "memory/allocation.hpp"  // For declaration of class AllStatic
  29 #include "utilities/globalDefinitions.hpp"
  30 
  31 typedef enum {
  32   NoDetectedVirtualization,
  33   XenHVM,
  34   KVM,
  35   VMWare,
  36   HyperV,
  37   HyperVRole,
  38   PowerVM, // on AIX or Linux ppc64(le)
  39   PowerFullPartitionMode, // on Linux ppc64(le)
  40   PowerKVM
  41 } VirtualizationType;
  42 
  43 class outputStream;
  44 
  45 // Abstract_VM_Version provides information about the VM.
  46 
  47 class Abstract_VM_Version: AllStatic {
  48   friend class VMStructs;
  49   friend class JVMCIVMStructs;
  50 
  51  protected:
  52   static const char*  _s_vm_release;
  53   static const char*  _s_internal_vm_info_string;
  54 
  55   // CPU feature flags.
  56   static uint64_t _features;
  57   static const char* _features_string;


< prev index next >