MCPcopy Create free account
hub / github.com/ClangBuiltLinux/boot-utils / X86QEMURunner

Class X86QEMURunner

boot-qemu.py:664–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662 self._qemu_args += ['-M', 'sun4u', '-cpu', 'TI UltraSparc IIi']
663
664
665class X86QEMURunner(QEMURunner):
666 def __init__(self) -> None:
667 super().__init__()
668
669 self.cmdline += ['console=ttyS0', 'earlycon=uart8250,io,0x3f8']
670 self.use_kvm = platform.machine() == 'x86_64' and self._have_dev_kvm_access()
671
672 self._default_kernel_path = Path('arch/x86/boot/bzImage')
673 self._initrd_arch = 'x86'
674 self._qemu_arch = 'i386'
675 self._qemu_args += ['-M', 'q35']
676
677 def run(self) -> None:
678 if self.use_kvm and not self.efi:
679 # There are a lot of messages along the line of
680 # "Invalid read at addr 0xFED40000, size 1, region '(null)', reason: rejected"
681 # with EFI, so do not bother.
682 self._qemu_args += ['-d', 'unimp,guest_errors']
683
684 super().run()
685
686

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected