On Thu, May 30, 2024 at 1:17 PM Pankaj Gupta <pankaj.gupta@xxxxxxx> wrote: > > -#define TYPE_SEV_GUEST "sev-guest" > -OBJECT_DECLARE_SIMPLE_TYPE(SevGuestState, SEV_GUEST) > > +OBJECT_DECLARE_TYPE(SevCommonState, SevCommonStateClass, SEV_COMMON) > +OBJECT_DECLARE_TYPE(SevGuestState, SevGuestStateClass, SEV_GUEST) A separate SevGuestStateClass is not necessary. > - .interfaces = (InterfaceInfo[]) { > - { TYPE_USER_CREATABLE }, > - { } > - } > + .class_size = sizeof(SevGuestStateClass), Declaring .class_size is not needed either because it's the same as the superclass. Paolo