]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: VMX: Do not account for temporary memory allocation in ECREATE emulation
authorKai Huang <kai.huang@intel.com>
Mon, 15 Jul 2024 10:12:24 +0000 (22:12 +1200)
committerSean Christopherson <seanjc@google.com>
Thu, 22 Aug 2024 18:35:15 +0000 (11:35 -0700)
commitd9aa56edad3536f8b24c4695d51725e8d33b3c46
treecf1cd4ca1536e5196315ee989ecccf0add4f78fc
parentcaf22c6dd31294d136e527d0548f8697c7e72f37
KVM: VMX: Do not account for temporary memory allocation in ECREATE emulation

In handle_encls_ecreate(), a page is allocated to store a copy of SECS
structure used by the ENCLS[ECREATE] leaf from the guest.  This page is
only used temporarily and is freed after use in handle_encls_ecreate().

Don't account for the memory allocation of this page per [1].

Link: https://lore.kernel.org/kvm/b999afeb588eb75d990891855bc6d58861968f23.camel@intel.com/T/#mb81987afc3ab308bbb5861681aa9a20f2aece7fd
Signed-off-by: Kai Huang <kai.huang@intel.com>
Link: https://lore.kernel.org/r/20240715101224.90958-1-kai.huang@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/sgx.c