aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJulia Suvorova <jusual@redhat.com>2024-09-27 12:47:40 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-10-03 22:04:19 +0200
commita1676bb3047f28b292ecbce3a378ccc0b4721d47 (patch)
tree92fdef6ec8d546dd67cac4917a56b96281d1e0b5 /include
parent28ed7f9761eb273e7dedcfdc0507d158106d0451 (diff)
downloadqemu-a1676bb3047f28b292ecbce3a378ccc0b4721d47.zip
qemu-a1676bb3047f28b292ecbce3a378ccc0b4721d47.tar.gz
qemu-a1676bb3047f28b292ecbce3a378ccc0b4721d47.tar.bz2
kvm: Allow kvm_arch_get/put_registers to accept Error**
This is necessary to provide discernible error messages to the caller. Signed-off-by: Julia Suvorova <jusual@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Link: https://lore.kernel.org/r/20240927104743.218468-2-jusual@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sysemu/kvm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h
index 613d3f7..c3a60b2 100644
--- a/include/sysemu/kvm.h
+++ b/include/sysemu/kvm.h
@@ -359,7 +359,7 @@ int kvm_arch_handle_exit(CPUState *cpu, struct kvm_run *run);
int kvm_arch_process_async_events(CPUState *cpu);
-int kvm_arch_get_registers(CPUState *cpu);
+int kvm_arch_get_registers(CPUState *cpu, Error **errp);
/* state subset only touched by the VCPU itself during runtime */
#define KVM_PUT_RUNTIME_STATE 1
@@ -368,7 +368,7 @@ int kvm_arch_get_registers(CPUState *cpu);
/* full state set, modified during initialization or on vmload */
#define KVM_PUT_FULL_STATE 3
-int kvm_arch_put_registers(CPUState *cpu, int level);
+int kvm_arch_put_registers(CPUState *cpu, int level, Error **errp);
int kvm_arch_get_default_type(MachineState *ms);