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

virtme: let user disable KVM accel easily #64

Merged
merged 2 commits into from
Feb 2, 2024
Merged

Conversation

kuba-moo
Copy link
Contributor

@kuba-moo kuba-moo commented Feb 1, 2024

Add a --disable-kvm switch. Some of our testers run without KVM support (nested virt) and developers struggle to repro similarly sluggish execution for their tests. Allow turning KVM off with a single switch even when it's usable.

Instead of duplicating the KVM check, pass whether it's okay
to use KVM in from outside the arch code.

Signed-off-by: Jakub Kicinski <[email protected]>
Some testers run without KVM support (including x86 testers running
in nested VMs). Reproducing such conditions with vng currently requires
a bit of hacking. Support --disable-kvm to do the same thing more
cleanly.

Signed-off-by: Jakub Kicinski <[email protected]>
@arighi arighi merged commit b7cb323 into arighi:main Feb 2, 2024
4 checks passed
@arighi
Copy link
Owner

arighi commented Feb 2, 2024

Applied, thanks!

I also like the fact that we rely on can_use_kvm() now and we can get rid of the unnecessary os.access("/dev/kvm") in architectures.py.

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

Successfully merging this pull request may close these issues.

2 participants