KVM: nSVM: Add missing checks for reserved bits to svm_set_nested_state()
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Tue, 6 Oct 2020 19:06:52 +0000 (19:06 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:42:35 +0000 (04:42 -0400)
commit6906e06db9b04fff7d45d942c17bc9fa681322a3
tree48e2bebbb9ce6462fd84fc36c540430bc95427ef
parentc08f390a75c14fb9f8115d74ae9b7a6142a659b3
KVM: nSVM: Add missing checks for reserved bits to svm_set_nested_state()

The path for SVM_SET_NESTED_STATE needs to have the same checks for the CPU
registers, as we have in the VMRUN path for a nested guest. This patch adds
those missing checks to svm_set_nested_state().

Suggested-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Message-Id: <20201006190654.32305-3-krish.sadhukhan@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c