diff options
author | 2017-04-25 03:31:15 -0700 | |
---|---|---|
committer | 2017-05-22 06:48:08 +0000 | |
commit | bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch) | |
tree | ca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/hw/core/hotplug.c | |
parent | a14b48d18a9ed03ec191cf16b162206998a895ce (diff) |
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<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/hw/core/hotplug.c')
-rw-r--r-- | qemu/hw/core/hotplug.c | 60 |
1 files changed, 0 insertions, 60 deletions
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 <imammedo@redhat.com>, - * - * 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) |