1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-20 14:03:36 +03:00

B OpenNebula/one#6686: Provide full list of supported libvirt CPU features (#3196)

Signed-off-by: Mikalai Kutouski <mkutouski@opennebula.io>
This commit is contained in:
mkutouski 2024-08-06 12:19:37 +03:00 committed by GitHub
parent 77e2a0d9b4
commit 346686e1ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 '<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\""