diff options
author | Nicholas Piggin <[email protected]> | 2022-09-08 23:25:41 +1000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2022-09-28 01:07:19 +1000 |
commit | bc91c04bfff7cdf676011b97bb21b2861d7b21c9 (patch) | |
tree | 69c5c80307a4767df01f2daa4063dbd5850ec354 /lib/mpi/mpi-internal.h | |
parent | 0a5bfb824a6ea35e54b7e5ac6f881beea5e309d2 (diff) |
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions