From bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 Mon Sep 17 00:00:00 2001 From: RajithaY Date: Tue, 25 Apr 2017 03:31:15 -0700 Subject: Adding qemu as a submodule of KVMFORNFV This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY --- qemu/hw/core/hotplug.c | 60 -------------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 qemu/hw/core/hotplug.c (limited to 'qemu/hw/core/hotplug.c') diff --git a/qemu/hw/core/hotplug.c b/qemu/hw/core/hotplug.c deleted file mode 100644 index 645cfca1b..000000000 --- a/qemu/hw/core/hotplug.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Hotplug handler interface. - * - * Copyright (c) 2014 Red Hat Inc. - * - * Authors: - * Igor Mammedov , - * - * This work is licensed under the terms of the GNU GPL, version 2 or later. - * See the COPYING file in the top-level directory. - */ -#include "qemu/osdep.h" -#include "hw/hotplug.h" -#include "qemu/module.h" - -void hotplug_handler_plug(HotplugHandler *plug_handler, - DeviceState *plugged_dev, - Error **errp) -{ - HotplugHandlerClass *hdc = HOTPLUG_HANDLER_GET_CLASS(plug_handler); - - if (hdc->plug) { - hdc->plug(plug_handler, plugged_dev, errp); - } -} - -void hotplug_handler_unplug_request(HotplugHandler *plug_handler, - DeviceState *plugged_dev, - Error **errp) -{ - HotplugHandlerClass *hdc = HOTPLUG_HANDLER_GET_CLASS(plug_handler); - - if (hdc->unplug_request) { - hdc->unplug_request(plug_handler, plugged_dev, errp); - } -} - -void hotplug_handler_unplug(HotplugHandler *plug_handler, - DeviceState *plugged_dev, - Error **errp) -{ - HotplugHandlerClass *hdc = HOTPLUG_HANDLER_GET_CLASS(plug_handler); - - if (hdc->unplug) { - hdc->unplug(plug_handler, plugged_dev, errp); - } -} - -static const TypeInfo hotplug_handler_info = { - .name = TYPE_HOTPLUG_HANDLER, - .parent = TYPE_INTERFACE, - .class_size = sizeof(HotplugHandlerClass), -}; - -static void hotplug_handler_register_types(void) -{ - type_register_static(&hotplug_handler_info); -} - -type_init(hotplug_handler_register_types) -- cgit 1.2.3-korg