docs: Update memory.md to indicated that hugepages overrides shared

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2022-10-31 13:45:55 +00:00
parent f4495de143
commit aad4dc3b6b

View File

@ -117,6 +117,9 @@ needing access to the guest RAM content.
By default this option is turned off, which results in performing `mmap(2)` By default this option is turned off, which results in performing `mmap(2)`
with `MAP_PRIVATE` flag. with `MAP_PRIVATE` flag.
If `hugepages=on` then the value of this field is ignored as huge pages always
requires `MAP_SHARED`.
_Example_ _Example_
``` ```
@ -140,6 +143,9 @@ behaviour, e.g. error with `ReadKernelImage` is common. If there is a strange
error with `hugepages` enabled, just disable it or check whether there are enough error with `hugepages` enabled, just disable it or check whether there are enough
huge pages. huge pages.
If `hugepages=on` then the value of `shared` is ignored as huge pages always
requires `MAP_SHARED`.
By default this option is turned off. By default this option is turned off.
_Example_ _Example_
@ -271,6 +277,9 @@ other processes running on the host. One can use this option when running
vhost-user devices as part of the VM device model, as they will be driven vhost-user devices as part of the VM device model, as they will be driven
by standalone daemons needing access to the guest RAM content. by standalone daemons needing access to the guest RAM content.
If `hugepages=on` then the value of this field is ignored as huge pages always
requires `MAP_SHARED`.
By default this option is turned off, which result in performing `mmap(2)` By default this option is turned off, which result in performing `mmap(2)`
with `MAP_PRIVATE` flag. with `MAP_PRIVATE` flag.
@ -298,6 +307,9 @@ behaviour, e.g. error with `ReadKernelImage` is common. If there is a strange
error with `hugepages` enabled, just disable it or check whether there are enough error with `hugepages` enabled, just disable it or check whether there are enough
huge pages. huge pages.
If `hugepages=on` then the value of `shared` is ignored as huge pages always
requires `MAP_SHARED`.
By default this option is turned off. By default this option is turned off.
_Example_ _Example_