]> git.ipfire.org Git - thirdparty/qemu.git/commit
exec: simplify address_space_get_iotlb_entry
authorPeter Xu <peterx@redhat.com>
Tue, 10 Oct 2017 09:42:46 +0000 (11:42 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 5 Dec 2017 04:42:34 +0000 (22:42 -0600)
commitae13e2cfa85858d58a4f1c158bb47a395d983c0c
tree94f3bb222b7e8f6f33912470e0dcdb272bddf077
parentc9dbe3e0fcf704395e35b0ec1cb48041e8c2ea92
exec: simplify address_space_get_iotlb_entry

This patch let address_space_get_iotlb_entry() to use the newly
introduced page_mask parameter in flatview_do_translate(). Then we
will be sure the IOTLB can be aligned to page mask, also we should
nicely support huge pages now when introducing a764040.

Fixes: a764040 ("exec: abstract address_space_do_translate()")
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20171010094247.10173-3-maxime.coquelin@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 076a93d7972c9c1e3839d2f65edc32568a2cce93)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
exec.c