mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH V2 0/2] xen: privcmd: Add ioeventfd support
@ 2023-10-05 10:25 Viresh Kumar
  2023-10-05 10:25 ` [PATCH V2 1/2] xen: evtchn: Allow shared registration of IRQ handers Viresh Kumar
  2023-10-05 10:25 ` [PATCH V2 2/2] xen: privcmd: Add support for ioeventfd Viresh Kumar
  0 siblings, 2 replies; 3+ messages in thread
From: Viresh Kumar @ 2023-10-05 10:25 UTC (permalink / raw)
  To: Juergen Gross, Oleksandr Tyshchenko, Stefano Stabellini
  Cc: Viresh Kumar, Vincent Guittot, Alex Bennée, stratos-dev,
	Erik Schilling, Manos Pitsidianakis, Mathieu Poirier,
	linux-kernel, xen-devel

Hello,

Now that irqfd support (backend to guest interrupt) is already merged, this
series solves the other part of the problem, i.e. ioeventfd (guest to backend
interrupt).

More details inside the commits.

--
Viresh

V1->V2:
- Increment irq_info refcnt only for valid info.
- Use u64 type for addr.
- Add comments for use of barriers.
- Use spin lock instead of mutex as we need to use them in irq handler.
- Add a warning when kioreq is getting freed and ioeventfds list isn't empty.
- Use struct_size().
- Validate number of vcpus as well.

Viresh Kumar (2):
  xen: evtchn: Allow shared registration of IRQ handers
  xen: privcmd: Add support for ioeventfd

 drivers/xen/Kconfig               |   8 +-
 drivers/xen/events/events_base.c  |   3 +-
 drivers/xen/evtchn.c              |   2 +-
 drivers/xen/privcmd.c             | 398 +++++++++++++++++++++++++++++-
 include/uapi/xen/privcmd.h        |  18 ++
 include/xen/interface/hvm/ioreq.h |  51 ++++
 6 files changed, 472 insertions(+), 8 deletions(-)
 create mode 100644 include/xen/interface/hvm/ioreq.h

-- 
2.31.1.272.g89b43f80a514


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

end of thread, other threads:[~2023-10-05 16:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-05 10:25 [PATCH V2 0/2] xen: privcmd: Add ioeventfd support Viresh Kumar
2023-10-05 10:25 ` [PATCH V2 1/2] xen: evtchn: Allow shared registration of IRQ handers Viresh Kumar
2023-10-05 10:25 ` [PATCH V2 2/2] xen: privcmd: Add support for ioeventfd Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®