]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - arch/x86/kvm/x86.c
KVM: X86: Introduce kvm_vcpu_exit_request() helper
authorWanpeng Li <wanpengli@tencent.com>
Tue, 28 Apr 2020 06:23:26 +0000 (14:23 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 15 May 2020 16:26:19 +0000 (12:26 -0400)
commit5a9f54435a488f8a1153efd36cccee3e7e0fc28b
tree1614d8407f43e91f2298e74e499bdd1c88dd66cf
parent2c4c41325540cf3abb12aef142c0e550f6afeffc
KVM: X86: Introduce kvm_vcpu_exit_request() helper

Introduce kvm_vcpu_exit_request() helper, we need to check some conditions
before enter guest again immediately, we skip invoking the exit handler and
go through full run loop if complete fastpath but there is stuff preventing
we enter guest again immediately.

Tested-by: Haiwei Li <lihaiwei@tencent.com>
Cc: Haiwei Li <lihaiwei@tencent.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <1588055009-12677-5-git-send-email-wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h