Skip to contentSkip to conversation

Add book3s_64 highmem asm code

PATCH In review Alexander Graf 1 participant 1 message Sep 29, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/27 Add book3s_64 highmem asm code

This is the of entry / exit code. In order to switch between host and guest context, we need to switch register state and call the exit code handler on exit.

This assembly file does exactly that. To finally enter the guest it calls into book3s_64_slb.S. On exit it gets jumped at from book3s_64_slb.S too.

---

v3 -> v4:

- header rename fix

---
 arch/powerpc/include/asm/kvm_ppc.h      |    1 +
 arch/powerpc/kvm/book3s_64_interrupts.S |  392 +++++++++++++++++++++++++++++++
 2 files changed, 393 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/kvm/book3s_64_interrupts.S
arch/powerpc/include/asm/kvm_ppc.h +1 -0
index 2c6ee34..269ee46 100644
@@ -39,6 +39,7 @@ enum emulation_result {
 extern int __kvmppc_vcpu_run(struct kvm_run *kvm_run, struct kvm_vcpu *vcpu);
 extern char kvmppc_handlers_start[];
 extern unsigned long kvmppc_handler_len;
+extern void kvmppc_handler_highmem(void);
 
 extern void kvmppc_dump_vcpu(struct kvm_vcpu *vcpu);
 extern int kvmppc_handle_load(struct kvm_run *run, struct kvm_vcpu *vcpu,
arch/powerpc/kvm/book3s_64_interrupts.S new file +392 -0

392 lines not on this page · raw message

Signature · 1 line
1.6.0.2