mirror of https://github.com/xemu-project/xemu.git
s390x: empty function stubs in preparation for __KVM_HAVE_GUEST_DEBUG
This patch creates empty function stubs (used by the gdbserver) in preparation for the hw debugging support by kvm on s390, which will enable the __KVM_HAVE_GUEST_DEBUG define in the linux headers and require these methods on the qemu side. Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com> Cc: qemu-stable@nongnu.org Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
parent
0e96643c98
commit
8c0124490b
|
@ -383,6 +383,26 @@ int kvm_arch_remove_sw_breakpoint(CPUState *cs, struct kvm_sw_breakpoint *bp)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int kvm_arch_insert_hw_breakpoint(target_ulong addr,
|
||||||
|
target_ulong len, int type)
|
||||||
|
{
|
||||||
|
return -ENOSYS;
|
||||||
|
}
|
||||||
|
|
||||||
|
int kvm_arch_remove_hw_breakpoint(target_ulong addr,
|
||||||
|
target_ulong len, int type)
|
||||||
|
{
|
||||||
|
return -ENOSYS;
|
||||||
|
}
|
||||||
|
|
||||||
|
void kvm_arch_remove_all_hw_breakpoints(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void kvm_arch_update_guest_debug(CPUState *cpu, struct kvm_guest_debug *dbg)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void kvm_arch_pre_run(CPUState *cpu, struct kvm_run *run)
|
void kvm_arch_pre_run(CPUState *cpu, struct kvm_run *run)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -844,6 +864,11 @@ static int handle_tsch(S390CPU *cpu)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int kvm_arch_handle_debug_exit(S390CPU *cpu)
|
||||||
|
{
|
||||||
|
return -ENOSYS;
|
||||||
|
}
|
||||||
|
|
||||||
int kvm_arch_handle_exit(CPUState *cs, struct kvm_run *run)
|
int kvm_arch_handle_exit(CPUState *cs, struct kvm_run *run)
|
||||||
{
|
{
|
||||||
S390CPU *cpu = S390_CPU(cs);
|
S390CPU *cpu = S390_CPU(cs);
|
||||||
|
@ -859,6 +884,9 @@ int kvm_arch_handle_exit(CPUState *cs, struct kvm_run *run)
|
||||||
case KVM_EXIT_S390_TSCH:
|
case KVM_EXIT_S390_TSCH:
|
||||||
ret = handle_tsch(cpu);
|
ret = handle_tsch(cpu);
|
||||||
break;
|
break;
|
||||||
|
case KVM_EXIT_DEBUG:
|
||||||
|
ret = kvm_arch_handle_debug_exit(cpu);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "Unknown KVM exit: %d\n", run->exit_reason);
|
fprintf(stderr, "Unknown KVM exit: %d\n", run->exit_reason);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue