diff options
author | Jonathan Bauer | 2018-04-17 17:12:26 +0200 |
---|---|---|
committer | Jonathan Bauer | 2018-04-17 17:12:26 +0200 |
commit | fef4222e5aca364dae71bbbd084c3dc311d2a18f (patch) | |
tree | 1f98bcb91a6daa0f6f24bc7a7701a941255bd8cf /core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc | |
parent | [dnbd3] create fuse group (diff) | |
download | mltk-fef4222e5aca364dae71bbbd084c3dc311d2a18f.tar.gz mltk-fef4222e5aca364dae71bbbd084c3dc311d2a18f.tar.xz mltk-fef4222e5aca364dae71bbbd084c3dc311d2a18f.zip |
[*] detect_cpu_flag as generic run-virt function
Diffstat (limited to 'core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc')
-rw-r--r-- | core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc b/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc index a7d3d837..a03d9a92 100644 --- a/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc +++ b/core/modules/vmware12/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc @@ -255,7 +255,7 @@ finalize_hardware() { # Enable nested virtualization if not specified in remote vmx if [ -e "/run/hwinfo" ] && ! grep -qi '^vhv\.enable' "${TMPCONFIG}" \ - && grep -qE '^flags\s*:.*\b(ept|npt)\b' "/proc/cpuinfo" \ + && detect_cpu_flag "ept" "npt" \ && [ "$VM_HW_VERSION" -ge "9" ]; then . "/run/hwinfo" [ "${HW_KVM}" = "ENABLED" ] && echo 'vhv.enable = "TRUE"' >> "${TMPCONFIG}" |