You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: boot-qemu.py
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -75,28 +75,28 @@ def parse_arguments():
75
75
"--shell",
76
76
action="store_true",
77
77
help=
78
-
"Instead of immediately shutting down the machine upon successful boot, pass 'rdinit=/bin/sh' on the kernel command line to allow interacting with the machine via a shell.",
78
+
"Instead of immediately shutting down the machine upon successful boot, pass 'rdinit=/bin/sh' on the kernel command line to allow interacting with the machine via a shell."
79
79
)
80
80
parser.add_argument(
81
81
"-k",
82
82
"--kernel-location",
83
83
required=True,
84
84
type=str,
85
85
help=
86
-
"Path to kernel image or kernel build folder to search for image in. Can be an absolute or relative path.",
86
+
"Path to kernel image or kernel build folder to search for image in. Can be an absolute or relative path."
87
87
)
88
88
parser.add_argument(
89
89
"--no-kvm",
90
90
action="store_true",
91
91
help=
92
-
"Do not use KVM for acceleration even when supported (only recommended for debugging).",
92
+
"Do not use KVM for acceleration even when supported (only recommended for debugging)."
93
93
)
94
94
parser.add_argument(
95
95
"-s",
96
96
"--smp",
97
97
type=int,
98
98
help=
99
-
"Number of processors for virtual machine. By default, only machines spawned with KVM will use multiple vCPUS.",
99
+
"Number of processors for virtual machine. By default, only machines spawned with KVM will use multiple vCPUS."
100
100
)
101
101
parser.add_argument(
102
102
"-t",
@@ -656,7 +656,7 @@ def get_qemu_args(cfg):
656
656
dtb=kernel.parent.joinpath(dtb_dir, dtb)
657
657
ifnotdtb.exists():
658
658
utils.die(
659
-
f"'{dtb.stem}' is required for booting but it could not be found at '{dtb}'",
659
+
f"'{dtb.stem}' is required for booting but it could not be found at '{dtb}'"
660
660
)
661
661
662
662
qemu_args+= ["-dtb", dtb]
@@ -678,11 +678,10 @@ def get_qemu_args(cfg):
678
678
qemu_args+= ["-cpu", kvm_cpu]
679
679
qemu_args+= ["-enable-kvm"]
680
680
qemu_args+= ["-smp", str(smp_value)]
681
-
else:
682
-
# By default, we do not use '-smp' with TCG for performance reasons.
683
-
# Only add it if the user explicitly requested it.
684
-
ifsmp_requested:
685
-
qemu_args+= ["-smp", str(smp_value)]
681
+
# By default, we do not use '-smp' with TCG for performance reasons.
682
+
# Only add it if the user explicitly requested it.
0 commit comments