Skip to content

ptest: enable kvm only when usable, keep slirp for testimage - #99

Merged
danielturull merged 1 commit into
mainfrom
devel
Aug 28, 2026
Merged

danielturull merged 1 commit into
mainfrom
devel

Conversation

@danielturull

Copy link
Copy Markdown
Contributor
  • Keep slirp networking enabled in TEST_RUNQEMUPARAMS for testimage/ptest runs (unchanged, already required for automated runs without root).
  • Add _kvm_available() to check /dev/kvm is present and both readable and writable, mirroring the conditions runqemu enforces for its kvm convenience option.
  • Only append kvm to TEST_RUNQEMUPARAMS when the accelerator is usable; otherwise leave it out so bitbake falls back to full software emulation instead of runqemu failing to initialize KVM.

Assisted-by: kiro:claude-sonnet-5

- Keep slirp networking enabled in TEST_RUNQEMUPARAMS for testimage/ptest
  runs (unchanged, already required for automated runs without root).
- Add _kvm_available() to check /dev/kvm is present and both readable
  and writable, mirroring the conditions runqemu enforces for its kvm
  convenience option.
- Only append kvm to TEST_RUNQEMUPARAMS when the accelerator is usable;
  otherwise leave it out so bitbake falls back to full software
  emulation instead of runqemu failing to initialize KVM.

Assisted-by: kiro:claude-sonnet-5
Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
@danielturull
danielturull merged commit 13d4cc8 into main Aug 28, 2026
6 checks passed
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.

1 participant