OpenCloudOS-Kernel/arch/x86/kvm/vmx
Chen Zhuo 81cbffba09 KVM: VMX: Fix vcpu could not be waken up if enable IPI virtualization
commit opencloudos.

Since enable IPI virtualization, vcpu which experience HLT->blocked will
not be waken up, if there is no vfio device assigned.

In this case, kvm_arch_has_assigned_device() will always return false,
so that pi_pre_block() will directly return after check
kvm_arch_has_assigned_device() and vcpu will not added to
blocked_vcpu_on_cpu list.

Follow upstream commit d76fb40637, just
take this check in vmx_vcpu_pi_put().

This patch is interrelated with previous two commits and
'KVM: VMX: enable IPI virtualization'. It should be reverted with
these three commits, if you want revert it.

Signed-off-by: Chen Zhuo <sagazchen@tencent.com>
Signed-off-by: Xinghui Li <korantli@tencent.com>
2024-06-11 21:18:04 +08:00
..
capabilities.h KVM: VMX: enable IPI virtualization 2024-06-11 21:17:33 +08:00
evmcs.c KVM: VMX: Detect Tertiary VM-Execution control when setup VMCS config 2024-06-11 21:17:29 +08:00
evmcs.h KVM: VMX: Detect Tertiary VM-Execution control when setup VMCS config 2024-06-11 21:17:29 +08:00
nested.c KVM: x86: Prepare MSR bitmaps for userspace tracked MSRs 2024-06-11 21:11:11 +08:00
nested.h KVM: VMX: Convert vcpu_vmx.exit_reason to a union 2024-06-11 21:05:43 +08:00
ops.h ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
pmu_intel.c ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
vmcs.h KVM: VMX: Detect Tertiary VM-Execution control when setup VMCS config 2024-06-11 21:17:29 +08:00
vmcs12.c
vmcs12.h KVM/arm updates for 5.3 2019-07-11 15:14:16 +02:00
vmcs_shadow_fields.h KVM: nVMX: shadow pin based execution controls 2019-06-18 17:10:50 +02:00
vmenter.S ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
vmx.c KVM: VMX: Fix vcpu could not be waken up if enable IPI virtualization 2024-06-11 21:18:04 +08:00
vmx.h KVM: VMX: enable IPI virtualization 2024-06-11 21:17:33 +08:00