1 #include "kvm/kvm-cpu.h" 2 #include "kvm/kvm.h" 3 #include "kvm/virtio.h" 4 #include "kvm/term.h" 5 6 #include <asm/ptrace.h> 7 8 static int debug_fd; 9 10 void kvm_cpu__set_debug_fd(int fd) 11 { 12 debug_fd = fd; 13 } 14 15 int kvm_cpu__get_debug_fd(void) 16 { 17 return debug_fd; 18 } 19 20 struct kvm_cpu *kvm_cpu__arch_init(struct kvm *kvm, unsigned long cpu_id) 21 { 22 /* TODO: */ 23 return NULL; 24 } 25 26 void kvm_cpu__arch_nmi(struct kvm_cpu *cpu) 27 { 28 } 29 30 void kvm_cpu__delete(struct kvm_cpu *vcpu) 31 { 32 /* TODO: */ 33 } 34 35 bool kvm_cpu__handle_exit(struct kvm_cpu *vcpu) 36 { 37 /* TODO: */ 38 return false; 39 } 40 41 void kvm_cpu__show_page_tables(struct kvm_cpu *vcpu) 42 { 43 /* TODO: */ 44 } 45 46 void kvm_cpu__reset_vcpu(struct kvm_cpu *vcpu) 47 { 48 /* TODO: */ 49 } 50 51 int kvm_cpu__get_endianness(struct kvm_cpu *vcpu) 52 { 53 return VIRTIO_ENDIAN_LE; 54 } 55 56 void kvm_cpu__show_code(struct kvm_cpu *vcpu) 57 { 58 /* TODO: */ 59 } 60 61 void kvm_cpu__show_registers(struct kvm_cpu *vcpu) 62 { 63 /* TODO: */ 64 } 65