hvf: complete 1G page support
authorAlexander Graf <agraf@csgraf.de>
Thu, 20 Apr 2023 22:52:58 +0000 (00:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Nov 2024 17:01:55 +0000 (18:01 +0100)
commit654076bc20491a7d7b3c53921487715e73a35162
tree488ffb3fb9e7bf991d57b895d147f1dced36e441
parent0266aef8cd6511e5de0c0cb818d02ae7814d4940
hvf: complete 1G page support

Hvf on x86 only supported 2MiB large pages, but never bothered to strip
out the 1GiB page size capability from -cpu host. With QEMU 8.0.0 this
became a problem because OVMF started to use 1GiB pages by default.

Let's just unconditionally add 1GiB page walk support to the walker.

With this fix applied, I can successfully run OVMF again.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1603
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Reported-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Reported-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Phil Dennis-Jordan <phil@philjordan.eu>
Link: https://lore.kernel.org/r/20230420225258.58009-1-agraf@csgraf.de
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/hvf/x86_mmu.c