On 9/23/24 11:30, Bernhard Beschow wrote:
Avoids one downcast, making the code more type-safe.

Signed-off-by: Bernhard Beschow <shen...@gmail.com>

That's a bit unrelated to your e500 series. Anyhow,

Reviewed-by: Cédric Le Goater <c...@redhat.com>


Thanks,

C.


---
  hw/vfio/platform.c | 7 +++----
  1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c
index a85c199c76..77bbfbf62c 100644
--- a/hw/vfio/platform.c
+++ b/hw/vfio/platform.c
@@ -318,13 +318,12 @@ static void vfio_platform_eoi(VFIODevice *vbasedev)
  /**
   * vfio_start_eventfd_injection - starts the virtual IRQ injection using
   * user-side handled eventfds
- * @sbdev: the sysbus device handle
+ * @vdev: the VFIO platform device handle
   * @irq: the qemu irq handle
   */
-static void vfio_start_eventfd_injection(SysBusDevice *sbdev, qemu_irq irq)
+static void vfio_start_eventfd_injection(VFIOPlatformDevice *vdev, qemu_irq 
irq)
  {
-    VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(sbdev);
      VFIOINTp *intp;
QLIST_FOREACH(intp, &vdev->intp_list, next) {
@@ -417,7 +416,7 @@ fail_vfio:
      kvm_irqchip_remove_irqfd_notifier(kvm_state, intp->interrupt, irq);
      abort();
  fail_irqfd:
-    vfio_start_eventfd_injection(sbdev, irq);
+    vfio_start_eventfd_injection(vdev, irq);
      return;
  }


Reply via email to