]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/usb/hcd-xhci: Unimplemented/guest error logging for port MMIO
authorPhil Dennis-Jordan <phil@philjordan.eu>
Fri, 27 Dec 2024 12:13:34 +0000 (13:13 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 31 Dec 2024 20:21:34 +0000 (21:21 +0100)
commit916bf7f93793df8690f48111207961a85f5a25b1
tree9abd1317c4346bb65862b9cf26645c83940cd0c0
parent92270bdff02bc6ba77a091f066576f96d5a96f7b
hw/usb/hcd-xhci: Unimplemented/guest error logging for port MMIO

The XHCI device code uses tracing rather than logging on various code
paths that are so far unimplemented. In some cases, these code paths
actually indicate faulty guest software. This patch switches instances
in the read and write handlers for the port MMIO region to use
qemu_log_mask() with LOG_UNIMP or LOG_GUEST_ERROR, as appropriate in
each case.

Signed-off-by: Phil Dennis-Jordan <phil@philjordan.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20241227121336.25838-5-phil@philjordan.eu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/usb/hcd-xhci.c