Re: [libvirt PATCH 19/21] qemu: Generate command line for virtio-iommu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 08, 2021 at 18:51:54 +0200, Andrea Bolognani wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=1653327
> 
> Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
> ---
>  src/qemu/qemu_command.c                         | 17 ++++++++++++++---
>  .../virtio-iommu-aarch64.aarch64-latest.args    |  1 +
>  .../virtio-iommu-x86_64.x86_64-latest.args      |  1 +
>  3 files changed, 16 insertions(+), 3 deletions(-)



> @@ -6239,6 +6240,16 @@ qemuBuildIOMMUCommandLine(virCommand *cmd,
>          break;
>  
>      case VIR_DOMAIN_IOMMU_MODEL_VIRTIO:
> +        if (qemuBuildVirtioDevStr(&opts, "virtio-iommu", qemuCaps,
> +                                  VIR_DOMAIN_DEVICE_IOMMU, iommu) < 0) {
> +            return -1;
> +        }
> +
> +        if (qemuBuildDeviceAddressStr(&opts, def, &iommu->info) < 0)
> +            return -1;

Note that both function won't exist after I push my series refactoring
-device generation. You'll need to use the *Props versions.




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux