From: "Jan Beulich" Subject: Re: [PATCH for-xen-4.5] x86/pvh/vpmu: Disable VPMU for PVH guests Date: Tue, 25 Nov 2014 14:55:18 +0000 Message-ID: <5474A666020000780004AB9C@mail.emea.novell.com> References: <1416858554-1817-1-git-send-email-boris.ostrovsky@oracle.com> <54744FB2020000780004A935@mail.emea.novell.com> <54749466.1020907@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54749466.1020907@oracle.com> 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: Boris Ostrovsky Cc: keir@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 25.11.14 at 15:38, wrote: > On 11/25/2014 03:45 AM, Jan Beulich wrote: >> @@ -1429,6 +1429,12 @@ int vlapic_init(struct vcpu *v) >> >> HVM_DBG_LOG(DBG_LEVEL_VLAPIC, "%d", v->vcpu_id); >> >> + if ( is_pvh_vcpu(v) ) >> + { >> + vlapic->hw.disabled = VLAPIC_HW_DISABLED; > > > I did consider doing that but I thought that this flag is meant to be > set when the guest clears MSR_IA32_APICBASE_ENABLE to disable APIC and > therefore I'd be overloading it (the flag) in a way. There's no overloading here - we're then simply treating all PVH vCPU-s as having permanently hardware-disabled LAPICs (reflecting current reality). > Regardless, do you think that disabling VPMU for PVH is worth anyway? That depends on what (bad) consequences not doing so has. Jan