qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] hw/hyperv/vmbus: Wire up vmstate_vmbus_dev


From: Thomas Huth
Subject: [PATCH 1/2] hw/hyperv/vmbus: Wire up vmstate_vmbus_dev
Date: Thu, 3 Jun 2021 12:41:38 +0200

The vmstate_vmbus_dev structure is currently completely unused.
Looks like this has been forgotten to get wired up  in the
vmbus_dev_class_init() function.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 hw/hyperv/vmbus.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/hyperv/vmbus.c b/hw/hyperv/vmbus.c
index 984caf898d..2384103cb0 100644
--- a/hw/hyperv/vmbus.c
+++ b/hw/hyperv/vmbus.c
@@ -2445,6 +2445,7 @@ static void vmbus_dev_class_init(ObjectClass *klass, void 
*data)
     kdev->realize = vmbus_dev_realize;
     kdev->unrealize = vmbus_dev_unrealize;
     kdev->reset = vmbus_dev_reset;
+    kdev->vmsd = &vmstate_vmbus_dev;
 }
 
 static Property vmbus_dev_instanceid =
-- 
2.27.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]