mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 10:01:43 +00:00
90e9311a34
Convert the whole of locore.S (assembly to enter guest and handle exception entry) to be generated dynamically with uasm. This is done with minimal changes to the resulting code. The main changes are: - Some constants are generated by uasm using LUI+ADDIU instead of LUI+ORI. - Loading of lo and hi are swapped around in vcpu_run but not when resuming the guest after an exit. Both bits of logic are now generated by the same code. - Register MOVEs in uasm use different ADDU operand ordering to GNU as, putting zero register into rs instead of rt. - The JALR.HB to call the C exit handler is switched to JALR, since the hazard barrier would appear to be unnecessary. This will allow further optimisation in the future to dynamically handle the capabilities of the CPU. 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>
17 lines
407 B
Makefile
17 lines
407 B
Makefile
# Makefile for KVM support for MIPS
|
|
#
|
|
|
|
common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o)
|
|
|
|
EXTRA_CFLAGS += -Ivirt/kvm -Iarch/mips/kvm
|
|
|
|
common-objs-$(CONFIG_CPU_HAS_MSA) += msa.o
|
|
|
|
kvm-objs := $(common-objs-y) mips.o emulate.o entry.o \
|
|
interrupt.o stats.o commpage.o \
|
|
dyntrans.o trap_emul.o fpu.o
|
|
kvm-objs += mmu.o
|
|
|
|
obj-$(CONFIG_KVM) += kvm.o
|
|
obj-y += callback.o tlb.o
|