aboutsummaryrefslogtreecommitdiff
path: root/target/ppc
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 /target/ppc
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 'target/ppc')
-rw-r--r--target/ppc/kvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/ppc/kvm.c b/target/ppc/kvm.c
index 907dba6..3efc28f 100644
--- a/target/ppc/kvm.c
+++ b/target/ppc/kvm.c
@@ -900,7 +900,7 @@ int kvmppc_put_books_sregs(PowerPCCPU *cpu)
return kvm_vcpu_ioctl(CPU(cpu), KVM_SET_SREGS, &sregs);
}
-int kvm_arch_put_registers(CPUState *cs, int level)
+int kvm_arch_put_registers(CPUState *cs, int level, Error **errp)
{
PowerPCCPU *cpu = POWERPC_CPU(cs);
CPUPPCState *env = &cpu->env;
@@ -1205,7 +1205,7 @@ static int kvmppc_get_books_sregs(PowerPCCPU *cpu)
return 0;
}
-int kvm_arch_get_registers(CPUState *cs)
+int kvm_arch_get_registers(CPUState *cs, Error **errp)
{
PowerPCCPU *cpu = POWERPC_CPU(cs);
CPUPPCState *env = &cpu->env;