summaryrefslogtreecommitdiff
path: root/include/acpi/acconfig.h
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2016-06-23 16:34:47 (GMT)
committerPaolo Bonzini <pbonzini@redhat.com>2016-07-05 14:08:57 (GMT)
commiteadfb501a5f5522b3df1b06ed8ffbb063d19d827 (patch)
tree2fd46a3caad11f9aacf4a568e6b430770e01b35a /include/acpi/acconfig.h
parent1f9ca62cbc5f4d1663a0f0d193156ce9dc6ed452 (diff)
downloadlinux-eadfb501a5f5522b3df1b06ed8ffbb063d19d827.tar.xz
MIPS: KVM: Save k0 straight into VCPU structure
Currently on a guest exception the guest's k0 register is saved to the scratch temp register and the guest k1 saved to the exception base address + 0x3000 using k0 to extract the Exception Base field of the EBase register and as the base operand to the store. Both are then copied into the VCPU structure after the other general purpose registers have been saved there. This bouncing to exception base + 0x3000 is not actually necessary as the VCPU pointer can be determined and written through just as easily with only a single spare register. The VCPU pointer is already needed in k1 for saving the other GP registers, so lets save the guest k0 register straight into the VCPU structure through k1, first saving k1 into the scratch temp register instead of k0. This could potentially pave the way for having a single exception base area for use by all guests. The ehb after saving the k register to the scratch temp register is also delayed until just before it needs to be read back. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Radim KrÄmář <rkrcmar@redhat.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Cc: kvm@vger.kernel.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/acpi/acconfig.h')
0 files changed, 0 insertions, 0 deletions