]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/kvm: Use generic xfer to guest work function
authorThomas Gleixner <tglx@linutronix.de>
Wed, 22 Jul 2020 22:00:09 +0000 (00:00 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 24 Jul 2020 13:05:01 +0000 (15:05 +0200)
commit72c3c0fe54a3f3ddea8f5ca468ddf9deaf2100b7
tree4a1930a215409c143c23630e89d0259675da7d5b
parenta27a0a55495cdde4b8d98f82460dc46eb44777fd
x86/kvm: Use generic xfer to guest work function

Use the generic infrastructure to check for and handle pending work before
transitioning into guest mode.

This now handles TIF_NOTIFY_RESUME as well which was ignored so
far. Handling it is important as this covers task work and task work will
be used to offload the heavy lifting of POSIX CPU timers to thread context.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200722220520.979724969@linutronix.de
arch/x86/kvm/Kconfig
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c