OSDN Git Service

intel_iommu: Fix flag check in replay
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Thu, 15 Jun 2023 03:26:25 +0000 (11:26 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 26 Jun 2023 13:50:00 +0000 (09:50 -0400)
commitce735ff03349eeac9efe59c118d78f088a151ec4
treefd6d4fa3c72d0def67cb8800453ed14674f02d86
parente80c1e4c7d057fe5c96db588e651b934757a912e
intel_iommu: Fix flag check in replay

Replay doesn't notify registered notifiers but the one passed
to it. So it's meaningless to check the registered notifier's
synthetic flag.

There is no issue currently as all replay use cases have MAP
flag set, but let's be robust.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20230615032626.314476-3-zhenzhong.duan@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/intel_iommu.c