target/i386: sev: Remove unused QSevGuestInfoClass
This structure is nothing but an empty wrapper around the parent class, which by QOM conventions means we don't need it at all. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200604064219.436242-2-david@gibson.dropbear.id.au> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
acd0c9416d
commit
b5b9b1ad46
@ -287,7 +287,6 @@ static const TypeInfo qsev_guest_info = {
|
|||||||
.name = TYPE_QSEV_GUEST_INFO,
|
.name = TYPE_QSEV_GUEST_INFO,
|
||||||
.instance_size = sizeof(QSevGuestInfo),
|
.instance_size = sizeof(QSevGuestInfo),
|
||||||
.instance_finalize = qsev_guest_finalize,
|
.instance_finalize = qsev_guest_finalize,
|
||||||
.class_size = sizeof(QSevGuestInfoClass),
|
|
||||||
.class_init = qsev_guest_class_init,
|
.class_init = qsev_guest_class_init,
|
||||||
.instance_init = qsev_guest_init,
|
.instance_init = qsev_guest_init,
|
||||||
.interfaces = (InterfaceInfo[]) {
|
.interfaces = (InterfaceInfo[]) {
|
||||||
|
@ -41,7 +41,6 @@ extern char *sev_get_launch_measurement(void);
|
|||||||
extern SevCapability *sev_get_capabilities(void);
|
extern SevCapability *sev_get_capabilities(void);
|
||||||
|
|
||||||
typedef struct QSevGuestInfo QSevGuestInfo;
|
typedef struct QSevGuestInfo QSevGuestInfo;
|
||||||
typedef struct QSevGuestInfoClass QSevGuestInfoClass;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* QSevGuestInfo:
|
* QSevGuestInfo:
|
||||||
@ -64,10 +63,6 @@ struct QSevGuestInfo {
|
|||||||
uint32_t reduced_phys_bits;
|
uint32_t reduced_phys_bits;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct QSevGuestInfoClass {
|
|
||||||
ObjectClass parent_class;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct SEVState {
|
struct SEVState {
|
||||||
QSevGuestInfo *sev_info;
|
QSevGuestInfo *sev_info;
|
||||||
uint8_t api_major;
|
uint8_t api_major;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user