diff options
| author | Ankur Arora <[email protected]> | 2017-06-02 17:06:00 -0700 |
|---|---|---|
| committer | Juergen Gross <[email protected]> | 2017-06-13 16:10:51 +0200 |
| commit | 0e4d583723487a975f66f0a8b346fdcb024fafa6 (patch) | |
| tree | 7b188cd8c87dc9bd98e90420995873ef91c8b83d /net/lapb/lapb_timer.c | |
| parent | 0b64ffb8db4e310f77a01079ca752d946a8526b5 (diff) | |
xen/pv: Fix OOPS on restore for a PV, !SMP domain
If CONFIG_SMP is disabled, xen_setup_vcpu_info_placement() is called from
xen_setup_shared_info(). This is fine as far as boot goes, but it means
that we also call it in the restore path. This results in an OOPS
because we assign to pv_mmu_ops.read_cr2 which is __ro_after_init.
Also, though less problematically, this means we call xen_vcpu_setup()
twice at restore -- once from the vcpu info placement call and the
second time from xen_vcpu_restore().
Fix by calling xen_setup_vcpu_info_placement() at boot only.
Reviewed-by: Boris Ostrovsky <[email protected]>
Signed-off-by: Ankur Arora <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions