From: will.deacon@arm.com (Will Deacon) Date: Wed, 5 Dec 2012 15:07:32 +0000 Subject: [RFC PATCH 0/2] Add support for a fake, para-virtualised machine In-Reply-To: References: <1354557160-20144-1-git-send-email-will.deacon@arm.com> <50BD1F81.9080304@gmail.com> <20121204123001.GL23368@mudshark.cambridge.arm.com> <50BE04C6.4070602@gmail.com> <20121204171129.GE5314@mudshark.cambridge.arm.com> <20121204181446.GJ5314@mudshark.cambridge.arm.com> Message-ID: <20121205150732.GJ22385@mudshark.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Dec 05, 2012 at 02:52:57PM +0000, Catalin Marinas wrote: > On 4 December 2012 18:14, Will Deacon wrote: > > Well, this depends on the guest taking an undefined instruction exception on > > the smc, then deciding to issue an hvc instead and *then* having the > > hypervisor somehow translate that into a PSCI invocation. It could work, but > > it sounds easy to mess up and relies on the PSCI firmware co-existing with > > things like kvm. > > We can have enable-method DT entries independent of the SoC and one of > them can be psci-hvc. As soon as the support is there in the upper layers, we can do that. > Just for clarification, AArch32 with virtualisation mandates the > security extensions, so the SMC can be trapped. On AArch64 it is a bit > tricky since the presence of EL3 is not mandate, in which case SMC > would undef (don't as why ;). That's where we can have different > enable methods specified via the DT. Not entirely true: only ARMv7 mandates the security extensions in this manner. You can still have ARMv8 CPUs running AArch32 code without the security extensions. Will