File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -725,10 +725,9 @@ void avic_apicv_post_state_restore(struct kvm_vcpu *vcpu)
725
725
avic_handle_ldr_update (vcpu );
726
726
}
727
727
728
- static int avic_set_pi_irte_mode (struct kvm_vcpu * vcpu , bool activate )
728
+ static void avic_set_pi_irte_mode (struct kvm_vcpu * vcpu , bool activate )
729
729
{
730
730
int apic_id = kvm_cpu_get_apicid (vcpu -> cpu );
731
- int ret = 0 ;
732
731
unsigned long flags ;
733
732
struct vcpu_svm * svm = to_svm (vcpu );
734
733
struct kvm_kernel_irqfd * irqfd ;
@@ -743,16 +742,15 @@ static int avic_set_pi_irte_mode(struct kvm_vcpu *vcpu, bool activate)
743
742
goto out ;
744
743
745
744
list_for_each_entry (irqfd , & svm -> ir_list , vcpu_list ) {
745
+ void * data = irqfd -> irq_bypass_data ;
746
+
746
747
if (activate )
747
- ret = amd_iommu_activate_guest_mode (irqfd -> irq_bypass_data , apic_id );
748
+ WARN_ON_ONCE ( amd_iommu_activate_guest_mode (data , apic_id ) );
748
749
else
749
- ret = amd_iommu_deactivate_guest_mode (irqfd -> irq_bypass_data );
750
- if (ret )
751
- break ;
750
+ WARN_ON_ONCE (amd_iommu_deactivate_guest_mode (data ));
752
751
}
753
752
out :
754
753
spin_unlock_irqrestore (& svm -> ir_list_lock , flags );
755
- return ret ;
756
754
}
757
755
758
756
static void svm_ir_list_del (struct kvm_kernel_irqfd * irqfd )
You can’t perform that action at this time.
0 commit comments