On 2014/11/20 12:53, Wu, Feng wrote: > > >> -----Original Message----- <snit> >>> + /* >>> + * 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 kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
- [PATCH 07/13] x86, irq: Define a global vector for VT-d Po... Feng Wu
- [PATCH 11/13] KVM: Suppress posted-interrupt when 'SN' is ... Feng Wu
- [PATCH 10/13] KVM: Add the handler for Wake-up Vector Feng Wu
- [PATCH 05/13] KVM: Update IRTE according to guest interrup... Feng Wu
- Re: [PATCH 05/13] KVM: Update IRTE according to guest... Alex Williamson
- [PATCH 09/13] KVM: Change NDST field after VCPU scheduling Feng Wu
- [PATCH 02/13] KVM: Initialize VT-d Posted-Interrtups Descr... Feng Wu
- Re: [PATCH 02/13] KVM: Initialize VT-d Posted-Interrt... Alex Williamson
- Re: [PATCH 02/13] KVM: Initialize VT-d Posted-Interrt... Jiang Liu
- RE: [PATCH 02/13] KVM: Initialize VT-d Posted-Int... Wu, Feng
- Re: [PATCH 02/13] KVM: Initialize VT-d Posted... Jiang Liu
- [PATCH 01/13] iommu/vt-d: VT-d Posted-Interrupts feature d... Feng Wu
- [PATCH 03/13] KVM: Add KVM_CAP_PI to detect VT-d Posted-In... Feng Wu
- [PATCH 04/13] iommu/vt-d: Adjust 'struct irte' to better s... Feng Wu