Re: [PATCH 2/2] powerpc/pseries/svm: Disable BHRB/EBB/PMU access

2020-01-09 Thread Sukadev Bhattiprolu
maddy [ma...@linux.ibm.com] wrote: > > > __init_PMU: > > +#ifdef CONFIG_PPC_SVM > > + /* > > +* SVM's are restricted from accessing PMU, so skip. > > +*/ > > + mfmsr r5 > > + rldicl r5, r5, 64-MSR_S_LG, 62 > > + cmpwi r5,1 > > + beq skip1 > > I know all MMCR* are

Re: [PATCH 2/2] powerpc/pseries/svm: Disable BHRB/EBB/PMU access

2020-01-06 Thread maddy
patch that explicitly includes in in some files to fix build errors reported by . --- From: Sukadev Bhattiprolu Date: Thu, 16 May 2019 20:57:12 -0500 Subject: [PATCH 2/2] powerpc/pseries/svm: Disable BHRB/EBB/PMU access Ultravisor disables some CPU features like BHRB, EBB and PMU in secure

Re: [PATCH 2/2] powerpc/pseries/svm: Disable BHRB/EBB/PMU access

2019-12-26 Thread Sukadev Bhattiprolu
ome files to fix build errors reported by . --- From: Sukadev Bhattiprolu Date: Thu, 16 May 2019 20:57:12 -0500 Subject: [PATCH 2/2] powerpc/pseries/svm: Disable BHRB/EBB/PMU access Ultravisor disables some CPU features like BHRB, EBB and PMU in secure virtual machines (SVMs). Skip access

Re: [PATCH 2/2] powerpc/pseries/svm: Disable BHRB/EBB/PMU access

2019-12-25 Thread kbuild test robot
Hi Sukadev, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.5-rc3 next-20191220] [cannot apply to kvm-ppc/kvm-ppc-next] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we

[PATCH 2/2] powerpc/pseries/svm: Disable BHRB/EBB/PMU access

2019-12-24 Thread Sukadev Bhattiprolu
Ultravisor disables some CPU features like BHRB, EBB and PMU in secure virtual machines (SVMs). Skip accessing those registers in SVMs to avoid getting a Program Interrupt. Signed-off-by: Sukadev Bhattiprolu --- Changelog[v2] - [Michael Ellerman] Optimize the code using FW_FEATURE_SVM