commit | 67f4d4288c353734d29c45f6725971c71af96791 | [log] [tgz] |
---|---|---|
author | Nadav Amit <namit@cs.technion.ac.il> | Mon Jun 02 18:34:09 2014 +0300 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Wed Jun 18 17:46:18 2014 +0200 |
tree | 6cec4548ccd3e2357512aa028c4ab8f1f61b9ffc | |
parent | 3b32004a66e96e17d2a031c08d3304245c506dfc [diff] |
KVM: x86: rdpmc emulation checks the counter incorrectly The rdpmc emulation checks that the counter (ECX) is not higher than 2, without taking into considerations bits 30:31 role (e.g., bit 30 marks whether the counter is fixed). The fix uses the pmu information for checking the validity of the pmu counter. Signed-off-by: Nadav Amit <namit@cs.technion.ac.il> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>