diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2022-09-08 15:25:41 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-09-27 17:07:19 +0200 |
commit | bc91c04bfff7cdf676011b97bb21b2861d7b21c9 (patch) | |
tree | 69c5c80307a4767df01f2daa4063dbd5850ec354 /arch/powerpc/kvm/book3s_64_mmu_host.c | |
parent | KVM: PPC: Book3S HV: Fix decrementer migration (diff) | |
download | linux-bc91c04bfff7cdf676011b97bb21b2861d7b21c9.tar.xz linux-bc91c04bfff7cdf676011b97bb21b2861d7b21c9.zip |
KVM: PPC: Book3S HV P9: Clear vcpu cpu fields before enabling host irqs
On guest entry, vcpu->cpu and vcpu->arch.thread_cpu are set after
disabling host irqs. On guest exit there is a window whre tick time
accounting briefly enables irqs before these fields are cleared.
Move them up to ensure they are cleared before host irqs are run.
This is possibly not a problem, but is more symmetric and makes the
fields less surprising.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220908132545.4085849-1-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/kvm/book3s_64_mmu_host.c')
0 files changed, 0 insertions, 0 deletions