2020年12月1日 下午4:12,Marc Zyngier <maz@xxxxxxxxxx> 写道:I think I know what you mean. Do you want me to describe how we achieved it?
On 2020-12-01 03:09, wangrongwei wrote:
Hi
We have validate this driver in vm and physical machine, and works fine.
But what does "work fine" mean? None of these system registers are supposed
to be accessible from userspace, so please explain *what* you are trying to
do with this, other that introducing security holes and general system
instability?
In x86, the different registers can be accessed directly using the
rdmsr and wrmsr instructions, but in ARM, since these two instructions
are missing, so we modify the code segment during runtime, similar to
the principle of static_key.