From 8a7d552cb3684570491a5ecaa8b78818404ed2fb Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Fri, 9 Sep 2011 14:30:39 +0530 Subject: balloon: Disassociate handlers from balloon device on unplug When a balloon device gets unplugged, allow the balloon handlers to be freed. Reported-by: Shaolong Hu Signed-off-by: Amit Shah Signed-off-by: Amit Shah Signed-off-by: Anthony Liguori --- balloon.h | 1 + 1 file changed, 1 insertion(+) (limited to 'balloon.h') diff --git a/balloon.h b/balloon.h index 3df14e645a..f59e2881f6 100644 --- a/balloon.h +++ b/balloon.h @@ -22,6 +22,7 @@ typedef void (QEMUBalloonStatus)(void *opaque, MonitorCompletion cb, int qemu_add_balloon_handler(QEMUBalloonEvent *event_func, QEMUBalloonStatus *stat_func, void *opaque); +void qemu_remove_balloon_handler(void *opaque); void monitor_print_balloon(Monitor *mon, const QObject *data); int do_info_balloon(Monitor *mon, MonitorCompletion cb, void *opaque); -- cgit v1.2.3