Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions score/itf/plugins/qemu/qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,13 @@ def __check_kvm_readable_when_necessary(self):
sys.exit(-1)

def __build_qemu_command(self):
# Use hardware virtualization if available
accel = ["-enable-kvm"] if self._accelerator_support == "kvm" else ["-accel", "tcg"]

return (
[
f"{self.__qemu_path}",
"--enable-kvm"
if self._accelerator_support == "kvm"
else " -accel tcg", # Use hardware virtualization if available
[f"{self.__qemu_path}"]
+ accel
+ [
"-smp",
f"{self.__cores},maxcpus={self.__cores},cores={self.__cores}",
"-cpu",
Expand Down
Loading