]> git.ipfire.org Git - thirdparty/qemu.git/commit
system: introduce a new MlockState enum
authorDaniil Tatianin <d-tatianin@yandex-team.ru>
Wed, 12 Feb 2025 14:39:19 +0000 (17:39 +0300)
committerPeter Xu <peterx@redhat.com>
Wed, 12 Feb 2025 16:36:13 +0000 (11:36 -0500)
commitcd2e472e54a49c13b0a728cdda7c10c50421e23d
tree759c1143fce120ce6c3109b5107d364c9c86bb7f
parentcb74f2b8a65cde2eadbcb5574327ac3f49983d8a
system: introduce a new MlockState enum

Replace the boolean value enable_mlock with an enum and add a helper to
decide whether we should be calling os_mlock.

This is a stepping stone towards introducing a new mlock mode, which
will be the third possible state of this enum.

Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Link: https://lore.kernel.org/r/20250212143920.1269754-4-d-tatianin@yandex-team.ru
Signed-off-by: Peter Xu <peterx@redhat.com>
hw/virtio/virtio-mem.c
include/system/system.h
migration/postcopy-ram.c
system/globals.c
system/vl.c