From: shashi.mallela@linaro.org
To: QEMU Developers <qemu-devel@nongnu.org>
Subject: SMMU Stage 2 translation in QEMU
Date: Thu, 09 Sep 2021 16:17:40 -0400 [thread overview]
Message-ID: <bac0b38fc7c5f7a5a1c91784eb7236de39b6f18a.camel@linaro.org> (raw)
Hi All,
I am trying to understand the approach required for an emulated SMMU to
convert IPAs(from each qemu guest) to PAs(respective host addresses)
using stage 2 tables.
The questions i have are:-
1) Since SMMU stage 2 tables are expected to be created and managed by
a hypervisor,if there is no kvm support,who is responsible to create
the stage 2 tables in host memory? is it even a valid use case to
consider smmu stage 2 support with no hypervisor present?
2) with SMMU emulated by qemu:-
a) who is responsible for hosting and programming the stage 2 table
base address registers?
b) what are the APIs available in qemu to access the stage 2 tables?
(will address_space_ API variants apply here?)
3) if each qemu instance (for a guest) emulates an SMMU,will there be a
need to protect concurrent access of stage 2 table(in host) by each of
the SMMUs?
Thanks
Shashi
next reply other threads:[~2021-09-09 20:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-09 20:17 shashi.mallela [this message]
2021-09-10 9:25 ` SMMU Stage 2 translation in QEMU Peter Maydell
2021-09-10 12:39 ` shashi.mallela
2021-09-10 12:54 ` Peter Maydell
2021-09-10 13:32 ` shashi.mallela
2021-09-13 8:19 ` Eric Auger
2021-09-14 15:57 ` shashi.mallela
2021-09-15 10:23 ` Eric Auger
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=bac0b38fc7c5f7a5a1c91784eb7236de39b6f18a.camel@linaro.org \
--to=shashi.mallela@linaro.org \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).