From: Stefan Hajnoczi <stefanha@redhat.com>
To: Alexander Graf <graf@amazon.com>
Cc: qemu-devel@nongnu.org, David Hildenbrand <david@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
Eduardo Habkost <eduardo@habkost.net>,
"Daniel P . Berrange" <berrange@redhat.com>,
Eric Blake <eblake@redhat.com>,
Philippe Mathieu-Daude <philmd@linaro.org>,
Peter Xu <peterx@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,
Igor Mammedov <imammedo@redhat.com>,
Ashish Kalra <ashish.kalra@amd.com>,
Tom Lendacky <thomas.lendacky@amd.com>,
Stefan Hajnoczi <stefanha@gmail.com>
Subject: Re: [PATCH v4] hostmem-file: add offset option
Date: Sat, 1 Apr 2023 13:47:16 -0400 [thread overview]
Message-ID: <20230401174716.GB154566@fedora> (raw)
In-Reply-To: <20230401124257.24537-1-graf@amazon.com>
[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]
On Sat, Apr 01, 2023 at 12:42:57PM +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.
>
> Signed-off-by: Alexander Graf <graf@amazon.com>
> Reviewed-by: Stefan Hajnoczi <stefanha@gmail.com>
>
> ---
>
> v1 -> v2:
>
> - add qom documentation
> - propagate offset into truncate, size and alignment checks
>
> v2 -> v3:
>
> - failed attempt at fixing typo
>
> v2 -> v4:
>
> - fix typo
> ---
> backends/hostmem-file.c | 40 +++++++++++++++++++++++++++++++++++++++-
> include/exec/memory.h | 2 ++
> include/exec/ram_addr.h | 3 ++-
> qapi/qom.json | 5 +++++
> qemu-options.hx | 6 +++++-
> softmmu/memory.c | 3 ++-
> softmmu/physmem.c | 14 ++++++++++----
> 7 files changed, 65 insertions(+), 8 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2023-04-01 17:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-01 12:42 [PATCH v4] hostmem-file: add offset option Alexander Graf
2023-04-01 17:47 ` Stefan Hajnoczi [this message]
2023-04-03 7:13 ` David Hildenbrand
2023-04-03 15:49 ` Peter Xu
2023-04-03 18:27 ` David Hildenbrand
2023-04-03 22:11 ` Alexander Graf
2023-04-04 8:29 ` David Hildenbrand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230401174716.GB154566@fedora \
--to=stefanha@redhat.com \
--cc=armbru@redhat.com \
--cc=ashish.kalra@amd.com \
--cc=berrange@redhat.com \
--cc=david@redhat.com \
--cc=eblake@redhat.com \
--cc=eduardo@habkost.net \
--cc=graf@amazon.com \
--cc=imammedo@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
--cc=thomas.lendacky@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.