vapic.c (7489f7f3f81dcb776df8c1b9a9db281fc21bf05f) vapic.c (e3d0814368d00e7985c31edf5d0cfce45972d4be)
1/*
2 * TPR optimization for 32-bit Windows guests (XP and Server 2003)
3 *
4 * Copyright (C) 2007-2008 Qumranet Technologies
5 * Copyright (C) 2012 Jan Kiszka, Siemens AG
6 *
7 * This work is licensed under the terms of the GNU GPL version 2, or
8 * (at your option) any later version. See the COPYING file in the

--- 836 unchanged lines hidden (view full) ---

845 VMSTATE_END_OF_LIST()
846 }
847};
848
849static void vapic_class_init(ObjectClass *klass, void *data)
850{
851 DeviceClass *dc = DEVICE_CLASS(klass);
852
1/*
2 * TPR optimization for 32-bit Windows guests (XP and Server 2003)
3 *
4 * Copyright (C) 2007-2008 Qumranet Technologies
5 * Copyright (C) 2012 Jan Kiszka, Siemens AG
6 *
7 * This work is licensed under the terms of the GNU GPL version 2, or
8 * (at your option) any later version. See the COPYING file in the

--- 836 unchanged lines hidden (view full) ---

845 VMSTATE_END_OF_LIST()
846 }
847};
848
849static void vapic_class_init(ObjectClass *klass, void *data)
850{
851 DeviceClass *dc = DEVICE_CLASS(klass);
852
853 dc->reset = vapic_reset;
853 device_class_set_legacy_reset(dc, vapic_reset);
854 dc->vmsd = &vmstate_vapic;
855 dc->realize = vapic_realize;
856}
857
858static const TypeInfo vapic_type = {
859 .name = TYPE_VAPIC,
860 .parent = TYPE_SYS_BUS_DEVICE,
861 .instance_size = sizeof(VAPICROMState),
862 .class_init = vapic_class_init,
863};
864
865static void vapic_register(void)
866{
867 type_register_static(&vapic_type);
868}
869
870type_init(vapic_register);
854 dc->vmsd = &vmstate_vapic;
855 dc->realize = vapic_realize;
856}
857
858static const TypeInfo vapic_type = {
859 .name = TYPE_VAPIC,
860 .parent = TYPE_SYS_BUS_DEVICE,
861 .instance_size = sizeof(VAPICROMState),
862 .class_init = vapic_class_init,
863};
864
865static void vapic_register(void)
866{
867 type_register_static(&vapic_type);
868}
869
870type_init(vapic_register);