]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Make vcpu const in vcpu_read_sys_reg
authorChristoffer Dall <christoffer.dall@arm.com>
Thu, 29 Nov 2018 11:20:01 +0000 (12:20 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 19 Dec 2018 17:47:07 +0000 (17:47 +0000)
commit106c22579044ebd78a0c03a1f1c0ea93c1b2efc9
tree50290aebc5fd35113610645be20b09256f724b95
parentb2bc975de4ba8c23ab7f4f23357f29389fec1b48
KVM: arm64: Make vcpu const in vcpu_read_sys_reg

vcpu_read_sys_reg should not be modifying the VCPU structure.
Eventually, to handle EL2 sysregs for nested virtualization, we will
call vcpu_read_sys_reg from places that have a const vcpu pointer, which
will complain about the lack of the const modifier on the read path.

Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/sys_regs.c