Commit ecd1070
KVM: PPC: Book3S HV: Handle pending exceptions on guest entry with MSR_EE
Commit 026728d ("KVM: PPC: Book3S HV P9: Inject pending xive
interrupts at guest entry") changed guest entry so that if external
interrupts are enabled, BOOK3S_IRQPRIO_EXTERNAL is not tested for. Test
for this regardless of MSR_EE.
For an L1 host, do not inject an interrupt, but always
use LPCR_MER. If the L0 desires it can inject an interrupt.
Fixes: 026728d ("KVM: PPC: Book3S HV P9: Inject pending xive interrupts at guest entry")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[jpn: use kvmpcc_get_msr(), write commit message]
Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231201132618.555031-7-vaibhav@linux.ibm.com1 parent ec0f663 commit ecd1070
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4738 | 4738 | | |
4739 | 4739 | | |
4740 | 4740 | | |
4741 | | - | |
4742 | | - | |
| 4741 | + | |
| 4742 | + | |
| 4743 | + | |
| 4744 | + | |
| 4745 | + | |
| 4746 | + | |
| 4747 | + | |
| 4748 | + | |
| 4749 | + | |
4743 | 4750 | | |
4744 | | - | |
4745 | | - | |
4746 | | - | |
4747 | | - | |
| 4751 | + | |
| 4752 | + | |
| 4753 | + | |
4748 | 4754 | | |
4749 | 4755 | | |
4750 | 4756 | | |
| |||
0 commit comments