@@ -46,6 +46,7 @@ def __init__(self, machine):
4646 self .expected_release = None
4747 self .vmlinux = None
4848 self .cpuinfo = None
49+ self .bios = None
4950
5051 # Detect root disks if we're called from scripts/boot/qemu-xxx
5152 base = os .path .dirname (sys .argv [0 ])
@@ -88,6 +89,7 @@ def configure_from_args(self, orig_args):
8889 parser .add_argument ('--kernel-path' , type = str , help = 'Path to kernel (vmlinux)' )
8990 parser .add_argument ('--modules-path' , type = str , help = 'Path to modules tarball' )
9091 parser .add_argument ('--selftests-path' , type = str , help = 'Path to selftests tarball' )
92+ parser .add_argument ('--bios' , type = str , help = 'BIOS option for qemu' )
9193 parser .add_argument ('--cap' , dest = 'machine_caps' , type = str , default = [], action = 'append' , help = 'Machine caps' )
9294 parser .add_argument ('--qemu-path' , dest = 'qemu_path' , type = str , help = 'Path to qemu bin directory' )
9395 parser .add_argument ('--root-disk-path' , dest = 'root_disk_path' , type = str , help = 'Path to root disk directory' )
@@ -156,6 +158,7 @@ def configure_from_args(self, orig_args):
156158 self .net_tests = args .net_tests
157159 self .host_mounts .extend (args .mounts )
158160 self .machine_caps .extend (args .machine_caps )
161+ self .bios = args .bios
159162
160163 def make_callback (func , arg_str ):
161164 if arg_str :
@@ -426,6 +429,10 @@ def cmd(self):
426429 l .append ('-cpu' )
427430 l .append (self .cpu )
428431
432+ if self .bios is not None :
433+ l .append ('-bios' )
434+ l .append (self .bios )
435+
429436 if len (self .cmdline ):
430437 l .append ('-append' )
431438 cmdline = ' ' .join (self .cmdline )
0 commit comments