diff options
| author | Bharat Bhushan <[email protected]> | 2011-10-19 09:46:06 +0530 |
|---|---|---|
| committer | Avi Kivity <[email protected]> | 2012-03-05 14:52:25 +0200 |
| commit | dc2babfea592e633cf3890294af6545609b466be (patch) | |
| tree | 7c125d33df2a5de4b433b4a7c635fa13096f4d90 /tools/perf/scripts/python | |
| parent | f9208427f72e6cb52c71767af3bf8c14c43c27ac (diff) | |
KVM: PPC: Fix DEC truncation for greater than 0xffff_ffff/1000
kvmppc_emulate_dec() uses dec_nsec of type unsigned long and does below calculation:
dec_nsec = vcpu->arch.dec;
dec_nsec *= 1000;
This will truncate if DEC value "vcpu->arch.dec" is greater than 0xffff_ffff/1000.
For example : For tb_ticks_per_usec = 4a, we can not set decrementer more than ~58ms.
Signed-off-by: Bharat Bhushan <[email protected]>
Acked-by: Liu Yu <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions