thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-vfio-remove-bootindex-property-from-qdev-to-qom.patch

9ae3a8
From 394cb4371862245164782e8a98910bc78f90c629 Mon Sep 17 00:00:00 2001
9ae3a8
From: Alex Williamson <alex.williamson@redhat.com>
9ae3a8
Date: Fri, 29 Sep 2017 21:45:24 +0200
9ae3a8
Subject: [PATCH 10/27] vfio: remove bootindex property from qdev to qom
9ae3a8
9ae3a8
RH-Author: Alex Williamson <alex.williamson@redhat.com>
9ae3a8
Message-id: <20170929214524.16765.24180.stgit@gimli.home>
9ae3a8
Patchwork-id: 76767
9ae3a8
O-Subject: [RHEL-7.5 qemu-kvm PATCH 10/16] vfio: remove bootindex property from qdev to qom
9ae3a8
Bugzilla: 1494181
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Auger Eric <eric.auger@redhat.com>
9ae3a8
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
9ae3a8
From: Gonglei <arei.gonglei@huawei.com>
9ae3a8
9ae3a8
Upstream: abc5b3bfe1c77ad622188341d1ee4d49de308ae3
9ae3a8
RHEL: Only taking the instance_init infrastructure, bootindex not
9ae3a8
      moved and vars removed to allow clean build, re-added later.
9ae3a8
9ae3a8
Remove bootindex form qdev property to qom, things will
9ae3a8
continue to work just fine, and we can use qom features
9ae3a8
which are not supported by qdev property.
9ae3a8
9ae3a8
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
9ae3a8
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 hw/misc/vfio.c | 5 +++++
9ae3a8
 1 file changed, 5 insertions(+)
9ae3a8
9ae3a8
diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c
9ae3a8
index 64d4dc7..0af8613 100644
9ae3a8
--- a/hw/misc/vfio.c
9ae3a8
+++ b/hw/misc/vfio.c
9ae3a8
@@ -4060,6 +4060,10 @@ post_reset:
9ae3a8
     vfio_pci_post_reset(vdev);
9ae3a8
 }
9ae3a8
 
9ae3a8
+static void vfio_instance_init(Object *obj)
9ae3a8
+{
9ae3a8
+}
9ae3a8
+
9ae3a8
 static Property vfio_pci_dev_properties[] = {
9ae3a8
     DEFINE_PROP_PCI_HOST_DEVADDR("host", VFIOPCIDevice, host),
9ae3a8
     DEFINE_PROP_STRING("sysfsdev", VFIOPCIDevice, vbasedev.sysfsdev),
9ae3a8
@@ -4105,6 +4109,7 @@ static const TypeInfo vfio_pci_dev_info = {
9ae3a8
     .parent = TYPE_PCI_DEVICE,
9ae3a8
     .instance_size = sizeof(VFIOPCIDevice),
9ae3a8
     .class_init = vfio_pci_dev_class_init,
9ae3a8
+    .instance_init = vfio_instance_init,
9ae3a8
 };
9ae3a8
 
9ae3a8
 static void register_vfio_pci_dev_type(void)
9ae3a8
-- 
9ae3a8
1.8.3.1
9ae3a8