Skip to contentSkip to conversation

Question: Why does hardware_enable_all() call cpu_hyp_init() again?

DISCUSSION Yuvraj Sakshith 1 participant 1 message May 25, 2024 KVM arm64

lore
Share & tools
lore
#0 lore raw

Greetings,

I was following the CREATE_VM ioctl and navigating through kvm_dev_ioctl_create_vm(), I found hardware_enable_all(). This calls cpu_hyp_init(NULL) on all CPUs.

But, doesn't kvm_arm_init() call cpu_hyp_init() on all CPUs during init_subsystems()? I am curious why this needs to be done again during every CREATE_VM ioctl.

Regards,

Yuvraj Sakshith