summaryrefslogtreecommitdiff
path: root/net/llc
diff options
context:
space:
mode:
authorChris J Arges <chris.j.arges@canonical.com>2014-11-13 06:00:39 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2014-11-13 13:56:11 +0300
commitd913b904355721e0aabb28dc8be2a3121de2e794 (patch)
tree35312a4baa8932ed0522725c5d7a980fcc60b64f /net/llc
parent54b98bff8ef4ccfc6f638c5ed868d2d51cdde585 (diff)
downloadlinux-d913b904355721e0aabb28dc8be2a3121de2e794.tar.xz
kvm: svm: move WARN_ON in svm_adjust_tsc_offset
When running the tsc_adjust kvm-unit-test on an AMD processor with the IA32_TSC_ADJUST feature enabled, the WARN_ON in svm_adjust_tsc_offset can be triggered. This WARN_ON checks for a negative adjustment in case __scale_tsc is called; however it may trigger unnecessary warnings. This patch moves the WARN_ON to trigger only if __scale_tsc will actually be called from svm_adjust_tsc_offset. In addition make adj in kvm_set_msr_common s64 since this can have signed values. Signed-off-by: Chris J Arges <chris.j.arges@canonical.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'net/llc')
0 files changed, 0 insertions, 0 deletions