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, 3 May 2023 15:40:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

On 04.04.23 00:14, 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>

---

v1 -> v2:

   - add qom documentation
   - propagate offset into truncate, size and alignment checks

v2 -> v3:

   - failed attempt at fixing typo

v3 -> v4:

   - fix typo

v4 -> v5:

   - improve qom doc comment
   - account for fd_offset in more places
---

I queued this as is to

https://github.com/davidhildenbrand/qemu.git mem-next


I might send this upstream soonish (nothing else is really pending).

Thanks!

--
Thanks,

David / dhildenb




reply via email to

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