lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CABVgOSn3DbDy1Vb7KGejb73ahf-JuTF_-u+nM7-F=0iGpSuebw@mail.gmail.com>
Date: Tue, 15 Apr 2025 16:26:34 +0800
From: David Gow <davidgow@...gle.com>
To: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
Cc: Thomas Bogendoerfer <tsbogend@...ha.franken.de>, Brendan Higgins <brendan.higgins@...ux.dev>, 
	Rae Moar <rmoar@...gle.com>, Huacai Chen <chenhuacai@...nel.org>, linux-mips@...r.kernel.org, 
	linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org, 
	kunit-dev@...glegroups.com
Subject: Re: [PATCH v3 2/2] kunit: qemu_configs: Add MIPS configurations

On Tue, 15 Apr 2025 at 15:10, Thomas Weißschuh
<thomas.weissschuh@...utronix.de> wrote:
>
> Add basic support to run various MIPS variants via kunit_tool using the
> virtualized malta platform.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
> ---

Seems to work fine here. Thanks very much!

Reviewed-by: David Gow <davidgow@...gle.com>

Cheers,
-- David



>  tools/testing/kunit/qemu_configs/mips.py     | 18 ++++++++++++++++++
>  tools/testing/kunit/qemu_configs/mips64.py   | 19 +++++++++++++++++++
>  tools/testing/kunit/qemu_configs/mips64el.py | 19 +++++++++++++++++++
>  tools/testing/kunit/qemu_configs/mipsel.py   | 18 ++++++++++++++++++
>  4 files changed, 74 insertions(+)
>
> diff --git a/tools/testing/kunit/qemu_configs/mips.py b/tools/testing/kunit/qemu_configs/mips.py
> new file mode 100644
> index 0000000000000000000000000000000000000000..8899ac157b30bd2ee847eacd5b90fe6ad4e5fb04
> --- /dev/null
> +++ b/tools/testing/kunit/qemu_configs/mips.py
> @@ -0,0 +1,18 @@
> +# SPDX-License-Identifier: GPL-2.0
> +
> +from ..qemu_config import QemuArchParams
> +
> +QEMU_ARCH = QemuArchParams(linux_arch='mips',
> +                           kconfig='''
> +CONFIG_32BIT=y
> +CONFIG_CPU_BIG_ENDIAN=y
> +CONFIG_MIPS_MALTA=y
> +CONFIG_SERIAL_8250=y
> +CONFIG_SERIAL_8250_CONSOLE=y
> +CONFIG_POWER_RESET=y
> +CONFIG_POWER_RESET_SYSCON=y
> +''',
> +                           qemu_arch='mips',
> +                           kernel_path='vmlinuz',
> +                           kernel_command_line='console=ttyS0',
> +                           extra_qemu_params=['-M', 'malta'])
> diff --git a/tools/testing/kunit/qemu_configs/mips64.py b/tools/testing/kunit/qemu_configs/mips64.py
> new file mode 100644
> index 0000000000000000000000000000000000000000..1478aed05b94da4914f34c6a8affdcfe34eb88ea
> --- /dev/null
> +++ b/tools/testing/kunit/qemu_configs/mips64.py
> @@ -0,0 +1,19 @@
> +# SPDX-License-Identifier: GPL-2.0
> +
> +from ..qemu_config import QemuArchParams
> +
> +QEMU_ARCH = QemuArchParams(linux_arch='mips',
> +                           kconfig='''
> +CONFIG_CPU_MIPS64_R2=y
> +CONFIG_64BIT=y
> +CONFIG_CPU_BIG_ENDIAN=y
> +CONFIG_MIPS_MALTA=y
> +CONFIG_SERIAL_8250=y
> +CONFIG_SERIAL_8250_CONSOLE=y
> +CONFIG_POWER_RESET=y
> +CONFIG_POWER_RESET_SYSCON=y
> +''',
> +                           qemu_arch='mips64',
> +                           kernel_path='vmlinuz',
> +                           kernel_command_line='console=ttyS0',
> +                           extra_qemu_params=['-M', 'malta', '-cpu', '5KEc'])
> diff --git a/tools/testing/kunit/qemu_configs/mips64el.py b/tools/testing/kunit/qemu_configs/mips64el.py
> new file mode 100644
> index 0000000000000000000000000000000000000000..300c711d7a82500b2ebcb4cf1467b6f72b5c17aa
> --- /dev/null
> +++ b/tools/testing/kunit/qemu_configs/mips64el.py
> @@ -0,0 +1,19 @@
> +# SPDX-License-Identifier: GPL-2.0
> +
> +from ..qemu_config import QemuArchParams
> +
> +QEMU_ARCH = QemuArchParams(linux_arch='mips',
> +                           kconfig='''
> +CONFIG_CPU_MIPS64_R2=y
> +CONFIG_64BIT=y
> +CONFIG_CPU_LITTLE_ENDIAN=y
> +CONFIG_MIPS_MALTA=y
> +CONFIG_SERIAL_8250=y
> +CONFIG_SERIAL_8250_CONSOLE=y
> +CONFIG_POWER_RESET=y
> +CONFIG_POWER_RESET_SYSCON=y
> +''',
> +                           qemu_arch='mips64el',
> +                           kernel_path='vmlinuz',
> +                           kernel_command_line='console=ttyS0',
> +                           extra_qemu_params=['-M', 'malta', '-cpu', '5KEc'])
> diff --git a/tools/testing/kunit/qemu_configs/mipsel.py b/tools/testing/kunit/qemu_configs/mipsel.py
> new file mode 100644
> index 0000000000000000000000000000000000000000..3d3543315b45776d0e77fb5c00c8c0a89eafdffd
> --- /dev/null
> +++ b/tools/testing/kunit/qemu_configs/mipsel.py
> @@ -0,0 +1,18 @@
> +# SPDX-License-Identifier: GPL-2.0
> +
> +from ..qemu_config import QemuArchParams
> +
> +QEMU_ARCH = QemuArchParams(linux_arch='mips',
> +                           kconfig='''
> +CONFIG_32BIT=y
> +CONFIG_CPU_LITTLE_ENDIAN=y
> +CONFIG_MIPS_MALTA=y
> +CONFIG_SERIAL_8250=y
> +CONFIG_SERIAL_8250_CONSOLE=y
> +CONFIG_POWER_RESET=y
> +CONFIG_POWER_RESET_SYSCON=y
> +''',
> +                           qemu_arch='mipsel',
> +                           kernel_path='vmlinuz',
> +                           kernel_command_line='console=ttyS0',
> +                           extra_qemu_params=['-M', 'malta'])
>
> --
> 2.49.0
>

Download attachment "smime.p7s" of type "application/pkcs7-signature" (5281 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ