[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <15e24c455fb9fca05b5af504251019b905b1bd77.camel@gmail.com>
Date: Wed, 23 Apr 2025 17:21:12 +0200
From: Francesco Lavra <francescolavra.fl@...il.com>
To: seanjc@...gle.com
Cc: baolu.lu@...ux.intel.com, dmatlack@...gle.com, dwmw2@...radead.org,
iommu@...ts.linux.dev, joao.m.martins@...cle.com, joro@...tes.org,
kvm@...r.kernel.org, linux-kernel@...r.kernel.org, mlevitsk@...hat.com,
pbonzini@...hat.com
Subject: Re: [PATCH 31/67] KVM: SVM: Extract SVM specific code out of
get_pi_vcpu_info()
On 2025-04-04 at 19:38, Sean Christopherson wrote:
> @@ -876,20 +874,21 @@ int avic_pi_update_irte(struct kvm_kernel_irqfd
> *irqfd, struct kvm *kvm,
> * 3. APIC virtualization is disabled for the vcpu.
> * 4. IRQ has incompatible delivery mode (SMI, INIT, etc)
> */
> - if (new && new->type == KVM_IRQ_ROUTING_MSI &&
> - !get_pi_vcpu_info(kvm, new, &vcpu_info, &svm) &&
> - kvm_vcpu_apicv_active(&svm->vcpu)) {
> + if (new && new && new->type == KVM_IRQ_ROUTING_MSI &&
The `&& new` part is redundant.
Powered by blists - more mailing lists