]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kvm/book3s: Add support for H_IPOLL and H_XIRR_X in XICS emulation
authorPaul Mackerras <paulus@samba.org>
Thu, 23 May 2013 15:42:21 +0000 (15:42 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 31 May 2013 22:29:27 +0000 (08:29 +1000)
commit853d8ce2062c3360e78e28bb666b1c867c995cdf
treef6fea15542dba7adb3ba4ce9575ece75b05e8c9b
parentdd7372a485bd4ae661cea248f526549a78e9f34b
powerpc/kvm/book3s: Add support for H_IPOLL and H_XIRR_X in XICS emulation

This adds the remaining two hypercalls defined by PAPR for manipulating
the XICS interrupt controller, H_IPOLL and H_XIRR_X.  H_IPOLL returns
information about the priority and pending interrupts for a virtual
cpu, without changing any state.  H_XIRR_X is like H_XIRR in that it
reads and acknowledges the highest-priority pending interrupt, but it
also returns the timestamp (timebase register value) from when the
interrupt was first received by the hypervisor.  Currently we just
return the current time, since we don't do any software queueing of
virtual interrupts inside the XICS emulation code.

These hcalls are not currently used by Linux guests, but may be in
future.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/hvcall.h
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_pr_papr.c
arch/powerpc/kvm/book3s_xics.c