KVM: X86: implement the logic for spinlock optimization
get_cpl requires vcpu_load, so we must cache the result (whether the vcpu was preempted when its cpl=0) in kvm_vcpu_arch. Signed-off-by:Longpeng(Mike) <longpeng2@huawei.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/x86/include/asm/kvm_host.h 3 additions, 0 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/hyperv.c 1 addition, 1 deletionarch/x86/kvm/hyperv.c
- arch/x86/kvm/svm.c 4 additions, 1 deletionarch/x86/kvm/svm.c
- arch/x86/kvm/vmx.c 7 additions, 1 deletionarch/x86/kvm/vmx.c
- arch/x86/kvm/x86.c 6 additions, 1 deletionarch/x86/kvm/x86.c
Please register or sign in to comment