Skip to content

Commit

Permalink
B #6686: Provide full list of supported libvirt CPU features (#3196)
Browse files Browse the repository at this point in the history
Signed-off-by: Mikalai Kutouski <mkutouski@opennebula.io>
  • Loading branch information
mkutouski authored Aug 6, 2024
1 parent 77e2a0d commit 346686e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/im_mad/remotes/kvm-probes.d/host/system/cpu_features.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# -------------------------------------------------------------------------- #
# Copyright 2002-2024, OpenNebula Project, OpenNebula Systems #
Expand All @@ -16,6 +16,6 @@
# limitations under the License. #
# -------------------------------------------------------------------------- #
FEATURES=$(virsh capabilities | grep '<feature name' | sed -e "s/^.*='//;s/'\/>$//" | xargs | tr ' ' ',')
FEATURES=$(virsh cpu-baseline <(virsh capabilities) --features | grep '<feature policy' | sed -e "s/^.*='//;s/'\/>$//" | xargs | tr ' ' ',')
echo "KVM_CPU_FEATURES=\"$FEATURES\""

0 comments on commit 346686e

Please sign in to comment.