-
- Downloads
arm/arm64: KVM: Use set/way op trapping to track the state of the caches
Trying to emulate the behaviour of set/way cache ops is fairly pointless, as there are too many ways we can end-up missing stuff. Also, there is some system caches out there that simply ignore set/way operations. So instead of trying to implement them, let's convert it to VA ops, and use them as a way to re-enable the trapping of VM ops. That way, we can detect the point when the MMU/caches are turned off, and do a full VM flush (which is what the guest was trying to do anyway). This allows a 32bit zImage to boot on the APM thingy, and will probably help bootloaders in general. Signed-off-by:Marc Zyngier <marc.zyngier@arm.com> Signed-off-by:
Christoffer Dall <christoffer.dall@linaro.org>
Showing
- arch/arm/include/asm/kvm_emulate.h 10 additions, 0 deletionsarch/arm/include/asm/kvm_emulate.h
- arch/arm/include/asm/kvm_host.h 0 additions, 3 deletionsarch/arm/include/asm/kvm_host.h
- arch/arm/include/asm/kvm_mmu.h 2 additions, 1 deletionarch/arm/include/asm/kvm_mmu.h
- arch/arm/kvm/arm.c 0 additions, 10 deletionsarch/arm/kvm/arm.c
- arch/arm/kvm/coproc.c 14 additions, 56 deletionsarch/arm/kvm/coproc.c
- arch/arm/kvm/coproc.h 3 additions, 3 deletionsarch/arm/kvm/coproc.h
- arch/arm/kvm/coproc_a15.c 1 addition, 1 deletionarch/arm/kvm/coproc_a15.c
- arch/arm/kvm/coproc_a7.c 1 addition, 1 deletionarch/arm/kvm/coproc_a7.c
- arch/arm/kvm/mmu.c 69 additions, 1 deletionarch/arm/kvm/mmu.c
- arch/arm/kvm/trace.h 39 additions, 0 deletionsarch/arm/kvm/trace.h
- arch/arm64/include/asm/kvm_emulate.h 10 additions, 0 deletionsarch/arm64/include/asm/kvm_emulate.h
- arch/arm64/include/asm/kvm_host.h 0 additions, 3 deletionsarch/arm64/include/asm/kvm_host.h
- arch/arm64/include/asm/kvm_mmu.h 2 additions, 1 deletionarch/arm64/include/asm/kvm_mmu.h
- arch/arm64/kvm/sys_regs.c 10 additions, 65 deletionsarch/arm64/kvm/sys_regs.c
Loading
Please register or sign in to comment