v4 -> v5: 1. In patch# 1, the actual size of the MSRPM and IOPM tables are now defined. The initialization code for the tables has been adjusted accordingly. 2. In patch# 2, the checks have been adjusted based on the actual size of the tables. The check for IOPM has also been fixed. 3. In patch# 4, a new test case has been added. This new test uses an address whose last byte touched the limit of the maximum physical address. [PATCH 1/5 v5] KVM: SVM: Define actual size of IOPM and MSRPM tables [PATCH 2/5 v5] nSVM: Check addresses of MSR and IO permission maps [PATCH 3/5 v5] KVM: nSVM: Cleanup in nested_svm_vmrun() [PATCH 4/5 v5] nSVM: Test addresses of MSR and IO permissions maps [PATCH 5/5 v5] SVM: Use ALIGN macro when aligning 'io_bitmap_area' arch/x86/kvm/svm/nested.c | 59 +++++++++++++++++++++++++++++------------------ arch/x86/kvm/svm/svm.c | 20 ++++++++-------- arch/x86/kvm/svm/svm.h | 3 +++ 3 files changed, 50 insertions(+), 32 deletions(-) Krish Sadhukhan (3): KVM: SVM: Define actual size of IOPM and MSRPM tables nSVM: Check addresses of MSR and IO permission maps KVM: nSVM: Cleanup in nested_svm_vmrun() x86/svm.c | 2 +- x86/svm_tests.c | 42 +++++++++++++++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 2 deletions(-) Krish Sadhukhan (2): nSVM: Test addresses of MSR and IO permissions maps SVM: Use ALIGN macro when aligning 'io_bitmap_area'