Home
last modified time | relevance | path

Searched hist:"6 da4b1c25d89cc8e8d1be40b96602d08a3e88e0c" (Results 1 – 1 of 1) sorted by relevance

/qemu/system/
H A Dphysmem.c6da4b1c25d89cc8e8d1be40b96602d08a3e88e0c Wed Sep 06 12:05:02 UTC 2023 David Hildenbrand <david@redhat.com> 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>