OSDN Git Service

hw/display/qxl: Have qxl_log_command Return early if no log_cmd handler
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 28 Nov 2022 20:27:37 +0000 (21:27 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 29 Nov 2022 23:15:26 +0000 (18:15 -0500)
commit61c34fc194b776ecadc39fb26b061331107e5599
treea31e02bc1e14a256434cddd43061a5ecee0ed645
parentecbb6bd865d23ec412b9f2b715be784e45389f91
hw/display/qxl: Have qxl_log_command Return early if no log_cmd handler

Only 3 command types are logged: no need to call qxl_phys2virt()
for the other types. Using different cases will help to pass
different structure sizes to qxl_phys2virt() in a pair of commits.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20221128202741.4945-2-philmd@linaro.org>
hw/display/qxl-logger.c