All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Extend check callback usability for irq connect notifier
@ 2015-04-28  9:18 ` Eric Auger
  0 siblings, 0 replies; 14+ messages in thread
From: Eric Auger @ 2015-04-28  9:18 UTC (permalink / raw)
  To: eric.auger, eric.auger, qemu-devel, pbonzini, peter.crosthwaite
  Cc: alex.williamson, kvmarm, patches

The VFIO platform device gets connected to the platform bus
on a machine init done notifier. Only at that point irqfd can be
setup. An irq connect notifier would be helpful to do that job.
Instead of adding a new callback at sysbus or qdev level, this
series proposes to use the property check() callback (credit to
Paolo).

- the callback is passed to qdev_init_gpio_out_named
- sysbus class now holds a irq_set_hook method usable as check
  callback
- sysbus_init_irq initializes the callback to the class method
- object_set_link_property is modified so that
  * the target object is populated before the check
  * check takes an Object ** enabling to access the object
    container.

Then The VFIO platform device would override the irq_set_hook
method in a separate patch.

Please let me know if those modifications are acceptable. Else
I will follow Peter's proposal. 

Best Regards

Eric

Eric Auger (3):
  qdev: pass the check callback to qdev_init_gpio_out_named
  qdev: check callback takes Object **target as third argument
  sysbus: add irq_set_hook

 hw/core/qdev-properties.c    |  2 +-
 hw/core/qdev.c               |  8 +++++---
 hw/core/sysbus.c             |  8 +++++++-
 include/hw/qdev-core.h       |  3 ++-
 include/hw/qdev-properties.h |  2 +-
 include/hw/sysbus.h          |  1 +
 include/qom/object.h         |  8 +++++---
 qom/object.c                 | 15 +++++++++------
 8 files changed, 31 insertions(+), 16 deletions(-)

-- 
1.8.3.2

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-04-29  7:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-28  9:18 [PATCH 0/3] Extend check callback usability for irq connect notifier Eric Auger
2015-04-28  9:18 ` [Qemu-devel] " Eric Auger
2015-04-28  9:18 ` [PATCH 1/3] qdev: pass the check callback to qdev_init_gpio_out_named Eric Auger
2015-04-28  9:18   ` [Qemu-devel] " Eric Auger
2015-04-28  9:18 ` [PATCH 2/3] qdev: check callback takes Object **target as third argument Eric Auger
2015-04-28  9:18   ` [Qemu-devel] " Eric Auger
2015-04-28 11:47   ` Paolo Bonzini
2015-04-28 11:47     ` [Qemu-devel] " Paolo Bonzini
2015-04-28  9:18 ` [PATCH 3/3] sysbus: add irq_set_hook Eric Auger
2015-04-28  9:18   ` [Qemu-devel] " Eric Auger
2015-04-28 18:21 ` [PATCH 0/3] Extend check callback usability for irq connect notifier Peter Crosthwaite
2015-04-28 18:21   ` [Qemu-devel] " Peter Crosthwaite
2015-04-29  7:43   ` Eric Auger
2015-04-29  7:43     ` Eric Auger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.