nSVM: Check addresses of MSR and IO permission maps
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Mon, 12 Apr 2021 21:56:08 +0000 (17:56 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Apr 2021 16:20:01 +0000 (12:20 -0400)
commitee695f22b54a4b79753fdaa78cbbff1064050d13
treec0a450131d65ea575c005e9e3907ceb40a030758
parent47903dc10e7ebb876c9a0f0522cc07a71c10273f
nSVM: Check addresses of MSR and IO permission maps

According to section "Canonicalization and Consistency Checks" in APM vol 2,
the following guest state is illegal:

    "The MSR or IOIO intercept tables extend to a physical address that
     is greater than or equal to the maximum supported physical address."

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Message-Id: <20210412215611.110095-5-krish.sadhukhan@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c