// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2024, Microsoft Corporation. * * This file contains functions that will be called from one or more modules. * If any of these modules are configured to build, this file is built and just * statically linked in. * * Authors: Microsoft Linux virtualization team
*/
/* * Handle any pre-processing before going into the guest mode on this cpu, most * notably call schedule(). Must be invoked with both preemption and * interrupts enabled. * * Returns: 0 on success, -errno on error.
*/ int mshv_do_pre_guest_mode_work(ulong th_flags)
{ if (th_flags & (_TIF_SIGPENDING | _TIF_NOTIFY_SIGNAL)) return -EINTR;
if (th_flags & (_TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY))
schedule();
if (th_flags & _TIF_NOTIFY_RESUME)
resume_user_mode_work(NULL);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.