OSDN Git Service

hw/core: Improve error message when machine doesn't provide NMIs
authorMarkus Armbruster <armbru@redhat.com>
Tue, 7 Feb 2023 07:51:07 +0000 (08:51 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 23 Feb 2023 13:10:17 +0000 (14:10 +0100)
commita0d0267779850f0dee70656dd7c0d11a458bfbaa
treecff722c8bee55bb86dd8cf2a11be1688e8207b27
parentf1a4697c236aae8f7d13042e4c6a31c228aa8595
hw/core: Improve error message when machine doesn't provide NMIs

The QERR_ macros are leftovers from the days of "rich" error objects.
We've been trying to reduce their remaining use.

Get rid of a use of QERR_UNSUPPORTED, and improve the rather vague
error message

    (qemu) nmi
    Error: this feature or command is not currently supported

to

    Error: machine does not provide NMIs

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230207075115.1525-5-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
hw/core/nmi.c