[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/3] s390x: empty function stubs in preparation
From: |
Christian Borntraeger |
Subject: |
Re: [Qemu-devel] [PATCH 1/3] s390x: empty function stubs in preparation for __KVM_HAVE_GUEST_DEBUG |
Date: |
Thu, 24 Apr 2014 16:56:02 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
On 24/04/14 10:51, Jens Freimann wrote:
> From: David Hildenbrand <address@hidden>
>
> 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 <address@hidden>
> Signed-off-by: Jens Freimann <address@hidden>
> Reviewed-by: Cornelia Huck <address@hidden>
Acked-by: Christian Borntraeger <address@hidden>
Conny, can you take that patch in your next pull request? Otherwise
qemu will fail to build as soon as somebody does a headersync from kvm/queue.
> Cc: address@hidden
> ---
> target-s390x/kvm.c | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
> index 56b9af7..2b2dcdc 100644
> --- a/target-s390x/kvm.c
> +++ b/target-s390x/kvm.c
> @@ -383,6 +383,26 @@ int kvm_arch_remove_sw_breakpoint(CPUState *cs, struct
> kvm_sw_breakpoint *bp)
> 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)
> {
> }
> @@ -844,6 +864,11 @@ static int handle_tsch(S390CPU *cpu)
> return ret;
> }
>
> +static int kvm_arch_handle_debug_exit(S390CPU *cpu)
> +{
> + return -ENOSYS;
> +}
> +
> int kvm_arch_handle_exit(CPUState *cs, struct kvm_run *run)
> {
> 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:
> ret = handle_tsch(cpu);
> break;
> + case KVM_EXIT_DEBUG:
> + ret = kvm_arch_handle_debug_exit(cpu);
> + break;
> default:
> fprintf(stderr, "Unknown KVM exit: %d\n", run->exit_reason);
> break;
>
- Re: [Qemu-devel] [PATCH 3/3] s390x/helper: Added format control bit to MMU translation, (continued)
- Re: [Qemu-devel] [PATCH 3/3] s390x/helper: Added format control bit to MMU translation, Alexander Graf, 2014/04/24
- Re: [Qemu-devel] [PATCH 3/3] s390x/helper: Added format control bit to MMU translation, Thomas Huth, 2014/04/25
- Re: [Qemu-devel] [PATCH 3/3] s390x/helper: Added format control bit to MMU translation, Alexander Graf, 2014/04/25
- Re: [Qemu-devel] [PATCH 3/3] s390x/helper: Added format control bit to MMU translation, Thomas Huth, 2014/04/25
- Re: [Qemu-devel] [PATCH 3/3] s390x/helper: Added format control bit to MMU translation, Alexander Graf, 2014/04/25
- [Qemu-devel] [PATCH] s390x/helper: Added format control bit to MMU translation, Thomas Huth, 2014/04/25
- Re: [Qemu-devel] [PATCH] s390x/helper: Added format control bit to MMU translation, Alexander Graf, 2014/04/25
- Re: [Qemu-devel] [PATCH] s390x/helper: Added format control bit to MMU translation, Cornelia Huck, 2014/04/30
- Re: [Qemu-devel] [PATCH 3/3] s390x/helper: Added format control bit to MMU translation, Jens Freimann, 2014/04/24
[Qemu-devel] [PATCH 1/3] s390x: empty function stubs in preparation for __KVM_HAVE_GUEST_DEBUG, Jens Freimann, 2014/04/24
- Re: [Qemu-devel] [PATCH 1/3] s390x: empty function stubs in preparation for __KVM_HAVE_GUEST_DEBUG,
Christian Borntraeger <=
[Qemu-devel] [PATCH 2/3] s390x/helper: Fixed real-to-absolute address translation, Jens Freimann, 2014/04/24