diff options
author | Suresh Warrier <warrier@linux.vnet.ibm.com> | 2016-08-19 05:35:55 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2016-09-12 00:12:23 (GMT) |
commit | 366274f59c4de018f72ab44bb41ccaf3d657eb52 (patch) | |
tree | e4dae5bc867ae5d73a2e04dd16db9f66c3da5e68 /arch/powerpc/include/asm/kvm_ppc.h | |
parent | 644abbb254b1ab171f777431b23e6fb5879599d0 (diff) | |
download | linux-366274f59c4de018f72ab44bb41ccaf3d657eb52.tar.xz |
KVM: PPC: Book3S HV: Update irq stats for IRQs handled in real mode
When a passthrough IRQ is handled completely within KVM real
mode code, it has to also update the IRQ stats since this
does not go through the generic IRQ handling code.
However, the per CPU kstat_irqs field is an allocated (not static)
field and so cannot be directly accessed in real mode safely.
The function this_cpu_inc_rm() is introduced to safely increment
per CPU fields (currently coded for unsigned integers only) that
are allocated and could thus be vmalloced also.
Signed-off-by: Suresh Warrier <warrier@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_ppc.h')
0 files changed, 0 insertions, 0 deletions