diff mbox

KVM: PPC: fix incorrect way saving SPRN_MMCR2

Message ID 53CFA1F9.8020804@linux.vnet.ibm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Xiao Guangrong July 23, 2014, 11:52 a.m. UTC
SPRN_SIER and SPRN_MMCR2 are doublely saved, particularly
SPRN_MMCR2 is oversaved with a incorrect value which comes
from SPRN_PMC5

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
---
 arch/powerpc/kvm/book3s_hv_interrupts.S | 5 -----
 1 file changed, 5 deletions(-)

Comments

Alexander Graf July 24, 2014, 1:09 p.m. UTC | #1
On 23.07.14 13:52, Xiao Guangrong wrote:
> SPRN_SIER and SPRN_MMCR2 are doublely saved, particularly
> SPRN_MMCR2 is oversaved with a incorrect value which comes
> from SPRN_PMC5
>
> Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>

This patch is already in upstream:

   f73128f4f680e8be68cda831f2710214559583cb


Alex

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Xiao Guangrong July 24, 2014, 4:20 p.m. UTC | #2
On Jul 24, 2014, at 9:09 PM, Alexander Graf <agraf@suse.de> wrote:

> 
> On 23.07.14 13:52, Xiao Guangrong wrote:
>> SPRN_SIER and SPRN_MMCR2 are doublely saved, particularly
>> SPRN_MMCR2 is oversaved with a incorrect value which comes
>> from SPRN_PMC5
>> 
>> Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
> 
> This patch is already in upstream:
> 
> f73128f4f680e8be68cda831f2710214559583cb

I was using kvm tree and did not find it on ‘queue’ branch, maybe i should
use your tree instead. Sorry for the noise and thanks for you check. :)--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/powerpc/kvm/book3s_hv_interrupts.S b/arch/powerpc/kvm/book3s_hv_interrupts.S
index 8c86422..731be74 100644
--- a/arch/powerpc/kvm/book3s_hv_interrupts.S
+++ b/arch/powerpc/kvm/book3s_hv_interrupts.S
@@ -127,11 +127,6 @@  BEGIN_FTR_SECTION
 	stw	r10, HSTATE_PMC + 24(r13)
 	stw	r11, HSTATE_PMC + 28(r13)
 END_FTR_SECTION_IFSET(CPU_FTR_ARCH_201)
-BEGIN_FTR_SECTION
-	mfspr	r9, SPRN_SIER
-	std	r8, HSTATE_MMCR + 40(r13)
-	std	r9, HSTATE_MMCR + 48(r13)
-END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S)
 31:

 	/*