KVM: x86/svm: add __GFP_ACCOUNT to __sev_dbg_{en,de}crypt_user()
authorMingwei Zhang <mizhang@google.com>
Thu, 23 Jun 2022 17:18:58 +0000 (17:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Aug 2022 11:07:52 +0000 (13:07 +0200)
commita619a03120991b679cd6a41355f6c9199f63fd8b
treebc6c2f31308abe0182f997281ae7b4bb4ce10ede
parente423893fe3209604236874e412dd3a9386578cff
KVM: x86/svm: add __GFP_ACCOUNT to __sev_dbg_{en,de}crypt_user()

[ Upstream commit ebdec859faa8cfbfef9f6c1f83d79dd6c8f4ab8c ]

Adding the accounting flag when allocating pages within the SEV function,
since these memory pages should belong to individual VM.

No functional change intended.

Signed-off-by: Mingwei Zhang <mizhang@google.com>
Message-Id: <20220623171858.2083637-1-mizhang@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/svm/sev.c