From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] linux: Enable PCI passthrough for QEMU
Date: Wed, 03 Aug 2022 09:28:21 +0100 [thread overview]
Message-ID: <6A01E19E-30A0-4E8A-934C-D87D2F7A8138@ipfire.org> (raw)
In-Reply-To: <1fa0c74d-4dc5-9e12-4c09-73db1278cbf3@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 3710 bytes --]
Reviewed-by: Michael Tremer <michael.tremer(a)ipfire.org>
> On 2 Aug 2022, at 17:01, Peter Müller <peter.mueller(a)ipfire.org> wrote:
>
> Fixes: #12754
> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
> ---
> config/kernel/kernel.config.aarch64-ipfire | 12 +++++++++++-
> config/kernel/kernel.config.armv6l-ipfire | 12 +++++++++++-
> config/kernel/kernel.config.riscv64-ipfire | 12 +++++++++++-
> config/kernel/kernel.config.x86_64-ipfire | 12 +++++++++++-
> 4 files changed, 44 insertions(+), 4 deletions(-)
>
> diff --git a/config/kernel/kernel.config.aarch64-ipfire b/config/kernel/kernel.config.aarch64-ipfire
> index 9232335ff..123679467 100644
> --- a/config/kernel/kernel.config.aarch64-ipfire
> +++ b/config/kernel/kernel.config.aarch64-ipfire
> @@ -6740,7 +6740,17 @@ CONFIG_UIO=m
> # CONFIG_UIO_NETX is not set
> # CONFIG_UIO_PRUSS is not set
> # CONFIG_UIO_MF624 is not set
> -# CONFIG_VFIO is not set
> +CONFIG_VFIO=m
> +CONFIG_VFIO_IOMMU_TYPE1=m
> +CONFIG_VFIO_VIRQFD=m
> +# CONFIG_VFIO_NOIOMMU is not set
> +CONFIG_VFIO_PCI_CORE=m
> +CONFIG_VFIO_PCI_MMAP=y
> +CONFIG_VFIO_PCI_INTX=y
> +CONFIG_VFIO_PCI=m
> +CONFIG_VFIO_PCI_VGA=y
> +CONFIG_VFIO_PCI_IGD=y
> +# CONFIG_VFIO_MDEV is not set
> CONFIG_VIRT_DRIVERS=y
> CONFIG_VIRTIO=y
> CONFIG_VIRTIO_PCI_LIB=y
> diff --git a/config/kernel/kernel.config.armv6l-ipfire b/config/kernel/kernel.config.armv6l-ipfire
> index dc0aee51b..ac1d9749c 100644
> --- a/config/kernel/kernel.config.armv6l-ipfire
> +++ b/config/kernel/kernel.config.armv6l-ipfire
> @@ -6747,7 +6747,17 @@ CONFIG_UIO=m
> # CONFIG_UIO_NETX is not set
> # CONFIG_UIO_PRUSS is not set
> # CONFIG_UIO_MF624 is not set
> -# CONFIG_VFIO is not set
> +CONFIG_VFIO=m
> +CONFIG_VFIO_IOMMU_TYPE1=m
> +CONFIG_VFIO_VIRQFD=m
> +# CONFIG_VFIO_NOIOMMU is not set
> +CONFIG_VFIO_PCI_CORE=m
> +CONFIG_VFIO_PCI_MMAP=y
> +CONFIG_VFIO_PCI_INTX=y
> +CONFIG_VFIO_PCI=m
> +CONFIG_VFIO_PCI_VGA=y
> +CONFIG_VFIO_PCI_IGD=y
> +# CONFIG_VFIO_MDEV is not set
> CONFIG_VIRT_DRIVERS=y
> CONFIG_VIRTIO=m
> CONFIG_VIRTIO_MENU=y
> diff --git a/config/kernel/kernel.config.riscv64-ipfire b/config/kernel/kernel.config.riscv64-ipfire
> index 0801f4389..c379447e7 100644
> --- a/config/kernel/kernel.config.riscv64-ipfire
> +++ b/config/kernel/kernel.config.riscv64-ipfire
> @@ -5590,7 +5590,17 @@ CONFIG_UIO_PCI_GENERIC=m
> # CONFIG_UIO_NETX is not set
> # CONFIG_UIO_PRUSS is not set
> # CONFIG_UIO_MF624 is not set
> -# CONFIG_VFIO is not set
> +CONFIG_VFIO=m
> +CONFIG_VFIO_IOMMU_TYPE1=m
> +CONFIG_VFIO_VIRQFD=m
> +# CONFIG_VFIO_NOIOMMU is not set
> +CONFIG_VFIO_PCI_CORE=m
> +CONFIG_VFIO_PCI_MMAP=y
> +CONFIG_VFIO_PCI_INTX=y
> +CONFIG_VFIO_PCI=m
> +CONFIG_VFIO_PCI_VGA=y
> +CONFIG_VFIO_PCI_IGD=y
> +# CONFIG_VFIO_MDEV is not set
> CONFIG_VIRT_DRIVERS=y
> CONFIG_VIRTIO=y
> CONFIG_VIRTIO_PCI_LIB=y
> diff --git a/config/kernel/kernel.config.x86_64-ipfire b/config/kernel/kernel.config.x86_64-ipfire
> index 40975b5fc..fc68e47b1 100644
> --- a/config/kernel/kernel.config.x86_64-ipfire
> +++ b/config/kernel/kernel.config.x86_64-ipfire
> @@ -6241,7 +6241,17 @@ CONFIG_UIO_PCI_GENERIC=m
> # CONFIG_UIO_PRUSS is not set
> # CONFIG_UIO_MF624 is not set
> CONFIG_UIO_HV_GENERIC=m
> -# CONFIG_VFIO is not set
> +CONFIG_VFIO=m
> +CONFIG_VFIO_IOMMU_TYPE1=m
> +CONFIG_VFIO_VIRQFD=m
> +# CONFIG_VFIO_NOIOMMU is not set
> +CONFIG_VFIO_PCI_CORE=m
> +CONFIG_VFIO_PCI_MMAP=y
> +CONFIG_VFIO_PCI_INTX=y
> +CONFIG_VFIO_PCI=m
> +CONFIG_VFIO_PCI_VGA=y
> +CONFIG_VFIO_PCI_IGD=y
> +# CONFIG_VFIO_MDEV is not set
> CONFIG_IRQ_BYPASS_MANAGER=m
> CONFIG_VIRT_DRIVERS=y
> # CONFIG_VBOXGUEST is not set
> --
> 2.35.3
prev parent reply other threads:[~2022-08-03 8:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-02 16:01 Peter Müller
2022-08-03 8:28 ` Michael Tremer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6A01E19E-30A0-4E8A-934C-D87D2F7A8138@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox