qapi/vfio: Rename VfioMigrationState to Qapi*, and drop prefix
authorMarkus Armbruster <armbru@redhat.com>
Wed, 4 Sep 2024 11:18:36 +0000 (13:18 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 10 Sep 2024 12:03:45 +0000 (14:03 +0200)
commit64f5e9db7706c8f4a7d7b521596caae9a1106337
treee19a9828129489d052072ce771cd631067cb18bf
parentb1019999e86ca816eb1754ff8b907a61ae294969
qapi/vfio: Rename VfioMigrationState to Qapi*, and drop prefix

QAPI's 'prefix' feature can make the connection between enumeration
type and its constants less than obvious.  It's best used with
restraint.

VfioMigrationState has a 'prefix' that overrides the generated
enumeration constants' prefix to QAPI_VFIO_MIGRATION_STATE.

We could simply drop 'prefix', but then the enumeration constants
would look as if they came from kernel header linux/vfio.h.

Rename the type to QapiVfioMigrationState instead, so that 'prefix' is
not needed.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240904111836.3273842-20-armbru@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/migration.c
qapi/vfio.json