]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Arrayify struct kvm_mips_tlb::tlb_lo*
authorJames Hogan <james.hogan@imgtec.com>
Thu, 9 Jun 2016 13:19:17 +0000 (14:19 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2016 09:02:45 +0000 (11:02 +0200)
commitad896b3c263125fe38f73ea554d85b36b541318d
tree2831cb37f7dc1da02f2d9d1700f62fb5911c4bf9
parent40f50b58b3f3a16c86d32dccaafbe6f0356870b7
MIPS: KVM: Arrayify struct kvm_mips_tlb::tlb_lo*

The values of the EntryLo0 and EntryLo1 registers for a TLB entry are
stored in separate members of struct kvm_mips_tlb called tlb_lo0 and
tlb_lo1 respectively. To allow future code which needs to manipulate
arbitrary EntryLo data in the TLB entry to be simpler and less
conditional, replace these members with an array of two elements.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/include/asm/kvm_host.h
arch/mips/kvm/emulate.c
arch/mips/kvm/mmu.c
arch/mips/kvm/tlb.c