[PATCH v6] vfio/pci: Propagate ACPI notifications to user-space via eventfd

2023-06-30 Thread Grzegorz Jaszczyk
notification value has been consumed. Signed-off-by: Grzegorz Jaszczyk --- Changelog v5..v6 - Get rid of #if IS_ENABLED(CONFIG_ACPI) from vfio_pci_intrs.c - There is no need to keep vfio_acpi_notification struct definition in header, make it private and move to cpi_notify.c - Add lockdep_asserts

Re: [PATCH v5] vfio/pci: Propagate ACPI notifications to user-space via eventfd

2023-06-27 Thread Grzegorz Jaszczyk
pt., 16 cze 2023 o 00:54 Alex Williamson napisał(a): > > On Fri, 9 Jun 2023 13:39:50 +0000 > Grzegorz Jaszczyk wrote: > > > To allow pass-through devices receiving ACPI notifications, permit to > > register ACPI notify handler (via VFIO_DEVICE_SET_IRQS) for a given >

[PATCH v5] vfio/pci: Propagate ACPI notifications to user-space via eventfd

2023-06-09 Thread Grzegorz Jaszczyk
notification value has been consumed. Signed-off-by: Grzegorz Jaszczyk --- Changelog v4..v5 Address Alex Williamson's feedback: - s/vfio_acpi_notify.{c,o}/acpi_notify.{c,o} - Do not put acpi_notify to its own module but fold it into main vfio.ko. Additionally select it from VFIO_PCI_CORE instead

Re: [PATCH v4] vfio/pci: Propagate ACPI notifications to user-space via eventfd

2023-06-09 Thread Grzegorz Jaszczyk
czw., 8 cze 2023 o 00:27 Alex Williamson napisał(a): > > On Wed, 7 Jun 2023 22:22:12 +0200 > Grzegorz Jaszczyk wrote: > > > > > > > > Can we drop the NTFY and just use VFIO_PCI_ACPI_IRQ_INDEX? > > > > > > ACPI_IRQ at first glance could b

Re: [PATCH v4] vfio/pci: Propagate ACPI notifications to user-space via eventfd

2023-06-07 Thread Grzegorz Jaszczyk
Hi Alex, Could you please clarify two things before I will send v5? Please see inline śr., 31 maj 2023 o 17:34 Grzegorz Jaszczyk napisał(a): > > czw., 25 maj 2023 o 22:41 Alex Williamson > napisał(a): > > > > On Mon, 22 May 2023 16:58:11 + > > Grzegorz Jaszczyk

Re: [PATCH v4] vfio/pci: Propagate ACPI notifications to user-space via eventfd

2023-05-31 Thread Grzegorz Jaszczyk
czw., 25 maj 2023 o 22:41 Alex Williamson napisał(a): > > On Mon, 22 May 2023 16:58:11 +0000 > Grzegorz Jaszczyk wrote: > > > To allow pass-through devices receiving ACPI notifications, permit to > > register ACPI notify handler (via VFIO_DEVICE_SET_IRQS) for a given >

[PATCH v4] vfio/pci: Propagate ACPI notifications to user-space via eventfd

2023-05-22 Thread Grzegorz Jaszczyk
notification value has been consumed. Signed-off-by: Grzegorz Jaszczyk --- Changelog v3..v4 Address Alex Williamson feedback: - Instead of introducing new ioctl used for eventfd registration, take advantage of VFIO_DEVICE_SET_IRQS which already supports virtual IRQs for things like error

Re: [PATCH v3] vfio/pci: Propagate ACPI notifications to user-space via eventfd

2023-05-17 Thread Grzegorz Jaszczyk
wt., 16 maj 2023 o 01:00 Alex Williamson napisał(a): > > On Tue, 2 May 2023 13:27:00 +0000 > Grzegorz Jaszczyk wrote: > > > From: Grzegorz Jaszczyk > > > > To allow pass-through devices receiving ACPI notifications, permit to > > register ACPI noti

[PATCH v3] vfio/pci: Propagate ACPI notifications to user-space via eventfd

2023-05-02 Thread Grzegorz Jaszczyk
From: Grzegorz Jaszczyk To allow pass-through devices receiving ACPI notifications, permit to register ACPI notify handler (via introduced new ioctl) for a given device. The handler role is to receive and propagate such ACPI notifications to the user-space through the user provided eventfd

[PATCH v2] vfio/pci: Propagate ACPI notifications to user-space via eventfd

2023-04-24 Thread Grzegorz Jaszczyk
notification value has been consumed. Signed-off-by: Grzegorz Jaszczyk --- Changelog v1..v2: - The v2 implementation is actually completely different then v1: instead of using acpi netlink events for propagating ACPI notifications to the user space take advantage of eventfd, which can

Re: [PATCH] vfio/pci: Propagate ACPI notifications to the user-space

2023-03-24 Thread Grzegorz Jaszczyk
czw., 23 mar 2023 o 18:07 Alex Williamson napisał(a): > > On Thu, 9 Mar 2023 14:41:23 +0100 > Grzegorz Jaszczyk wrote: > > > czw., 9 mar 2023 o 00:38 Alex Williamson > > napisał(a): > > > > > > On Wed, 8 Mar 2023 14:44:28 -0800 > > > Dominik B

Re: [PATCH] vfio/pci: Propagate ACPI notifications to the user-space

2023-03-22 Thread Grzegorz Jaszczyk
Hi Alex Could you please refer to my previous message? Thank you in advance, Grzegorz czw., 9 mar 2023 o 14:41 Grzegorz Jaszczyk napisał(a): > > czw., 9 mar 2023 o 00:38 Alex Williamson > napisał(a): > > > > On Wed, 8 Mar 2023 14:44:28 -0800 > > Dominik Behr wro

Re: [PATCH] vfio/pci: Propagate ACPI notifications to the user-space

2023-03-09 Thread Grzegorz Jaszczyk
czw., 9 mar 2023 o 00:38 Alex Williamson napisał(a): > > On Wed, 8 Mar 2023 14:44:28 -0800 > Dominik Behr wrote: > > > On Wed, Mar 8, 2023 at 12:06 PM Alex Williamson > > wrote: > > > > > > On Wed, 8 Mar 2023 10:45:51 -0800 > > > Dominik Behr wrote: > > > > > > > It is the same interface as