Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933626AbbFWQFu (ORCPT ); Tue, 23 Jun 2015 12:05:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40015 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932323AbbFWQFj (ORCPT ); Tue, 23 Jun 2015 12:05:39 -0400 Message-ID: <558983CE.5020508@redhat.com> Date: Tue, 23 Jun 2015 18:05:34 +0200 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Feng Wu , kvm@vger.kernel.org, linux-kernel@vger.kernel.org CC: mtosatti@redhat.com, alex.williamson@redhat.com, eric.auger@linaro.org Subject: Re: [v4 15/16] KVM: Update Posted-Interrupts Descriptor when vCPU is blocked References: <1434019912-15423-1-git-send-email-feng.wu@intel.com> <1434019912-15423-16-git-send-email-feng.wu@intel.com> In-Reply-To: <1434019912-15423-16-git-send-email-feng.wu@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 607 Lines: 19 On 11/06/2015 12:51, Feng Wu wrote: > - vcpu->arch.mp_state = KVM_MP_STATE_HALTED; > + /* Handle posted-interrupt when vCPU is to be halted */ > + if (!kvm_x86_ops->pi_pre_block || > + (kvm_x86_ops->pi_pre_block && This condition is unnecessary. Paolo > + kvm_x86_ops->pi_pre_block(vcpu) == 0)) > + vcpu->arch.mp_state = KVM_MP_STATE_HALTED; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/