]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/pci: Remove console drivers
authorAlex Williamson <alex.williamson@redhat.com>
Wed, 22 Jun 2022 14:01:34 +0000 (16:01 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Jun 2022 09:10:32 +0000 (11:10 +0200)
commitd9dc7d2ddf9a8d114299bfd743eb786795a66741
tree5d804018bd50de1a3af398b2f52dce9c78fa87e9
parent08da9220e9e4d5583a665140318e1c86ef2cbc33
vfio/pci: Remove console drivers

Console drivers can create conflicts with PCI resources resulting in
userspace getting mmap failures to memory BARs.  This is especially
evident when trying to re-use the system primary console for userspace
drivers.  Use the aperture helpers to remove these conflicts.

v3:
* call aperture_remove_conflicting_pci_devices()

Reported-by: Laszlo Ersek <lersek@redhat.com>
Suggested-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220622140134.12763-4-tzimmermann@suse.de
drivers/vfio/pci/vfio_pci_core.c