]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/intel_iommu.c
intel_iommu: fix missing BQL in pt fast path
authorPeter Xu <peterx@redhat.com>
Thu, 17 Aug 2017 05:56:14 +0000 (13:56 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 8 Sep 2017 13:15:17 +0000 (16:15 +0300)
commit66a4a0318e6b9539505491e4576fb93a708095d8
treefcb988023d2427fa216f90dca88a3ab9e56167ef
parentc1800a16276582f65807f464a6ab0b7c88a1c16e
intel_iommu: fix missing BQL in pt fast path

In vtd_switch_address_space() we did the memory region switch, however
it's possible that the caller of it has not taken the BQL at all. Make
sure we have it.

CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Jason Wang <jasowang@redhat.com>
CC: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/intel_iommu.c