]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SEV: Fall back to vmalloc for SEV-ES scratch area if necessary
authorSean Christopherson <seanjc@google.com>
Tue, 9 Nov 2021 22:23:50 +0000 (22:23 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 5 Dec 2021 08:02:03 +0000 (03:02 -0500)
commit4259f44e614ec77a7d0f35c7d240f18823373e41
tree26115fbe820b3a597f45b087bf05b94d73fb7549
parent9080650d745c9e6e3749eddc08a7ddea769b56be
KVM: SEV: Fall back to vmalloc for SEV-ES scratch area if necessary

Use kvzalloc() to allocate KVM's buffer for SEV-ES's GHCB scratch area so
that KVM falls back to __vmalloc() if physically contiguous memory isn't
available.  The buffer is purely a KVM software construct, i.e. there's
no need for it to be physically contiguous.

Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211109222350.2266045-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c