qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/4 v8] ppc: debug stub: Get trap instruction op


From: Madhavan Srinivasan
Subject: Re: [Qemu-devel] [PATCH 1/4 v8] ppc: debug stub: Get trap instruction opcode from KVM
Date: Mon, 14 Jul 2014 17:22:25 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On Monday 14 July 2014 02:45 PM, Bharat Bhushan wrote:
> Get trap instruction opcode from KVM and this opcode will
> be used for setting software breakpoint in following patch
> 
> Signed-off-by: Bharat Bhushan <address@hidden>
> ---
> v7->v8
>  - No change
> 

Reviewed By: Madhavan Srinivasan <address@hidden>


>  target-ppc/kvm.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c
> index 2d87108..4df23dd 100644
> --- a/target-ppc/kvm.c
> +++ b/target-ppc/kvm.c
> @@ -72,6 +72,8 @@ static int cap_papr;
>  static int cap_htab_fd;
>  static int cap_fixup_hcalls;
> 
> +static uint32_t debug_inst_opcode;
> +
>  /* XXX We have a race condition where we actually have a level triggered
>   *     interrupt, but the infrastructure can't expose that yet, so the guest
>   *     takes but ignores it, goes to sleep and never gets notified that 
> there's
> @@ -436,6 +438,8 @@ int kvm_arch_init_vcpu(CPUState *cs)
>          break;
>      }
> 
> +    kvm_get_one_reg(cs, KVM_REG_PPC_DEBUG_INST, &debug_inst_opcode);
> +
>      return ret;
>  }
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]