xref: /linux/tools/testing/kunit/qemu_config.py (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
187c9c163SBrendan Higgins# SPDX-License-Identifier: GPL-2.0
287c9c163SBrendan Higgins#
387c9c163SBrendan Higgins# Collection of configs for building non-UML kernels and running them on QEMU.
487c9c163SBrendan Higgins#
587c9c163SBrendan Higgins# Copyright (C) 2021, Google LLC.
687c9c163SBrendan Higgins# Author: Brendan Higgins <brendanhiggins@google.com>
787c9c163SBrendan Higgins
8e6f61920SDaniel Latypovfrom dataclasses import dataclass
9e6f61920SDaniel Latypovfrom typing import List
1087c9c163SBrendan Higgins
1187c9c163SBrendan Higgins
12e6f61920SDaniel Latypov@dataclass(frozen=True)
13e6f61920SDaniel Latypovclass QemuArchParams:
14e6f61920SDaniel Latypov  linux_arch: str
15e6f61920SDaniel Latypov  kconfig: str
16e6f61920SDaniel Latypov  qemu_arch: str
17e6f61920SDaniel Latypov  kernel_path: str
18e6f61920SDaniel Latypov  kernel_command_line: str
19e6f61920SDaniel Latypov  extra_qemu_params: List[str]
20*5ffb8629SGeert Uytterhoeven  serial: str = 'stdio'
21