]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/kvm: Move context tracking where it belongs
authorThomas Gleixner <tglx@linutronix.de>
Wed, 8 Jul 2020 19:51:54 +0000 (21:51 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jul 2020 11:08:38 +0000 (07:08 -0400)
commit87fa7f3e98a1310ef1ac1900e7ee7f9610a038bc
tree379a0801cbf4a7494cbbe2e469ca71b110315193
parent841c2be09fe4f495fe5224952a419bd8c7e5b455
x86/kvm: Move context tracking where it belongs

Context tracking for KVM happens way too early in the vcpu_run()
code. Anything after guest_enter_irqoff() and before guest_exit_irqoff()
cannot use RCU and should also be not instrumented.

The current way of doing this covers way too much code. Move it closer to
the actual vmenter/exit code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200708195321.724574345@linutronix.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c