kvm-cpus.h 798 B

12345678910111213141516171819202122232425
  1. /*
  2. * Accelerator CPUS Interface
  3. *
  4. * Copyright 2020 SUSE LLC
  5. *
  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. */
  9. #ifndef KVM_CPUS_H
  10. #define KVM_CPUS_H
  11. #include "system/cpus.h"
  12. int kvm_init_vcpu(CPUState *cpu, Error **errp);
  13. int kvm_cpu_exec(CPUState *cpu);
  14. void kvm_destroy_vcpu(CPUState *cpu);
  15. void kvm_cpu_synchronize_post_reset(CPUState *cpu);
  16. void kvm_cpu_synchronize_post_init(CPUState *cpu);
  17. void kvm_cpu_synchronize_pre_loadvm(CPUState *cpu);
  18. bool kvm_supports_guest_debug(void);
  19. int kvm_insert_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len);
  20. int kvm_remove_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len);
  21. void kvm_remove_all_breakpoints(CPUState *cpu);
  22. #endif /* KVM_CPUS_H */