]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: Annotate that all paths in hva_to_pfn() might sleep
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:23:15 +0000 (11:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 16:57:58 +0000 (12:57 -0400)
commiteec1e5db464eba928273b27246122d157fd0eff8
tree2125e0a3f0fc906bf8d397d2936b90b52a2621ab
parente2d2ca71ac03c748dbc44e0dd7dc1557befb1ab6
KVM: Annotate that all paths in hva_to_pfn() might sleep

Now that hva_to_pfn() no longer supports being called in atomic context,
move the might_sleep() annotation from hva_to_pfn_slow() to hva_to_pfn().

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20241010182427.1434605-14-seanjc@google.com>
virt/kvm/kvm_main.c