From patchwork Thu Jun 10 20:44:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Lalancette X-Patchwork-Id: 105456 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5AKevug012971 for ; Thu, 10 Jun 2010 20:40:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756902Ab0FJUk5 (ORCPT ); Thu, 10 Jun 2010 16:40:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24237 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752005Ab0FJUk4 (ORCPT ); Thu, 10 Jun 2010 16:40:56 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5AKeteN006507 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 10 Jun 2010 16:40:55 -0400 Received: from localhost.localdomain (dhcp-100-18-207.bos.redhat.com [10.16.18.207]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5AKeotr008149; Thu, 10 Jun 2010 16:40:54 -0400 From: Chris Lalancette To: kvm@vger.kernel.org Cc: Chris Lalancette Subject: [PATCH 3/3] In DM_LOWEST, only deliver interrupts to vcpus with enabled LAPIC's Date: Thu, 10 Jun 2010 16:44:07 -0400 Message-Id: <1276202647-1598-4-git-send-email-clalance@redhat.com> In-Reply-To: <1276202647-1598-1-git-send-email-clalance@redhat.com> References: <1276202647-1598-1-git-send-email-clalance@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 10 Jun 2010 20:40:58 +0000 (UTC) diff --git a/virt/kvm/irq_comm.c b/virt/kvm/irq_comm.c index 52f412f..06cf61e 100644 --- a/virt/kvm/irq_comm.c +++ b/virt/kvm/irq_comm.c @@ -100,7 +100,7 @@ int kvm_irq_delivery_to_apic(struct kvm *kvm, struct kvm_lapic *src, if (r < 0) r = 0; r += kvm_apic_set_irq(vcpu, irq); - } else { + } else if (kvm_lapic_enabled(vcpu)) { if (!lowest) lowest = vcpu; else if (kvm_apic_compare_prio(vcpu, lowest) < 0)