Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751080AbaKTFBA (ORCPT ); Thu, 20 Nov 2014 00:01:00 -0500 Received: from mga02.intel.com ([134.134.136.20]:31664 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750885AbaKTFA6 (ORCPT ); Thu, 20 Nov 2014 00:00:58 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,691,1406617200"; d="scan'208";a="488969896" Message-ID: <546D7584.6070505@linux.intel.com> Date: Thu, 20 Nov 2014 13:00:52 +0800 From: Jiang Liu Organization: Intel User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: "Wu, Feng" , "gleb@kernel.org" , "pbonzini@redhat.com" , "dwmw2@infradead.org" , "joro@8bytes.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" CC: "kvm@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 02/13] KVM: Initialize VT-d Posted-Interrtups Descriptor References: <1415600812-27773-1-git-send-email-feng.wu@intel.com> <1415600812-27773-3-git-send-email-feng.wu@intel.com> <546210B1.7060007@linux.intel.com> In-Reply-To: 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 On 2014/11/20 12:53, Wu, Feng wrote: > > >> -----Original Message----- >>> + /* >>> + * Initialize Posted-Interrupt Descriptor >>> + */ >>> + >>> + pi_clear_sn(&vmx->pi_desc); >>> + vmx->pi_desc.nv = POSTED_INTR_VECTOR; >>> + >>> + /* Physical mode for Notificaiton Event */ >>> + vmx->pi_desc.ndm = 0; >>> + dest = cpu_physical_id(vmx->vcpu.cpu); >>> + >>> + if (x2apic_mode) >> Hi Feng, >> Could you try to use x2apic_enabled() here so you don't >> need to export x2apic_mode? >> Regards! >> Gerry > > In that case, we should also export x2apic_enabled(), right? Hi Feng, x2apic_enabled() is a static inline function:) Regards! Gerry -- 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/