]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: arm64: Propagate vcpu into read_id_reg()
authorDave Martin <Dave.Martin@arm.com>
Fri, 28 Sep 2018 13:39:13 +0000 (14:39 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 29 Mar 2019 14:41:53 +0000 (14:41 +0000)
commit1c19991390aefe7f1fc5d53d0b767122ff8043f8
treea14ba95f302b5b20aa2a340e19432fede5290954
parent1765edbab16e3dc73367bda04e45337cea3e51a0
KVM: arm64: Propagate vcpu into read_id_reg()

Architecture features that are conditionally visible to the guest
will require run-time checks in the ID register accessor functions.
In particular, read_id_reg() will need to perform checks in order
to generate the correct emulated value for certain ID register
fields such as ID_AA64PFR0_EL1.SVE for example.

This patch propagates vcpu into read_id_reg() so that future
patches can add run-time checks on the guest configuration here.

For now, there is no functional change.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: zhang.lei <zhang.lei@jp.fujitsu.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/sys_regs.c