RE: [PATCH 4/8] vfio: Remove #ifdefs around CONFIG_VFIO_NOIOMMU

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

 



> From: Jason Gunthorpe <jgg@xxxxxxxxxx>
> Sent: Wednesday, August 31, 2022 9:02 AM
>  #ifdef CONFIG_VFIO_NOIOMMU
> -static bool noiommu __read_mostly;
> +static bool vfio_noiommu __read_mostly;
>  module_param_named(enable_unsafe_noiommu_mode,
> -		   noiommu, bool, S_IRUGO | S_IWUSR);
> +		   vfio_noiommu, bool, S_IRUGO | S_IWUSR);
>  MODULE_PARM_DESC(enable_unsafe_noiommu_mode, "Enable UNSAFE,
> no-IOMMU mode.  This mode provides no device isolation, no DMA
> translation, no host kernel protection, cannot be used for device assignment
> to virtual machines, requires RAWIO permissions, and will taint the kernel.  If
> you do not know what this is for, step away. (default: false)");
> +#else
> +enum { vfio_noiommu = false };
>  #endif

what is the benefit of enum here?




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux