[prev in list] [next in list] [prev in thread] [next in thread]
List: qemu-commits
Subject: [Qemu-commits] [qemu/qemu] aebbdb: vhost: do not verify ring mappings when IOMMU is e...
From: GitHub <noreply () github ! com>
Date: 2018-04-17 10:13:12
Message-ID: 5ad5c8b8bde4d_7d532aeb9c909c0c7693 () hookshot-fe-6b2eebc ! cp1-iad ! github ! net ! mail
[Download RAW message or body]
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: aebbdbee559389a9f0d0e56670b9332534b6bb9b
https://github.com/qemu/qemu/commit/aebbdbee559389a9f0d0e56670b9332534b6bb9b
Author: Jason Wang <jasowang@redhat.com>
Date: 2018-04-16 (Mon, 16 Apr 2018)
Changed paths:
M hw/virtio/vhost.c
Log Message:
-----------
vhost: do not verify ring mappings when IOMMU is enabled
When IOMMU is enabled, we store virtqueue metadata as iova (though it
may has _phys suffix) and access them through dma helpers. Any
translation failures could be reported by IOMMU.
In this case, trying to validate iova against gpa won't work and will
cause a false error reporting. So this patch bypasses the ring
verification if IOMMU is enabled which is similar to the behavior
before 0ca1fd2d6878 that calls vhost_memory_map() which is a nop when
IOMMU is enabled.
Fixes: 0ca1fd2d6878 ("vhost: Simplify ring verification checks")
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Commit: 32f418c0031ff6319a7c9f666e420566e95c70ae
https://github.com/qemu/qemu/commit/32f418c0031ff6319a7c9f666e420566e95c70ae
Author: Peter Maydell <peter.maydell@linaro.org>
Date: 2018-04-17 (Tue, 17 Apr 2018)
Changed paths:
M hw/virtio/vhost.c
Log Message:
-----------
Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging
vhost: bugfix
This fixes a regression in vhost.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
# gpg: Signature made Mon 16 Apr 2018 17:12:59 BST
# gpg: using RSA key 281F0DB8D28D5469
# gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
# gpg: aka "Michael S. Tsirkin <mst@redhat.com>"
# Primary key fingerprint: 0270 606B 6F3C DF3D 0B17 0970 C350 3912 AFBE 8E67
# Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA 8A0D 281F 0DB8 D28D 5469
* remotes/mst/tags/for_upstream:
vhost: do not verify ring mappings when IOMMU is enabled
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Compare: https://github.com/qemu/qemu/compare/9cb4e398c2f9...32f418c0031f
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic