From: Wenlin Kang <wenlin.k...@windriver.com> The CONFIG_VIRTUALIZATION is not enabled for ARM64, but it is default for X86. And CONFIG_KVM depends on CONFIG_VIRTUALIZATION.
In addition, the CONFIG_KVM is a bool type in ARM64, it could not be built as a kernel module, so split KVM configs out based the architecture to standalone files. Signed-off-by: Liu Haitao <haitao....@windriver.com> Signed-off-by: Wenlin Kang <wenlin.k...@windriver.com> --- features/kvm/qemu-kvm-arm64.cfg | 3 +++ features/kvm/qemu-kvm-enable.scc | 5 +++++ features/kvm/qemu-kvm-x86.cfg | 4 ++++ features/kvm/qemu-kvm.cfg | 3 --- 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 features/kvm/qemu-kvm-arm64.cfg create mode 100644 features/kvm/qemu-kvm-x86.cfg diff --git a/features/kvm/qemu-kvm-arm64.cfg b/features/kvm/qemu-kvm-arm64.cfg new file mode 100644 index 00000000..143a7bc4 --- /dev/null +++ b/features/kvm/qemu-kvm-arm64.cfg @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: MIT +CONFIG_VIRTUALIZATION=y +CONFIG_KVM=y diff --git a/features/kvm/qemu-kvm-enable.scc b/features/kvm/qemu-kvm-enable.scc index 880bdaa0..23b4af5f 100644 --- a/features/kvm/qemu-kvm-enable.scc +++ b/features/kvm/qemu-kvm-enable.scc @@ -3,3 +3,8 @@ define KFEATURE_DESCRIPTION "Enable KVM host support" define KFEATURE_COMPATIBILITY board kconf non-hardware qemu-kvm.cfg +if [ "$KARCH" = "x86_64" ] || [ "$KARCH" = "x86" ] || [ "$KARCH" = "i386" ]; then + kconf non-hardware qemu-kvm-x86.cfg +elif [ "$KARCH" = "arm64" ]; then + kconf non-hardware qemu-kvm-arm64.cfg +fi diff --git a/features/kvm/qemu-kvm-x86.cfg b/features/kvm/qemu-kvm-x86.cfg new file mode 100644 index 00000000..5c885b9e --- /dev/null +++ b/features/kvm/qemu-kvm-x86.cfg @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: MIT +CONFIG_KVM=m +CONFIG_KVM_INTEL=m +CONFIG_KVM_AMD=m diff --git a/features/kvm/qemu-kvm.cfg b/features/kvm/qemu-kvm.cfg index aa0c29ff..3eef744e 100644 --- a/features/kvm/qemu-kvm.cfg +++ b/features/kvm/qemu-kvm.cfg @@ -1,7 +1,4 @@ # SPDX-License-Identifier: MIT -CONFIG_KVM=m -CONFIG_KVM_INTEL=m -CONFIG_KVM_AMD=m CONFIG_TUN=y # Macvtap -- 2.35.5
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14138): https://lists.yoctoproject.org/g/linux-yocto/message/14138 Mute This Topic: https://lists.yoctoproject.org/mt/107140874/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-