From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PART2 PATCH v7 12/12] svm: Implements update_pi_irte hook to setup posted interrupt Date: Wed, 31 Aug 2016 06:07:51 +0200 Message-ID: <20160831040751.GA31840@potion> References: <1471978363-13756-1-git-send-email-Suravee.Suthikulpanit@amd.com> <1471978363-13756-13-git-send-email-Suravee.Suthikulpanit@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: joro@8bytes.org, pbonzini@redhat.com, alex.williamson@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, sherry.hurwitz@amd.com To: Suravee Suthikulpanit Return-path: Content-Disposition: inline In-Reply-To: <1471978363-13756-13-git-send-email-Suravee.Suthikulpanit@amd.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org 2016-08-23 13:52-0500, Suravee Suthikulpanit: > From: Suravee Suthikulpanit > > This patch implements update_pi_irte function hook to allow SVM > communicate to IOMMU driver regarding how to set up IRTE for handling > posted interrupt. > > In case AVIC is enabled, during vcpu_load/unload, SVM needs to update > IOMMU IRTE with appropriate host physical APIC ID. Also, when > vcpu_blocking/unblocking, SVM needs to update the is-running bit in > the IOMMU IRTE. Both are achieved via calling amd_iommu_update_ga(). > > However, if GA mode is not enabled for the pass-through device, > IOMMU driver will simply just return when calling amd_iommu_update_ga. > > Signed-off-by: Suravee Suthikulpanit > --- I forgot nitpicks in the office before going on a vacation, ;) Reviewed-by: Radim Krčmář