hvf: arm: Ignore cache operations on MMIO
authorAlexander Graf <agraf@csgraf.de>
Tue, 26 Oct 2021 07:12:41 +0000 (09:12 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Nov 2021 18:18:33 +0000 (14:18 -0400)
commit5fd6a3e23669444026f84f466a7ed402c203a84e
tree4d4810d8916ceb6e6b459830403f06bbcd796f19
parent9dad363a223df8269175d218413aa8cd265e078e
hvf: arm: Ignore cache operations on MMIO

Apple's Hypervisor.Framework forwards cache operations as MMIO traps
into user space. For MMIO however, these have no meaning: There is no
cache attached to them.

So let's just treat cache data exits as nops.

This fixes OpenBSD booting as guest.

Reported-by: AJ Barris <AwlsomeAlex@github.com>
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Reference: https://github.com/utmapp/UTM/issues/3197
Message-Id: <20211026071241.74889-1-agraf@csgraf.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/arm/hvf/hvf.c