qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] aebbdb: vhost: do not verify ring mappings wh


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] aebbdb: vhost: do not verify ring mappings when IOMMU is e...
Date: Tue, 17 Apr 2018 03:13:12 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: aebbdbee559389a9f0d0e56670b9332534b6bb9b
      
https://github.com/qemu/qemu/commit/aebbdbee559389a9f0d0e56670b9332534b6bb9b
  Author: Jason Wang <address@hidden>
  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 <address@hidden>
Cc: Igor Mammedov <address@hidden>
Cc: Michael S. Tsirkin <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
Reviewed-by: Igor Mammedov <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 32f418c0031ff6319a7c9f666e420566e95c70ae
      
https://github.com/qemu/qemu/commit/32f418c0031ff6319a7c9f666e420566e95c70ae
  Author: Peter Maydell <address@hidden>
  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 <address@hidden>

# gpg: Signature made Mon 16 Apr 2018 17:12:59 BST
# gpg:                using RSA key 281F0DB8D28D5469
# gpg: Good signature from "Michael S. Tsirkin <address@hidden>"
# gpg:                 aka "Michael S. Tsirkin <address@hidden>"
# 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 <address@hidden>


Compare: https://github.com/qemu/qemu/compare/9cb4e398c2f9...32f418c0031f

reply via email to

[Prev in Thread] Current Thread [Next in Thread]