From: Marc Zyngier <maz@kernel.org>
To: Chenxu Wang <irakatz51@gmail.com>
Cc: kvmarm@lists.cs.columbia.edu
Subject: Re: Some problems about TZASC configuration
Date: Mon, 13 Dec 2021 12:39:55 +0000 [thread overview]
Message-ID: <d6fef1f0986a8b441cd270c29d2a7baa@kernel.org> (raw)
In-Reply-To: <CAFLP=uDtS9fyg4nmA_tXx5dMWDMoT=ABZk_tRLyQS_toxUxZ-A@mail.gmail.com>
Wang,
On 2021-12-12 19:52, Chenxu Wang wrote:
> Hi all,
>
> I have some problems about KVM+QEMU when it runs on a FVP with TZASC
> and VHE enabled.
>
> If I configure some DRAM region as "secure only", will KVM generate
> some fault (e.g. SError) when creating a VM?
If the memory ends up being used by NS, then of course you'll get
a fault.
>
> If yes, can we avoid it by restricting the physical memory region for
> creating a VM?
>
> For example, I configure 0xa0000000-0xafffffff as secure only, then i
> ask KVM to create VMs in region 0x90000000-0x9fffffff, so no overlap
> between them.
You need to instruct the kernel that some of the memory isn't usable.
Usually, that's done by removing the secure memory from the memory
map altogether.
In general, the NS world has no business knowing about the secure
memory.
HTH,
M.
--
Jazz is not dead. It just smells funny...
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
prev parent reply other threads:[~2021-12-13 12:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-12 19:52 Some problems about TZASC configuration Chenxu Wang
2021-12-13 12:39 ` Marc Zyngier [this message]
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=d6fef1f0986a8b441cd270c29d2a7baa@kernel.org \
--to=maz@kernel.org \
--cc=irakatz51@gmail.com \
--cc=kvmarm@lists.cs.columbia.edu \
/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.