Skip to content

Challenge to enable KVM support for Xiaomi K20 PRO (raphael) via kernel flags - kernel compilation not making the job? #14

@igorak87

Description

@igorak87

Hey @qaz6750,

Fist at all great job of keeping this fork alive. 👍👍

I have one issue to enable KVM on the kernel compilation level for my Xiaomi K20 PRO (raphael) (Snapdragon 855+ CPU based)

I added the below flags to the kernel .config:

CONFIG_VIRTUALIZATION=y
CONFIG_KVM=y
CONFIG_KVM_MMIO=y

following this thread is seems to be doable? https://www.reddit.com/r/termux/comments/tej7yz/qemu_with_kvm_enable/ ?

The compilation went well, the device is booting fine, even on the extracted config version contain the set flags but still on OS (Debian) level KVM seems to be not enable?

I have some suspicion that something KVM specific is not fully combined into kernel so debian can't load it?

I attached the full config that I'm using to compile the kernel (with the upper flags there).

config_example.txt

Few technical points:

  • I checked KVM aviability via
sudo kvm-ok
INFO: /dev/kvm does not exist
HINT:   sudo modprobe kvm
modprobe: FATAL: Module msr not found in directory /lib/modules/6.16.9-sm8150
  • Same as for sudo modprobe kvm
[sudo modprobe kvm](modprobe: FATAL: Module kvm not found in directory /lib/modules/6.16.9-sm8150)
  • I'm compiling the kernel with ARM64 GCC : sudo make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- KBUILD_BUILD_VERSION=6.17.0 -j4 based on the linux-xiaomi-6.16.y repo branch.

Did I miss something? I have read that setting the flags and kernel recompile should make a job but it isn't? :)

Thx in advance for the answer.

Best
igorak87

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions