xen/bootup: allow read_tscp call for Xen PV guests.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 10 Oct 2012 17:30:47 +0000 (13:30 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 12 Oct 2012 12:48:58 +0000 (08:48 -0400)
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>
arch/x86/xen/enlighten.c

index 70f140447a28e1cc27ae87540659abc43d67219d..668bbfee0ccebb80113e6f8d31100b987f3cc248 100644 (file)
@@ -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