summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-10-10 13:30:47 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2012-10-12 08:48:58 -0400
commitcd0608e71e9757f4dae35bcfb4e88f4d1a03a8ab (patch)
treecb355f8337a3daab7f6109abe69966de68a1a9f8
parent34b6f01a79bd65fbd06511d2cb7b28e33a506246 (diff)
downloadlwn-cd0608e71e9757f4dae35bcfb4e88f4d1a03a8ab.tar.gz
lwn-cd0608e71e9757f4dae35bcfb4e88f4d1a03a8ab.zip
xen/bootup: allow read_tscp call for Xen PV guests.
The hypervisor will trap it. However without this patch, we would crash as the .read_tscp is set to NULL. This patch fixes it and sets it to the native_read_tscp call. CC: stable@vger.kernel.org Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
-rw-r--r--arch/x86/xen/enlighten.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 70f140447a28..668bbfee0cce 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1164,6 +1164,8 @@ static const struct pv_cpu_ops xen_cpu_ops __initconst = {
.read_tsc = native_read_tsc,
.read_pmc = native_read_pmc,
+ .read_tscp = native_read_tscp,
+
.iret = xen_iret,
.irq_enable_sysexit = xen_sysexit,
#ifdef CONFIG_X86_64