Re: [PATCH 02/10] hypervisor: move HostdevHostSupportsPassthroughVFIO

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

 



On 10/11/24 20:13, Praveen K Paladugu wrote:
> Move HostdevHostSupportsPassthroughVFIO method to hypervisor to be
> shared between qemu and ch drivers.
> 
> Signed-off-by: Praveen K Paladugu <prapal@xxxxxxxxxxxxxxxxxxx>
> ---
>  src/hypervisor/virhostdev.c  | 16 ++++++++++++++++
>  src/hypervisor/virhostdev.h  |  2 ++
>  src/libvirt_private.syms     |  1 +
>  src/qemu/qemu_capabilities.c |  2 +-
>  src/qemu/qemu_domain.c       |  2 +-
>  src/qemu/qemu_driver.c       |  2 +-
>  src/qemu/qemu_hostdev.c      | 15 ---------------
>  src/qemu/qemu_hostdev.h      |  2 --
>  tests/domaincapstest.c       |  2 +-
>  9 files changed, 23 insertions(+), 21 deletions(-)
> 
> diff --git a/src/hypervisor/virhostdev.c b/src/hypervisor/virhostdev.c
> index 4b06e74894..220578f0c0 100644
> --- a/src/hypervisor/virhostdev.c
> +++ b/src/hypervisor/virhostdev.c
> @@ -29,12 +29,14 @@
>  #include "virhostdev.h"
>  #include "viralloc.h"
>  #include "virerror.h"
> +#include "virfile.h"
>  #include "virlog.h"
>  #include "virutil.h"
>  #include "virnetdev.h"
>  #include "configmake.h"
>  
>  #define VIR_FROM_THIS VIR_FROM_NONE
> +#define VIR_DEV_VFIO "/dev/vfio/vfio"

Nit pick. This #define VIR_FROM_THIS and VIR_LOG_INIT() is considered on
block. The VIR_DEV_VFIO can be defined ...

>  
>  VIR_LOG_INIT("util.hostdev");


... here.

Michal



[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