]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/virt.c
hw/arm/virt: Make first flash device Secure-only if booting secure
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 4 Mar 2016 11:30:18 +0000 (11:30 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 4 Mar 2016 11:30:18 +0000 (11:30 +0000)
commit738a5d9fbbd242b4a16cd1837fd3ded610ef1b43
treef82deb35b9bc1d7a6e3465e893597e19ae8b4a70
parent16f4a8dc5c671eb176121d576ef28d1e49b84bfe
hw/arm/virt: Make first flash device Secure-only if booting secure

If the virt board is started with the 'secure' property set to
request a Secure setup, then make the first flash device be
visible only to the Secure world.

This is a breaking change, but I don't expect it to be noticed
by anybody, because running TZ-aware guests isn't common and
those guests are generally going to be booting from the flash
and implicitly expecting their Non-secure guests to not touch it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1455288361-30117-5-git-send-email-peter.maydell@linaro.org
hw/arm/virt.c