mirror of
https://github.com/qemu/qemu.git
synced 2024-11-23 02:43:50 +08:00
Misc fixes for 9.2
- fix remaining gdbstub test cases to exit cleanly - update MAINTAINERS with qemu-rust mailing list details - re-factor virtio-gpu and fix coverity warnings -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEZoWumedRZ7yvyN81+9DbCVqeKkQFAmc7aQwACgkQ+9DbCVqe KkQufwf/XN5dcHxddhUHCLQUNA/5STiO5P10vHOGpknqwT/ZKADAbY8gQsoJovSp qxczZPFpHlnGkf+AV3wrj2IcFUWlvlhgTw5njsMTOSSjK0jtI2MZrNn2v+6hmelg y8ACB+LHkj34Ood9y5H6augCiKsMC7ad2mpXEMQgcZzpp4KlAutu8nbsYpYlAF40 1d2Wdtkrt++jPHQGgp0pPqAxq5WyvR3uSdidUFGfmpAqkCRs0ExosqEgj/ODzdHF WrvLy9ISdCjZk+5XOxfadmz1vJ31QcZ6pcmkZRXJAJR4p7EST5BTfS10IBNIipgs C25TuT+IH9+It0n/Sohf3NlxTnbTDw== =TYAI -----END PGP SIGNATURE----- Merge tag 'pull-9.2-rc-updates-181124-1' of https://gitlab.com/stsquad/qemu into staging Misc fixes for 9.2 - fix remaining gdbstub test cases to exit cleanly - update MAINTAINERS with qemu-rust mailing list details - re-factor virtio-gpu and fix coverity warnings # -----BEGIN PGP SIGNATURE----- # # iQEzBAABCgAdFiEEZoWumedRZ7yvyN81+9DbCVqeKkQFAmc7aQwACgkQ+9DbCVqe # KkQufwf/XN5dcHxddhUHCLQUNA/5STiO5P10vHOGpknqwT/ZKADAbY8gQsoJovSp # qxczZPFpHlnGkf+AV3wrj2IcFUWlvlhgTw5njsMTOSSjK0jtI2MZrNn2v+6hmelg # y8ACB+LHkj34Ood9y5H6augCiKsMC7ad2mpXEMQgcZzpp4KlAutu8nbsYpYlAF40 # 1d2Wdtkrt++jPHQGgp0pPqAxq5WyvR3uSdidUFGfmpAqkCRs0ExosqEgj/ODzdHF # WrvLy9ISdCjZk+5XOxfadmz1vJ31QcZ6pcmkZRXJAJR4p7EST5BTfS10IBNIipgs # C25TuT+IH9+It0n/Sohf3NlxTnbTDw== # =TYAI # -----END PGP SIGNATURE----- # gpg: Signature made Mon 18 Nov 2024 16:19:24 GMT # gpg: using RSA key 6685AE99E75167BCAFC8DF35FBD0DB095A9E2A44 # gpg: Good signature from "Alex Bennée (Master Work Key) <alex.bennee@linaro.org>" [full] # Primary key fingerprint: 6685 AE99 E751 67BC AFC8 DF35 FBD0 DB09 5A9E 2A44 * tag 'pull-9.2-rc-updates-181124-1' of https://gitlab.com/stsquad/qemu: hw/display: check frame buffer can hold blob hw/display: factor out the scanout blob to fb conversion MAINTAINERS: CC rust/ patches to qemu-rust list tests/tcg: Stop using exit() in the gdbstub testcases Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
70e6512795
@ -3338,6 +3338,10 @@ F: rust/qemu-api
|
||||
F: rust/qemu-api-macros
|
||||
F: rust/rustfmt.toml
|
||||
|
||||
Rust-related patches CC here
|
||||
L: qemu-rust@nongnu.org
|
||||
F: rust/
|
||||
|
||||
SLIRP
|
||||
M: Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
S: Maintained
|
||||
@ -4241,6 +4245,7 @@ F: docs/devel/docs.rst
|
||||
|
||||
Rust build system integration
|
||||
M: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
|
||||
L: qemu-rust@nongnu.org
|
||||
S: Maintained
|
||||
F: scripts/rust/
|
||||
F: rust/.gitignore
|
||||
|
@ -10,10 +10,16 @@ import traceback
|
||||
|
||||
fail_count = 0
|
||||
|
||||
|
||||
def gdb_exit(status):
|
||||
gdb.execute(f"exit {status}")
|
||||
|
||||
|
||||
class arg_parser(argparse.ArgumentParser):
|
||||
def exit(self, status=None, message=""):
|
||||
print("Wrong GDB script test argument! " + message)
|
||||
gdb.execute("exit 1")
|
||||
gdb_exit(1)
|
||||
|
||||
|
||||
def report(cond, msg):
|
||||
"""Report success/fail of a test"""
|
||||
@ -38,11 +44,11 @@ def main(test, expected_arch=None):
|
||||
"connected to {}".format(expected_arch))
|
||||
except (gdb.error, AttributeError):
|
||||
print("SKIP: not connected")
|
||||
exit(0)
|
||||
gdb_exit(0)
|
||||
|
||||
if gdb.parse_and_eval("$pc") == 0:
|
||||
print("SKIP: PC not set")
|
||||
exit(0)
|
||||
gdb_exit(0)
|
||||
|
||||
try:
|
||||
test()
|
||||
@ -62,4 +68,4 @@ def main(test, expected_arch=None):
|
||||
pass
|
||||
|
||||
print("All tests complete: {} failures".format(fail_count))
|
||||
gdb.execute(f"exit {fail_count}")
|
||||
gdb_exit(fail_count)
|
||||
|
@ -8,7 +8,7 @@ from __future__ import print_function
|
||||
#
|
||||
|
||||
import gdb
|
||||
from test_gdbstub import main, report
|
||||
from test_gdbstub import gdb_exit, main, report
|
||||
|
||||
|
||||
def check_interrupt(thread):
|
||||
@ -49,7 +49,7 @@ def run_test():
|
||||
"""
|
||||
if len(gdb.selected_inferior().threads()) == 1:
|
||||
print("SKIP: set to run on a single thread")
|
||||
exit(0)
|
||||
gdb_exit(0)
|
||||
|
||||
gdb.execute("set scheduler-locking on")
|
||||
for thread in gdb.selected_inferior().threads():
|
||||
|
@ -5,7 +5,7 @@ This runs as a sourced script (via -x, via run-test.py).
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
"""
|
||||
import ctypes
|
||||
from test_gdbstub import main, report
|
||||
from test_gdbstub import gdb_exit, main, report
|
||||
|
||||
|
||||
def probe_proc_self_mem():
|
||||
@ -22,7 +22,7 @@ def run_test():
|
||||
"""Run through the tests one by one"""
|
||||
if not probe_proc_self_mem():
|
||||
print("SKIP: /proc/self/mem is not usable")
|
||||
exit(0)
|
||||
gdb_exit(0)
|
||||
gdb.Breakpoint("break_here")
|
||||
gdb.execute("continue")
|
||||
val = gdb.parse_and_eval("*(char[2] *)q").string()
|
||||
|
@ -3,7 +3,7 @@
|
||||
This runs as a sourced script (via -x, via run-test.py)."""
|
||||
from __future__ import print_function
|
||||
import gdb
|
||||
from test_gdbstub import main, report
|
||||
from test_gdbstub import gdb_exit, main, report
|
||||
|
||||
|
||||
def run_test():
|
||||
@ -12,7 +12,7 @@ def run_test():
|
||||
# m68k GDB supports only GDB_OSABI_SVR4, but GDB_OSABI_LINUX is
|
||||
# required for the info proc support (see set_gdbarch_info_proc()).
|
||||
print("SKIP: m68k GDB does not support GDB_OSABI_LINUX")
|
||||
exit(0)
|
||||
gdb_exit(0)
|
||||
mappings = gdb.execute("info proc mappings", False, True)
|
||||
report(isinstance(mappings, str), "Fetched the mappings from the inferior")
|
||||
# Broken with host page size > guest page size
|
||||
|
Loading…
Reference in New Issue
Block a user