exec: simplify address_space_get_iotlb_entry
commit076a93d7972c9c1e3839d2f65edc32568a2cce93
authorPeter Xu <peterx@redhat.com>
Tue, 10 Oct 2017 09:42:46 +0000 (10 11:42 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Oct 2017 10:10:38 +0000 (12 12:10 +0200)
treee6f7cca4e04f2f0a5b682de07ed7af65d8d97c96
parentd5e5fafd11be4458443c43f19c1ebdd24d99a751
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>
exec.c