mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-10-19 06:43:56 +00:00
This allows triggering NMI on guests using 'kvm debug -m [cpu]'. Please note that the default behaviour of 'kvm debug' dumping guest's cpu state has been modified to require a '-d'/--dump. Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
25 lines
821 B
C
25 lines
821 B
C
#ifndef KVM__KVM_CPU_H
|
|
#define KVM__KVM_CPU_H
|
|
|
|
#include "kvm/kvm-cpu-arch.h"
|
|
#include <stdbool.h>
|
|
|
|
struct kvm_cpu *kvm_cpu__init(struct kvm *kvm, unsigned long cpu_id);
|
|
void kvm_cpu__delete(struct kvm_cpu *vcpu);
|
|
void kvm_cpu__reset_vcpu(struct kvm_cpu *vcpu);
|
|
void kvm_cpu__setup_cpuid(struct kvm_cpu *vcpu);
|
|
void kvm_cpu__enable_singlestep(struct kvm_cpu *vcpu);
|
|
void kvm_cpu__run(struct kvm_cpu *vcpu);
|
|
void kvm_cpu__reboot(void);
|
|
int kvm_cpu__start(struct kvm_cpu *cpu);
|
|
bool kvm_cpu__handle_exit(struct kvm_cpu *vcpu);
|
|
|
|
int kvm_cpu__get_debug_fd(void);
|
|
void kvm_cpu__set_debug_fd(int fd);
|
|
void kvm_cpu__show_code(struct kvm_cpu *vcpu);
|
|
void kvm_cpu__show_registers(struct kvm_cpu *vcpu);
|
|
void kvm_cpu__show_page_tables(struct kvm_cpu *vcpu);
|
|
void kvm_cpu__arch_nmi(struct kvm_cpu *cpu);
|
|
|
|
#endif /* KVM__KVM_CPU_H */
|