Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1711847

Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table

From Benjamin Herrenschmidt <benh@kernel.crashing.org>
Newsgroups linux.kernel
Subject Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table
Date 2017-08-15 07:50 +0200
Message-ID <ueCTM-5Ho-13@gated-at.bofh.it> (permalink)
References <ubKNP-5gB-3@gated-at.bofh.it> <uekav-2tS-29@gated-at.bofh.it> <uenrI-4CX-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 2017-08-14 at 14:12 +0100, Robin Murphy wrote:
> On the other hand, if the check is not so much to mitigate malicious
> guests attacking the system as to prevent dumb guests breaking
> themselves (e.g. if some or all of the MSI-X capability is actually
> emulated), then allowing things to sometimes go wrong on the grounds of
> an irrelevant hardware feature doesn't seem correct :/

There is 0 value in trying to prevent the guest kernel from shooting
itself in the foot. There are so many other ways it can do it that I
fail the point of even attempting it here.

In addition, this actually harms performance on some devices. There
are cases where the MSI-X table shares a page with other registrers
that are used during normal device operation. This is especially
problematic on architectures such as powerpc that use 64K pages.

Those devices thus suffer a massive performance loss, for the sake of
something that never happens in practice (especially on pseries where
the MSI configuration is done by paravirt calls, thus by qemu itself).

Cheers,
Ben.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table Alexey Kardashevskiy <aik@ozlabs.ru> - 2017-08-14 11:50 +0200
  Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table Robin Murphy <robin.murphy@arm.com> - 2017-08-14 15:20 +0200
    Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table Jike Song <jike.song@intel.com> - 2017-08-15 03:50 +0200
      Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table Jike Song <jike.song@intel.com> - 2017-08-15 03:50 +0200
        Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X  table Benjamin Herrenschmidt <benh@kernel.crashing.org> - 2017-08-15 07:50 +0200
      Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X  table Benjamin Herrenschmidt <benh@kernel.crashing.org> - 2017-08-15 05:00 +0200
        RE: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X  table David Laight <David.Laight@ACULAB.COM> - 2017-08-15 16:50 +0200
    Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X  table Benjamin Herrenschmidt <benh@kernel.crashing.org> - 2017-08-15 07:50 +0200
    Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X  table Alex Williamson <alex.williamson@redhat.com> - 2017-08-15 18:40 +0200
      Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X  table Benjamin Herrenschmidt <benh@kernel.crashing.org> - 2017-08-16 02:40 +0200
        Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X  table Alex Williamson <alex.williamson@redhat.com> - 2017-08-16 19:00 +0200
          Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X  table Benjamin Herrenschmidt <benh@kernel.crashing.org> - 2017-08-17 07:20 +0200
          RE: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X  table David Laight <David.Laight@ACULAB.COM> - 2017-08-17 13:00 +0200
            Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X  table Alex Williamson <alex.williamson@redhat.com> - 2017-08-17 21:30 +0200
  Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table Alexey Kardashevskiy <aik@ozlabs.ru> - 2017-08-21 04:50 +0200

csiph-web