diff options
author | 2023-09-06 14:05:02 +0200 | |
---|---|---|
committer | 2023-09-19 10:23:21 +0200 | |
commit | 6da4b1c25d89cc8e8d1be40b96602d08a3e88e0c (patch) | |
tree | 0530f99aad6da4cdb606326b367d59b313b334bc /scripts/qapi/source.py | |
parent | docs: Start documenting VM templating (diff) | |
download | qemu-6da4b1c25d89cc8e8d1be40b96602d08a3e88e0c.tar.xz qemu-6da4b1c25d89cc8e8d1be40b96602d08a3e88e0c.zip |
softmmu/physmem: Hint that "readonly=on,rom=off" exists when opening file R/W for private mapping fails
It's easy to miss that memory-backend-file with "share=off" (default)
will always try opening the file R/W as default, and fail if we don't
have write permissions to the file.
In that case, the user has to explicit specify "readonly=on,rom=off" to
get usable RAM, for example, for VM templating.
Let's hint that '-object memory-backend-file,readonly=on,rom=off,...'
exists to consume R/O files in a private mapping to create writable RAM,
but only if we have permissions to open the file read-only.
Message-ID: <20230906120503.359863-11-david@redhat.com>
Suggested-by: ThinerLogoer <logoerthiner1@163.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions