qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5] hostmem-file: add offset option


From: David Hildenbrand
Subject: Re: [PATCH v5] hostmem-file: add offset option
Date: Wed, 5 Apr 2023 15:58:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1

On 04.04.23 16:36, Peter Xu wrote:
On Mon, Apr 03, 2023 at 10:14:21PM +0000, Alexander Graf wrote:
Add an option for hostmem-file to start the memory object at an offset
into the target file. This is useful if multiple memory objects reside
inside the same target file, such as a device node.

In particular, it's useful to map guest memory directly into /dev/mem
for experimentation.

To make this work consistently, also fix up all places in QEMU that
expect fd offsets to be 0.

Signed-off-by: Alexander Graf <graf@amazon.com>

Acked-by: Peter Xu <peterx@redhat.com>

I also agree it'll be nicer to split the fix into separate patch, though.
The only affected part IIUC is multi-process QEMU since 6.0.0.  Copying the
maintainers too so they'll be aware.

Corresponds to the tag:

Fixes: ed5d001916 ("multi-process: setup memory manager for remote device")


If there are no options on splitting out the fix, I'll route this via my tree.

--
Thanks,

David / dhildenb




reply via email to

[Prev in Thread] Current Thread [Next in Thread]