]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: arm64: Share the parts of get/set events useful to 32bit
authorJames Morse <james.morse@arm.com>
Thu, 19 Jul 2018 15:24:24 +0000 (16:24 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Sat, 21 Jul 2018 15:02:31 +0000 (16:02 +0100)
commit539aee0edb9fdc8f465e3843c261acc88c47d8ee
tree379427d3095a0421824b8434ae98d4800a773ddf
parentbe26b3a73413c2ebf14d5e76a66ad964e6458080
KVM: arm64: Share the parts of get/set events useful to 32bit

The get/set events helpers to do some work to check reserved
and padding fields are zero. This is useful on 32bit too.

Move this code into virt/kvm/arm/arm.c, and give the arch
code some underscores.

This is temporarily hidden behind __KVM_HAVE_VCPU_EVENTS until
32bit is wired up.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Dongjiu Geng <gengdongjiu@huawei.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/guest.c
virt/kvm/arm/arm.c