-----Original Message-----
From: qemu-block-bounces+minwoo.im.dev=gmail.com@nongnu.org <qemu-block-
bounces+minwoo.im.dev=gmail.com@nongnu.org> On Behalf Of Akihiko Odaki
Sent: Monday, February 12, 2024 7:21 PM
To: Philippe Mathieu-Daudé <philmd@linaro.org>; Michael S. Tsirkin
<mst@redhat.com>; Marcel Apfelbaum <marcel.apfelbaum@gmail.com>; Alex
Williamson <alex.williamson@redhat.com>; Cédric Le Goater <clg@redhat.com>;
Paolo Bonzini <pbonzini@redhat.com>; Daniel P. Berrangé <berrange@redhat.com>;
Eduardo Habkost <eduardo@habkost.net>; Sriram Yagnaraman
<sriram.yagnaraman@est.tech>; Jason Wang <jasowang@redhat.com>; Keith Busch
<kbusch@kernel.org>; Klaus Jensen <its@irrelevant.dk>
Cc: qemu-devel@nongnu.org; qemu-block@nongnu.org; Akihiko Odaki
<akihiko.odaki@daynix.com>
Subject: [PATCH v3 6/7] pcie_sriov: Reuse SR-IOV VF device instances
Disable SR-IOV VF devices by reusing code to power down PCI devices
instead of removing them when the guest requests to disable VFs. This
allows to realize devices and report VF realization errors at PF
realization time.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Hello Akihiko,
I think this patch fixes the issue reported in [1]. The latest master branch
also causes an object-related assertion error when we enable VF(s) and disable
through sysfs over and over again (at least twice). But this issue is also
fixed with your patch.
**
ERROR:../qom/object.c:753:object_finalize: assertion failed: (obj->parent ==
NULL)
Bail out! ERROR:../qom/object.c:753:object_finalize: assertion failed:
(obj->parent == NULL)