Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1567669
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 9/9] xen/pvh: Use Xen's emergency_restart op for PVH guests |
| Date | 2017-01-26 20:50 +0100 |
| Message-ID | <t3Ydu-2X9-79@gated-at.bofh.it> (permalink) |
| References | <t3Ydu-2X9-77@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Using native_machine_emergency_restart (called during reboot) will lead PVH guests to machine_real_restart() where we try to use real_mode_header which is not initialized. Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> --- New in v2 arch/x86/xen/enlighten.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 6463382..20ae5d9d 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -1915,6 +1915,9 @@ static void __init xen_hvm_guest_init(void) x86_init.irqs.intr_init = xen_init_IRQ; xen_hvm_init_time_ops(); xen_hvm_init_mmu_ops(); + + if (xen_pvh_domain()) + machine_ops.emergency_restart = xen_emergency_restart; #ifdef CONFIG_KEXEC_CORE machine_ops.shutdown = xen_hvm_shutdown; machine_ops.crash_shutdown = xen_hvm_crash_shutdown; -- 1.8.3.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v2 9/9] xen/pvh: Use Xen's emergency_restart op for PVH guests Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2017-01-26 20:50 +0100 Re: [PATCH v2 9/9] xen/pvh: Use Xen's emergency_restart op for PVH guests Juergen Gross <jgross@suse.com> - 2017-01-27 16:40 +0100
csiph-web