diff options
author | Peter Xu <peterx@redhat.com> | 2019-09-06 10:17:21 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-09-10 19:13:20 +0200 |
commit | c5c5d6fae001c653a4e831325e062816a60c5e38 (patch) | |
tree | c74165a1d0516ab3f4ac57fbb820b174a874b8eb /arch/x86/kvm/svm.c | |
parent | 13a7e370cb89e2ec0859c99960b24b12a3c2c029 (diff) | |
download | lwn-c5c5d6fae001c653a4e831325e062816a60c5e38.tar.gz lwn-c5c5d6fae001c653a4e831325e062816a60c5e38.zip |
KVM: VMX: Change ple_window type to unsigned int
The VMX ple_window is 32 bits wide, so logically it can overflow with
an int. The module parameter is declared as unsigned int which is
good, however the dynamic variable is not. Switching all the
ple_window references to use unsigned int.
The tracepoint changes will also affect SVM, but SVM is using an even
smaller width (16 bits) so it's always fine.
Suggested-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
0 files changed, 0 insertions, 0 deletions