qemu-block
[Top][All Lists]
Advanced

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

Re: [RFC v3 6/8] stubs: add memory_region_from_host() and memory_region_


From: Hanna Reitz
Subject: Re: [RFC v3 6/8] stubs: add memory_region_from_host() and memory_region_get_fd()
Date: Thu, 14 Jul 2022 11:39:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

On 08.07.22 06:17, Stefan Hajnoczi wrote:
The blkio block driver will need to look up the file descriptor for a
given pointer. This is possible in softmmu builds where the memory API
is available for querying guest RAM.

Add stubs so tools like qemu-img that link the block layer still build
successfully. In this case there is no guest RAM but that is fine.
Bounce buffers and their file descriptors will be allocated with
libblkio's blkio_alloc_mem_region() so we won't rely on QEMU's
memory_region_get_fd() in that case.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
  stubs/memory.c    | 13 +++++++++++++
  stubs/meson.build |  1 +
  2 files changed, 14 insertions(+)
  create mode 100644 stubs/memory.c

Reviewed-by: Hanna Reitz <hreitz@redhat.com>




reply via email to

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