]> git.ipfire.org Git - thirdparty/qemu.git/commit
os: add an ability to lock memory on_fault
authorDaniil Tatianin <d-tatianin@yandex-team.ru>
Wed, 12 Feb 2025 14:39:17 +0000 (17:39 +0300)
committerPeter Xu <peterx@redhat.com>
Wed, 12 Feb 2025 16:36:01 +0000 (11:36 -0500)
commite76fadf93e4d64492206b34fd3d434b515450d2c
tree94f81ba80646b20415d05b311901eb91b7f8e979
parent30943e496f2b0a49357581af480bdcd74fb338f5
os: add an ability to lock memory on_fault

This will be used in the following commits to make it possible to only
lock memory on fault instead of right away.

Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Link: https://lore.kernel.org/r/20250212143920.1269754-2-d-tatianin@yandex-team.ru
[peterx: fail os_mlock(on_fault=1) when not supported]
[peterx: use G_GNUC_UNUSED instead of "(void)on_fault", per Dan]
Signed-off-by: Peter Xu <peterx@redhat.com>
include/system/os-posix.h
include/system/os-win32.h
meson.build
migration/postcopy-ram.c
os-posix.c
system/vl.c