]> git.ipfire.org Git - thirdparty/qemu.git/commit
intel-iommu: introduce vtd_page_walk_info
authorPeter Xu <peterx@redhat.com>
Fri, 18 May 2018 07:25:13 +0000 (15:25 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 11 Jul 2018 16:48:18 +0000 (11:48 -0500)
commit28048f7bcd9f5b0071b93a0c6c6c1633cbff0699
tree8065d112103aaf4607ab72e9b0acca7b0ac95090
parent1e5b93f620868ec94a025e275d3dc9597ae42674
intel-iommu: introduce vtd_page_walk_info

During the recursive page walking of IOVA page tables, some stack
variables are constant variables and never changed during the whole page
walking procedure.  Isolate them into a struct so that we don't need to
pass those contants down the stack every time and multiple times.

CC: QEMU Stable <qemu-stable@nongnu.org>
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>
(cherry picked from commit fe215b0cbb8c1f4b4af0a64aa5c02042080dd537)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/i386/intel_iommu.c