mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 03:43:37 +08:00
kvm: Change kvm_handle_internal_error() argument to CPUState
It no longer uses CPUArchState. Prepares for changing kvm_cpu_exec() argument to CPUState. Acked-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
878096eeb2
commit
5326ab5567
@ -1525,10 +1525,8 @@ static void kvm_handle_io(uint16_t port, void *data, int direction, int size,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int kvm_handle_internal_error(CPUArchState *env, struct kvm_run *run)
|
static int kvm_handle_internal_error(CPUState *cpu, struct kvm_run *run)
|
||||||
{
|
{
|
||||||
CPUState *cpu = ENV_GET_CPU(env);
|
|
||||||
|
|
||||||
fprintf(stderr, "KVM internal error.");
|
fprintf(stderr, "KVM internal error.");
|
||||||
if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) {
|
if (kvm_check_extension(kvm_state, KVM_CAP_INTERNAL_ERROR_DATA)) {
|
||||||
int i;
|
int i;
|
||||||
@ -1690,7 +1688,7 @@ int kvm_cpu_exec(CPUArchState *env)
|
|||||||
ret = -1;
|
ret = -1;
|
||||||
break;
|
break;
|
||||||
case KVM_EXIT_INTERNAL_ERROR:
|
case KVM_EXIT_INTERNAL_ERROR:
|
||||||
ret = kvm_handle_internal_error(env, run);
|
ret = kvm_handle_internal_error(cpu, run);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
DPRINTF("kvm_arch_handle_exit\n");
|
DPRINTF("kvm_arch_handle_exit\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user