Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vm-vcpu] Extend the KvmVm and KvmVcpu abstractions for aarch64 #133

Open
andreeaflorescu opened this issue May 25, 2021 · 0 comments
Open
Labels

Comments

@andreeaflorescu
Copy link
Member

Extend the KvmVm and KvmVcpu abstractions to support booting on aarch64. Where possible we should offer a uniform interface on both platforms. In the POC this didn’t prove to be difficult, with the only shortcoming being the fact that the interrupt controller needs to be initialized on aarch64 after creating the vCPUs. This requires changes in the way we are creating vCPUs as right now the VMM needs to call create_vcpu for each vCPU. This implies that the VMM needs to call the function for setting up the interrupt controller after creating the vcpus. This is against the simplicity design principle that we want to follow for the vm-vcpu crate. As a consequence, we need to offer a function for creating all the vcpus at once based on a specified configuration. Internally, the function can then initialize the IRQ controller.This would also enable us to offer a uniform interface on both platforms for the default initialization & creation of VMs and vCPUs. The platform differences should only be apparent to the “expert” users of the vm-vcpu crate that need to do fine tuning when configuring these resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant