migration/rdma: Convert qemu_rdma_reg_whole_ram_blocks() to Error
[qemu/kevin.git] / accel / kvm / kvm-cpus.h
blobca40add32c3dd90f74ed692c88796323e6b08584
1 /*
2 * Accelerator CPUS Interface
4 * Copyright 2020 SUSE LLC
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 */
10 #ifndef KVM_CPUS_H
11 #define KVM_CPUS_H
13 #include "sysemu/cpus.h"
15 int kvm_init_vcpu(CPUState *cpu, Error **errp);
16 int kvm_cpu_exec(CPUState *cpu);
17 void kvm_destroy_vcpu(CPUState *cpu);
18 void kvm_cpu_synchronize_post_reset(CPUState *cpu);
19 void kvm_cpu_synchronize_post_init(CPUState *cpu);
20 void kvm_cpu_synchronize_pre_loadvm(CPUState *cpu);
21 bool kvm_supports_guest_debug(void);
22 int kvm_insert_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len);
23 int kvm_remove_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len);
24 void kvm_remove_all_breakpoints(CPUState *cpu);
26 #endif /* KVM_CPUS_H */