Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1564324
| From | Jason Wang <jasowang@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3] vfio error recovery: kernel support |
| Date | 2017-01-22 09:10 +0100 |
| Message-ID | <t2lnP-6JN-1@gated-at.bofh.it> (permalink) |
| References | <t2kUP-6jo-41@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3] vfio error recovery: kernel support "Michael S. Tsirkin" <mst@redhat.com> - 2017-01-22 08:40 +0100
Re: [PATCH v3] vfio error recovery: kernel support Jason Wang <jasowang@redhat.com> - 2017-01-22 09:10 +0100
Re: [PATCH v3] vfio error recovery: kernel support "Michael S. Tsirkin" <mst@redhat.com> - 2017-01-23 00:10 +0100
csiph-web