]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/ppc: Fix nested-hv HEAI delivery
authorNicholas Piggin <npiggin@gmail.com>
Tue, 30 May 2023 13:21:27 +0000 (23:21 +1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 11 Jun 2023 08:14:51 +0000 (11:14 +0300)
commit8e57e02ff8f655a0fca6877299e26454cc2d1165
treefc683dd34a520779a9757689a2462a93d8f45a49
parentd31e0a384391c072bb121816ce9b7582a65cad9d
target/ppc: Fix nested-hv HEAI delivery

ppc hypervisors turn HEAI interrupts into program interrupts injected
into the guest that executed the illegal instruction, if the hypervisor
doesn't handle it some other way.

The nested-hv implementation failed to account for this HEAI->program
conversion. The virtual hypervisor wants to see the HEAI when running
a nested guest, so that interrupt type can be returned to its KVM
caller.

Fixes: 7cebc5db2eba6 ("target/ppc: Introduce a vhyp framework for nested HV support")
Cc: balaton@eik.bme.hu
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20230530132127.385001-1-npiggin@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
(cherry picked from commit 6c242e79b876b3570b8fd2f10f2a502467758e56)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/ppc/excp_helper.c