summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIgor Mammedov2016-06-23 17:30:14 +0200
committerEduardo Habkost2016-07-20 17:02:19 +0200
commit9c156f9de52b75510d3951dfede2cf96773b6626 (patch)
treeb3458434da22be138f794c641ecd792eed7faca2 /include
parentapic: kvm-apic: Fix crash due to access to freed memory region (diff)
downloadqemu-9c156f9de52b75510d3951dfede2cf96773b6626.tar.gz
qemu-9c156f9de52b75510d3951dfede2cf96773b6626.tar.xz
qemu-9c156f9de52b75510d3951dfede2cf96773b6626.zip
(kvm)apic: Add unrealize callbacks
Callbacks will do necessary cleanups before APIC device is deleted Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com> Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com> Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com> Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/i386/apic_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/i386/apic_internal.h b/include/hw/i386/apic_internal.h
index 8330592638..e549a62e7f 100644
--- a/include/hw/i386/apic_internal.h
+++ b/include/hw/i386/apic_internal.h
@@ -136,6 +136,7 @@ typedef struct APICCommonClass
DeviceClass parent_class;
DeviceRealize realize;
+ DeviceUnrealize unrealize;
void (*set_base)(APICCommonState *s, uint64_t val);
void (*set_tpr)(APICCommonState *s, uint8_t val);
uint8_t (*get_tpr)(APICCommonState *s);