diff options
author | 2013-06-22 17:13:32 +1000 | |
---|---|---|
committer | 2013-06-30 03:33:21 +0200 | |
commit | 8ed7b7e9d2a4e208d3c94af3ddbc628317b30409 (patch) | |
tree | ce910db4d2626eb1757b40c242133b2d3ce53564 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | KVM: PPC: Guard doorbell exception with CONFIG_PPC_DOORBELL (diff) | |
download | wireguard-linux-8ed7b7e9d2a4e208d3c94af3ddbc628317b30409.tar.xz wireguard-linux-8ed7b7e9d2a4e208d3c94af3ddbc628317b30409.zip |
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 <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions