aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/ibmasm/command.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2024-01-10 01:15:32 +0000
committerSean Christopherson <[email protected]>2024-02-06 19:04:11 +0000
commit8284765f03b7a0b18968cefeb5e78aca647b8f8b (patch)
tree2dacd08f38baf749f7a1ca25f490193f88c0008c /drivers/misc/ibmasm/command.c
parentKVM: Put mm immediately after async #PF worker completes remote gup() (diff)
downloadkernel-8284765f03b7a0b18968cefeb5e78aca647b8f8b.tar.gz
kernel-8284765f03b7a0b18968cefeb5e78aca647b8f8b.zip
KVM: Get reference to VM's address space in the async #PF worker
Get a reference to the target VM's address space in async_pf_execute() instead of gifting a reference from kvm_setup_async_pf(). Keeping the address space alive just to service an async #PF is counter-productive, i.e. if the process is exiting and all vCPUs are dead, then NOT doing get_user_pages_remote() and freeing the address space asap is desirable. Handling the mm reference entirely within async_pf_execute() also simplifies the async #PF flows as a whole, e.g. it's not immediately obvious when the worker task vs. the vCPU task is responsible for putting the gifted mm reference. Reviewed-by: Vitaly Kuznetsov <[email protected]> Reviewed-by: Xu Yilun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'drivers/misc/ibmasm/command.c')
0 files changed, 0 insertions, 0 deletions