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:
parent
77e2a0d9b4
commit
346686e1ab
@ -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\""
|
||||
|
Loading…
x
Reference in New Issue
Block a user