hvf: Avoid mapping regions < PAGE_SIZE as ram
commita443c3e225ea78f316f01a12a2fb1d55671e8256
authorAlexander Graf <agraf@csgraf.de>
Mon, 25 Oct 2021 13:21:47 +0000 (25 15:21 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Nov 2021 14:57:27 +0000 (2 15:57 +0100)
treeb5056e0000df7c5415a72cd6932fb780e2861995
parentff66ee53690abef92c1ea5c22b79e857cfa2485a
hvf: Avoid mapping regions < PAGE_SIZE as ram

HVF has generic memory listener code that adds all RAM regions as HVF RAM
regions. However, HVF can only handle page aligned, page granule regions.

So let's ignore regions that are not page aligned and sized. They will be
trapped as MMIO instead.

Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211025132147.28308-1-agraf@csgraf.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/hvf/hvf-accel-ops.c