From: "Jan Beulich" Subject: Re: [PATCH v24 12/15] x86/VPMU: Handle PMU interrupts for PV(H) guests Date: Thu, 11 Jun 2015 10:33:17 +0100 Message-ID: <557971FD02000078000837FE@mail.emea.novell.com> References: <1433948671-29504-1-git-send-email-boris.ostrovsky@oracle.com> <1433948671-29504-13-git-send-email-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Kevin Tian Cc: "suravee.suthikulpanit@amd.com" , "andrew.cooper3@citrix.com" , "tim@xen.org" , "dietmar.hahn@ts.fujitsu.com" , "xen-devel@lists.xen.org" , "Aravind.Gopalakrishnan@amd.com" , Jun Nakajima , Boris Ostrovsky , "dgdegra@tycho.nsa.gov" List-Id: xen-devel@lists.xenproject.org >>> On 11.06.15 at 10:38, wrote: >> From: Boris Ostrovsky [mailto:boris.ostrovsky@oracle.com] >> Sent: Wednesday, June 10, 2015 11:04 PM >> >> Add support for handling PMU interrupts for PV(H) guests. >> >> VPMU for the interrupted VCPU is unloaded until the guest issues > XENPMU_flush >> hypercall. This allows the guest to access PMU MSR values that are stored in >> VPMU context which is shared between hypervisor and domain, thus avoiding >> traps to hypervisor. >> >> Since the interrupt handler may now force VPMU context save (i.e. set >> VPMU_CONTEXT_SAVE flag) we need to make changes to amd_vpmu_save() which >> until now expected this flag to be set only when the counters were stopped. >> >> Signed-off-by: Boris Ostrovsky >> Acked-by: Daniel De Graaf > > I may need more time to understand the whole interrupt stuff for PV(H) > guest. But regarding to VMX specific changes I think they are clear: > > Signed-off-by: Kevin Tian I don't think you really meant S-o-b here? Jan