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 Behr wrote: > > > > > > > On Wed, Mar 8, 2023 at

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

2023-03-23 Thread Alex Williamson
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 Behr wrote: > > > > > On Wed, Mar 8, 2023 at 12:06 PM Alex Williamson > > > wrote: > > > > > > > > On Wed, 8 Mar 2023

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 wrote: > > > > > On Wed, Mar 8,

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

2023-03-09 Thread Jason Gunthorpe
On Wed, Mar 08, 2023 at 05:51:32PM -0800, Dominik Behr wrote: > All other ACPI events that are available to userspace are on netlink already. > As for translation of ACPI paths. It is sort of a requirement for VMM > to translate the PCI path from host to guest because the PCI device > tree in the

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

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

2023-03-09 Thread Dominik Behr
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 other ACPI events like AC adapter LID etc > > are forwarded to user-space. > > ACPI events are not particularly high frequency like interrupts. >

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

2023-03-09 Thread Dominik Behr
All other ACPI events that are available to userspace are on netlink already. As for translation of ACPI paths. It is sort of a requirement for VMM to translate the PCI path from host to guest because the PCI device tree in the guest is totally different already. The same follows for ACPI paths.

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

2023-03-09 Thread Dominik Behr
On Wed, Mar 8, 2023 at 9:49 AM Alex Williamson wrote: > Adding libvirt folks. This intentionally designs the interface in a > way that requires a privileged intermediary to monitor netlink on the > host, associate messages to VMs based on an attached device, and > re-inject the event to the

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

2023-03-08 Thread Alex Williamson
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 other ACPI events like AC adapter LID etc > > > are forwarded to

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

2023-03-08 Thread Alex Williamson
On Wed, 8 Mar 2023 10:45:51 -0800 Dominik Behr wrote: > On Wed, Mar 8, 2023 at 9:49 AM Alex Williamson > wrote: > > > Adding libvirt folks. This intentionally designs the interface in a > > way that requires a privileged intermediary to monitor netlink on the > > host, associate messages to

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

2023-03-08 Thread Alex Williamson
[Cc +libvir-list] On Wed, 8 Mar 2023 12:41:24 +0100 Grzegorz Jaszczyk wrote: > śr., 8 mar 2023 o 00:42 Alex Williamson > napisał(a): > > > > On Tue, 7 Mar 2023 22:05:53 + > > Grzegorz Jaszczyk wrote: > > > > > From: Dominik Behr > > > > > > Hitherto there was no support for