OSDN Git Service

KVM: PPC: Permit SRR1 flags in more injected interrupt types
authorNicholas Piggin <npiggin@gmail.com>
Thu, 30 Mar 2023 10:32:23 +0000 (20:32 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 3 Apr 2023 04:54:44 +0000 (14:54 +1000)
commit460ba21d83fef766a5d34260e464c9ab8f10aa05
treea71c29e754b6227851569ebd2ba8f2ec297445d0
parent43d05c6123ca1ace5982ca326c156502e735b7d5
KVM: PPC: Permit SRR1 flags in more injected interrupt types

The prefix architecture in ISA v3.1 introduces a prefixed bit in SRR1
for many types of synchronous interrupts which is set when the interrupt
is caused by a prefixed instruction.

This requires KVM to be able to set this bit when injecting interrupts
into a guest. Plumb through the SRR1 "flags" argument to the core_queue
APIs where it's missing for this. For now they are set to 0, which is
no change.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Fixup kvmppc_core_queue_alignment() in booke.c]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230330103224.3589928-2-npiggin@gmail.com
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_64_mmu_radix.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_nested.c
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/booke.c
arch/powerpc/kvm/emulate_loadstore.c
arch/powerpc/kvm/powerpc.c