mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 23:23:53 +02:00
xen/bootup: allow read_tscp call for Xen PV guests.
commit cd0608e71e upstream.
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.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c525d8ee0c
commit
e299f8abb2
|
|
@ -1135,6 +1135,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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user