]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
x86/xen: Split HVM vector callback setup and interrupt gate allocation
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 28 Apr 2020 09:38:22 +0000 (11:38 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Jun 2020 13:14:32 +0000 (15:14 +0200)
commita0bb51f2638e0810c347024679239fd10a8f7990
treecc9493e85ed25569561e8825adfe088fd97b623f
parentfbaed278a3cc72a46aadae667b8c6754b78640a6
x86/xen: Split HVM vector callback setup and interrupt gate allocation

As a preparatory change for making alloc_intr_gate() __init split
xen_callback_vector() into callback vector setup via hypercall
(xen_setup_callback_vector()) and interrupt gate allocation
(xen_alloc_callback_vector()).

xen_setup_callback_vector() is being called twice: on init and upon
system resume from xen_hvm_post_suspend(). alloc_intr_gate() only
needs to be called once.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200428093824.1451532-2-vkuznets@redhat.com
arch/x86/xen/suspend_hvm.c
arch/x86/xen/xen-ops.h
drivers/xen/events/events_base.c