From: Paul Mackerras Date: Sat, 22 Jun 2013 07:13:32 +0000 (+1000) Subject: KVM: PPC: Book3S PR: Fix proto-VSID calculations X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~22^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ed7b7e9d2a4e208d3c94af3ddbc628317b30409;p=pandora-kernel.git KVM: PPC: Book3S PR: Fix proto-VSID calculations This makes sure the calculation of the proto-VSIDs used by PR KVM is done with 64-bit arithmetic. Since vcpu3s->context_id[] is int, when we do vcpu3s->context_id[0] << ESID_BITS the shift will be done with 32-bit instructions, possibly leading to significant bits getting lost, as the context id can be up to 524283 and ESID_BITS is 18. To fix this we cast the context id to u64 before shifting. Signed-off-by: Paul Mackerras Signed-off-by: Alexander Graf --- Reading git-diff-tree failed