diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-03-26 04:48:39 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-04-01 09:40:45 +0200 |
commit | a061a71e0d8f259fbb241485f6601bd02c7d086a (patch) | |
tree | a75d071cb96812242df5cf1cfecda7340551e67a /replay/replay.c | |
parent | 10b8eb94c0902b58d83df84a9eeae709a3480e82 (diff) |
qapi: qom: do not use target-specific conditionals
ObjectType and ObjectOptions are defined in a target-independent file,
therefore they do not have access to target-specific configuration
symbols such as CONFIG_PSERIES or CONFIG_SEV. For this reason,
pef-guest and sev-guest are currently omitted when compiling the
generated QAPI files. In addition, this causes ObjectType to have
different definitions depending on the file that is including
qapi-types-qom.h (currently this is not causing any issues, but it
is wrong).
Define the two enum entries and the SevGuestProperties type
unconditionally to avoid the issue. We do not expect to have
many target-dependent user-creatable classes, so it is not
particularly problematic.
Reported-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'replay/replay.c')
0 files changed, 0 insertions, 0 deletions