lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 8 Mar 2023 08:11:05 +0000
From:   "Tian, Kevin" <kevin.tian@...el.com>
To:     Alex Williamson <alex.williamson@...hat.com>,
        Grzegorz Jaszczyk <jaz@...ihalf.com>
CC:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "dmy@...ihalf.com" <dmy@...ihalf.com>,
        "tn@...ihalf.com" <tn@...ihalf.com>,
        "dbehr@...gle.com" <dbehr@...gle.com>,
        "upstream@...ihalf.com" <upstream@...ihalf.com>,
        "dtor@...gle.com" <dtor@...gle.com>, "jgg@...pe.ca" <jgg@...pe.ca>,
        "cohuck@...hat.com" <cohuck@...hat.com>,
        "abhsahu@...dia.com" <abhsahu@...dia.com>,
        "yishaih@...dia.com" <yishaih@...dia.com>,
        "Liu, Yi L" <yi.l.liu@...el.com>,
        "kvm@...r.kernel.org" <kvm@...r.kernel.org>,
        "Dominik Behr" <dbehr@...omium.org>
Subject: RE: [PATCH] vfio/pci: Propagate ACPI notifications to the user-space

> From: Alex Williamson <alex.williamson@...hat.com>
> Sent: Wednesday, March 8, 2023 7:42 AM
> 
> On Tue,  7 Mar 2023 22:05:53 +0000
> Grzegorz Jaszczyk <jaz@...ihalf.com> wrote:
> 
> > From: Dominik Behr <dbehr@...omium.org>
> >
> > Hitherto there was no support for propagating ACPI notifications to the
> > guest drivers. In order to provide such support, install a handler for
> > notifications on an ACPI device during vfio-pci device registration. The
> > handler role is to propagate such ACPI notifications to the user-space
> > via acpi netlink events, which allows VMM to receive and propagate them
> > further to the VMs.
> >
> > Thanks to the above, the actual driver for the pass-through device,
> > which belongs to the guest, can receive and react to device specific
> > notifications.
> 
> What consumes these events?  Has this been proposed to any VM
> management tools like libvirt?  What sort of ACPI events are we
> expecting to see here and what does userspace do with them?
> 

and the VM sees a virtual platform and virtual ACPI. Usually an ACPI
event triggers parsing-executing certain ACPI function which needs to
further access platform resource. Presumably someone should copy
the related ACPI function into virtual ACPI table and then in concept
we should allow an ACPI event routed to userspace only if the related
platform resource has been assigned to the user. 

What would the mechanism to audit it? and if we have a way to do it
probably the ACPI event would be translated into a more generic
event mechanism in the vfio-platform driver covering related resource.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ