From 346686e1ab03a88b297401d232ed15f8a91de15b Mon Sep 17 00:00:00 2001 From: mkutouski Date: Tue, 6 Aug 2024 12:19:37 +0300 Subject: [PATCH] B OpenNebula/one#6686: Provide full list of supported libvirt CPU features (#3196) Signed-off-by: Mikalai Kutouski --- src/im_mad/remotes/kvm-probes.d/host/system/cpu_features.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/im_mad/remotes/kvm-probes.d/host/system/cpu_features.sh b/src/im_mad/remotes/kvm-probes.d/host/system/cpu_features.sh index 3a09d29a3f7..20274b06fa8 100755 --- a/src/im_mad/remotes/kvm-probes.d/host/system/cpu_features.sh +++ b/src/im_mad/remotes/kvm-probes.d/host/system/cpu_features.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash  # -------------------------------------------------------------------------- # # Copyright 2002-2024, OpenNebula Project, OpenNebula Systems # @@ -16,6 +16,6 @@ # limitations under the License. # # -------------------------------------------------------------------------- #  -FEATURES=$(virsh capabilities | grep '$//" | xargs | tr ' ' ',') +FEATURES=$(virsh cpu-baseline <(virsh capabilities) --features | grep '$//" | xargs | tr ' ' ',')  echo "KVM_CPU_FEATURES=\"$FEATURES\""