[PATCH 0/5 v4] KVM: nSVM: Check addresses of MSR bitmap and IO bitmap tables on vmrun of nested guests

Krish Sadhukhan
2021-03-24T18:39:33Z

v3 -> v4:
1. There were some issues with the checks added in
nested_vmcb_check_controls() in patch# 2. Those are fixed. Also,
instead of using page_address_valid() for the checks, a new
function is now used. The new function doesn't check for alignment
of the addresses of intercept tables.
2. In patch# 4, the tests for alignment of the addresses of intercept
tables, have been removed.

[PATCH 1/5 v4] KVM: SVM: Move IOPM_ALLOC_ORDER and MSRPM_ALLOC_ORDER
[PATCH 2/5 v4] KVM: nSVM: Check addresses of MSR and IO permission maps
[PATCH 3/5 v4] KVM: nSVM: Cleanup in nested_svm_vmrun()
[PATCH 4/5 v4] nSVM: Test addresses of MSR and IO permissions maps
[PATCH 5/5 v4] SVM: Use ALIGN macro when aligning 'io_bitmap_area'

arch/x86/kvm/svm/nested.c | 59 +++++++++++++++++++++++++++++------------------
arch/x86/kvm/svm/svm.c | 3 ---
arch/x86/kvm/svm/svm.h | 3 +++
3 files changed, 40 insertions(+), 25 deletions(-)

Krish Sadhukhan (3):
KVM: SVM: Move IOPM_ALLOC_ORDER and MSRPM_ALLOC_ORDER #defines to svm.h
nSVM: Check addresses of MSR and IO permission maps
KVM: nSVM: Cleanup in nested_svm_vmrun()

x86/svm.c | 2 +-
x86/svm_tests.c | 28 ++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 1 deletion(-)

Krish Sadhukhan (2):
nSVM: Test addresses of MSR and IO permissions maps
SVM: Use ALIGN macro when aligning 'io_bitmap_area'