lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d7e5bb6f-0af8-442d-c68a-364f6067048d@redhat.com>
Date:   Sun, 22 Jan 2017 16:01:28 +0800
From:   Jason Wang <jasowang@...hat.com>
To:     "Michael S. Tsirkin" <mst@...hat.com>, linux-kernel@...r.kernel.org
Cc:     Alex Williamson <alex.williamson@...hat.com>, kvm@...r.kernel.org,
        virtualization@...ts.linux-foundation.org
Subject: Re: [PATCH v3] vfio error recovery: kernel support



On 2017年01月22日 15:38, Michael S. Tsirkin wrote:
> diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h
> index 26c155b..6b0f416 100644
> --- a/include/linux/virtio_config.h
> +++ b/include/linux/virtio_config.h
> @@ -159,7 +159,17 @@ static inline bool virtio_has_iommu_quirk(const struct virtio_device *vdev)
>   	 * Note the reverse polarity of the quirk feature (compared to most
>   	 * other features), this is for compatibility with legacy systems.
>   	 */
> -	return !virtio_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM);
> +	if (virtio_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM))
> +		return false;
> +
> +	/*
> +	 * fastboot emulator for ARM puts virtio devices behind an SMMU
> +	 * and never bypasses it for legacy devices.
> +	 */
> +	if (IS_ENABLED(CONFIG_ARM) || IS_ENABLED(CONFIG_ARM64))
> +		return virtio_has_feature(vdev, VIRTIO_F_VERSION_1);
> +
> +	return true;
>   }
>   

Hi Michael:

This part of codes seems unrelated.

Thanks

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ