All of lore.kernel.org
 help / color / mirror / Atom feed
* Some problems about TZASC configuration
@ 2021-12-12 19:52 Chenxu Wang
  2021-12-13 12:39 ` Marc Zyngier
  0 siblings, 1 reply; 2+ messages in thread
From: Chenxu Wang @ 2021-12-12 19:52 UTC (permalink / raw)
  To: kvmarm


[-- Attachment #1.1: Type: text/plain, Size: 465 bytes --]

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 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.

Sincerly,
Wang

[-- Attachment #1.2: Type: text/html, Size: 775 bytes --]

[-- Attachment #2: Type: text/plain, Size: 151 bytes --]

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Some problems about TZASC configuration
  2021-12-12 19:52 Some problems about TZASC configuration Chenxu Wang
@ 2021-12-13 12:39 ` Marc Zyngier
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Zyngier @ 2021-12-13 12:39 UTC (permalink / raw)
  To: Chenxu Wang; +Cc: kvmarm

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-13 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-12 19:52 Some problems about TZASC configuration Chenxu Wang
2021-12-13 12:39 ` Marc Zyngier

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.