]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit49b57e85bde10e01fc89bd3d296ed684bf1948f9
treee540f0bb187d40f5e19e47d153c8d82ecc54c5aa
parent354c9477e0093f6867c75a6b819a124cc823ce03
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