xen: Add xen_pin_vcpu() to support calling functions on a dedicated pCPU
authorJuergen Gross <jgross@suse.com>
Mon, 29 Aug 2016 06:48:45 +0000 (08:48 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 5 Sep 2016 11:52:40 +0000 (13:52 +0200)
commit99bc67536d04bcb9133546284acfb15d033b8bfe
tree90054328e529dd9267920fa2443c6dfb40e6fce2
parentdf8ce9d78a4e7fbe7ddfd8ccee3ecaaa0013e883
xen: Add xen_pin_vcpu() to support calling functions on a dedicated pCPU

Some hardware models (e.g. Dell Studio 1555 laptops) require calls to
the firmware to be issued on CPU 0 only. As Dom0 might have to use
these calls, add xen_pin_vcpu() to achieve this functionality.

In case either the domain doesn't have the privilege to make the
related hypercall or the hypervisor isn't supporting it, issue a
warning once and disable further pinning attempts.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: David Vrabel <david.vrabel@citrix.com>
Cc: Douglas_Warzecha@dell.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: akataria@vmware.com
Cc: boris.ostrovsky@oracle.com
Cc: chrisw@sous-sol.org
Cc: hpa@zytor.com
Cc: jdelvare@suse.com
Cc: jeremy@goop.org
Cc: linux@roeck-us.net
Cc: pali.rohar@gmail.com
Cc: rusty@rustcorp.com.au
Cc: virtualization@lists.linux-foundation.org
Cc: xen-devel@lists.xenproject.org
Link: http://lkml.kernel.org/r/1472453327-19050-5-git-send-email-jgross@suse.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/xen/enlighten.c