nanvix / kernel

Research Operating System Kernel
https://github.com/nanvix
MIT License
52 stars 8 forks source link

[build] Enable KVM in QEMU #422

Open rafael0121 opened 2 months ago

rafael0121 commented 2 months ago

Description

Enable KVM in QEMU allow Nanvix run on a more realistic environment.

Files

Change:

QEMU Options

To enable KVM is necessary use new options:

ppenna commented 1 month ago

@rafael0121 as far as I understand enabling KVM is orthogonal to supporting IOMMU.

For instance, QEMU allows you supply the enable-kvm option for the PC and ISAPC machines.

Could you clarify why IOMMU is required, given the current features that Nanvix has?

rafael0121 commented 1 month ago

@rafael0121 as far as I understand enabling KVM is orthogonal to supporting IOMMU.

For instance, QEMU allows you supply the enable-kvm option for the PC and ISAPC machines.

Could you clarify why IOMMU is required, given the current features that Nanvix has?

IOMMU allows we assign PCI devices directly for VM, i think it isn't necessary for while, but maybe support this now would help in future.

ppenna commented 1 month ago

@rafael0121 as far as I understand enabling KVM is orthogonal to supporting IOMMU. For instance, QEMU allows you supply the enable-kvm option for the PC and ISAPC machines. Could you clarify why IOMMU is required, given the current features that Nanvix has?

IOMMU allows we assign PCI devices directly for VM, i think it isn't necessary for while, but maybe support this now would help in future.

Yes, that is what IOMMU is all about, and we eventually want to support it.

Anyways this is orthogonal to this issue. Let's just enable KVM on supported targets.