intel-iommu: introduce vtd_page_walk_info
commitfe215b0cbb8c1f4b4af0a64aa5c02042080dd537
authorPeter Xu <peterx@redhat.com>
Fri, 18 May 2018 07:25:13 +0000 (18 15:25 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 23 May 2018 14:33:58 +0000 (23 17:33 +0300)
treef70e90bd9805b7ba85b676480229ebb93f8fb0f7
parent4f8a62a933a79094e44bc1b16b63bb23e62d67b4
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>
hw/i386/intel_iommu.c