This needs to be submitted for all branches 5.15+ So a test confirming that it has somehow been exercised on 6.6 (we can skip 6.1 runtime testing) is required.
We also should really renamed the fragment to "kvm-host", since I've never liked the existing name .. but this is used in places in throughout the meta-data as a KERNEL_FEATURE, so changing it isn't trivial .. let's not to that change for now, but I'll consider it in the future. If you can submit a v2 showing 5.15 and 6.6 testing I can merge the change. Bruce In message: [linux-yocto][yocto-kernel-cache][yocto-5.15] features/kvm: enable kvm configs for arm64 on 10/07/2024 Kang Wenlin wrote: > 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 (#14145): https://lists.yoctoproject.org/g/linux-yocto/message/14145 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] -=-=-=-=-=-=-=-=-=-=-=-