linux_dsm_epyc7002/arch/x86/kvm/svm
Sean Christopherson cb97c2d680 KVM: x86: Take an unsigned 32-bit int for has_emulated_msr()'s index
Take a u32 for the index in has_emulated_msr() to match hardware, which
treats MSR indices as unsigned 32-bit values.  Functionally, taking a
signed int doesn't cause problems with the current code base, but could
theoretically cause problems with 32-bit KVM, e.g. if the index were
checked via a less-than statement, which would evaluate incorrectly for
MSR indices with bit 31 set.

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200218234012.7110-3-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-05-27 13:11:08 -04:00
..
avic.c KVM: SVM: Move AVIC code to separate file 2020-04-03 10:53:56 -04:00
nested.c KVM: x86/mmu: Capture TDP level when updating CPUID 2020-05-13 12:15:14 -04:00
pmu.c kVM SVM: Move SVM related files to own sub-directory 2020-04-03 10:53:47 -04:00
sev.c arch/x86/kvm/svm/sev.c: change flag passed to GUP fast in sev_pin_memory() 2020-05-07 19:27:20 -07:00
svm.c KVM: x86: Take an unsigned 32-bit int for has_emulated_msr()'s index 2020-05-27 13:11:08 -04:00
svm.h KVM: nSVM: Report interrupts as allowed when in L2 and exit-on-interrupt is set 2020-05-13 12:14:44 -04:00
vmenter.S KVM: SVM: Do not setup frame pointer in __svm_vcpu_run 2020-04-15 12:08:38 -04:00