On Mon, 21 Mar 2022 17:27:27 +0500
Fidaullah Noonari <fidaullah.noon...@emumba.com> wrote:

> +
> +def check_noiommu_mode():
> +    """checks and enables the noiommu mode for vfio drivers"""
> +    global noiommu_flag
> +    filename = "/sys/module/vfio/parameters/enable_unsafe_noiommu_mode"
> +
> +    try:
> +        with open(filename,"r") as f:
> +            if f.read(1) == "1":
> +                return

Note: flake8 reports missing comma after filename in the open() statement.

Overall
Acked-by: Stephen Hemminger <step...@networkplumber.org>

Reply via email to