OSDN Git Service

KVM: SVM: nested: Don't allocate VMCB structures on stack
authorJoerg Roedel <jroedel@suse.de>
Mon, 7 Sep 2020 13:15:02 +0000 (15:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 7 Sep 2020 17:45:24 +0000 (19:45 +0200)
commit6ccbd29ade0d159ee1be398dc9defaae567c253d
treee540f0bb187d40f5e19e47d153c8d82ecc54c5aa
parentc48f46ac7bf3946032cbaf70238c277382eedd1b
KVM: SVM: nested: Don't allocate VMCB structures on stack

Do not allocate a vmcb_control_area and a vmcb_save_area on the stack,
as these structures will become larger with future extenstions of
SVM and thus the svm_set_nested_state() function will become a too large
stack frame.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-2-joro@8bytes.org
arch/x86/kvm/svm/nested.c