From ad0017ddae02a15d48ea0d37291d9ecb9e36ab13 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Thu, 19 Sep 2024 09:55:40 +0200 Subject: Simplify handling of KVM-based options Where before we had a profile/vm fragment that was set on nearly every host we administer, now make sure to enable KVM unconditionally and put CPU-specific KVM options into the CPU profiles. --- fragments/base/vm | 7 +++++++ fragments/cpu/amd | 2 ++ fragments/cpu/intel | 2 ++ fragments/profile/vm | 9 --------- 4 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 fragments/base/vm delete mode 100644 fragments/profile/vm (limited to 'fragments') diff --git a/fragments/base/vm b/fragments/base/vm new file mode 100644 index 0000000..0bc2760 --- /dev/null +++ b/fragments/base/vm @@ -0,0 +1,7 @@ +CONFIG_KVM=y +CONFIG_VHOST_NET=m + +CONFIG_MACVLAN=m +CONFIG_MACVTAP=m +CONFIG_IPVLAN=m +CONFIG_IPVTAP=m diff --git a/fragments/cpu/amd b/fragments/cpu/amd index 9b9d035..cd8c7ef 100644 --- a/fragments/cpu/amd +++ b/fragments/cpu/amd @@ -9,3 +9,5 @@ CONFIG_SENSORS_FAM15H_POWER=y CONFIG_EDAC_AMD64=y CONFIG_AMD_IOMMU=y + +CONFIG_KVM_AMD=y diff --git a/fragments/cpu/intel b/fragments/cpu/intel index c64743e..7aab257 100644 --- a/fragments/cpu/intel +++ b/fragments/cpu/intel @@ -5,3 +5,5 @@ CONFIG_MCORE2=y CONFIG_X86_INTEL_TSX_MODE_ON=y CONFIG_SENSORS_CORETEMP=y + +CONFIG_KVM_INTEL=y diff --git a/fragments/profile/vm b/fragments/profile/vm deleted file mode 100644 index bf6bc2d..0000000 --- a/fragments/profile/vm +++ /dev/null @@ -1,9 +0,0 @@ -CONFIG_KVM=y -CONFIG_KVM_INTEL=y -CONFIG_KVM_AMD=y -CONFIG_VHOST_NET=m - -CONFIG_MACVLAN=m -CONFIG_MACVTAP=m -CONFIG_IPVLAN=m -CONFIG_IPVTAP=m -- cgit v1.2.3-2-gb3c3