lkml.org 
[lkml]   [2022]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v5 16/21] KVM: vfio: add s390x hook to register KVM guest designation
    On Mon, Apr 04, 2022 at 01:43:44PM -0400, Matthew Rosato wrote:
    > At the time a KVM is associated with a vfio group, s390x zPCI devices
    > must register a special guest indication (GISA designation) to allow
    > for the use of interpretive execution facilities. This indication is
    > used to ensure that only the specified KVM can interact with the device.
    > Similarly, the indication must be removed once the KVM is no longer
    > associated with the device.
    >
    > This patch adds an s390-specific hook to invoke a KVM registration routine
    > for each device associated with the iommu group; in reality, it will be a
    > NOP for all but zPCI devices on s390x.
    >
    > Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
    > ---
    > virt/kvm/vfio.c | 35 ++++++++++++++++++++++++++++++++++-
    > 1 file changed, 34 insertions(+), 1 deletion(-)

    I wonder if this should be done in the vfio_pci side from the existing
    kvm notifier

    Jason

    \
     
     \ /
      Last update: 2022-04-08 14:46    [W:4.539 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site