ppc: e500_tlb memset clears nothing
Subsystems (3)
PATCH 1/1 ppc: e500_tlb memset clears nothing
From: Alan Cox <[email protected]>
Subject: ppc: e500_tlb memset clears nothing
Put the parameters the right way around
Addresses https://bugzilla.kernel.org/show_bug.cgi?id=44031
Reported-by David Binderman <[email protected]>
Signed-off-by Alan Cox <[email protected]>
Cc Avi Kivity <[email protected]>
Cc Marcelo Tosatti <[email protected]>
Cc Alexander Graf <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/powerpc/kvm/e500_tlb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/powerpc/kvm/e500_tlb.c renamed from arch/powerpc/kvm/e500_tlb.c~ppc-e500_tlb-memset-clears-nothing +4 -4
@@ -320,11 +320,11 @@ static inline void kvmppc_e500_ref_releastatic void clear_tlb1_bitmap (struct kvmppc_vcpu_e500 *vcpu_e500) {if (vcpu_e500->g2h_tlb1_map) -memset (vcpu_e500->g2h_tlb1_map, -sizeof (u64) * vcpu_e500->gtlb_params[1 ].entries,0 ); +memset (vcpu_e500->g2h_tlb1_map,0 , +sizeof (u64) * vcpu_e500->gtlb_params[1 ].entries);if (vcpu_e500->h2g_tlb1_rmap) -memset (vcpu_e500->h2g_tlb1_rmap, -sizeof (unsigned int ) * host_tlb_params[1 ].entries,0 ); +memset (vcpu_e500->h2g_tlb1_rmap,0 , +sizeof (unsigned int ) * host_tlb_params[1 ].entries); }static void clear_tlb_privs (struct kvmppc_vcpu_e500 *vcpu_e500)
_
Alexander Graf
AppliedQuoted 7 lines · On 15.08.2012, at 00:10, [email protected] wrote:
From: Alan Cox <[email protected]>
Subject: ppc:e500_tlbmemset clears nothingPut the parameters the right way around
Quoted 8 lines
Reported-by David Binderman <[email protected]>Signed-off-by Alan Cox <[email protected]>Cc Avi Kivity <[email protected]>Cc Marcelo Tosatti <[email protected]>Cc Alexander Graf <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Paul Mackerras <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Thanks, applied to kvm-ppc-next.
Alex