mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
KVM: SVM: Annotate nested_svm_map with might_sleep()
The nested_svm_map() function can sleep and must not be called from atomic context. So annotate that function. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
cdbbdc1210
commit
6c3bd3d766
@ -1434,6 +1434,8 @@ static void *nested_svm_map(struct vcpu_svm *svm, u64 gpa, struct page **_page)
|
|||||||
{
|
{
|
||||||
struct page *page;
|
struct page *page;
|
||||||
|
|
||||||
|
might_sleep();
|
||||||
|
|
||||||
page = gfn_to_page(svm->vcpu.kvm, gpa >> PAGE_SHIFT);
|
page = gfn_to_page(svm->vcpu.kvm, gpa >> PAGE_SHIFT);
|
||||||
if (is_error_page(page))
|
if (is_error_page(page))
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
Reference in New Issue
Block a user