Re: [PATCH] powerpc: Disable DAWR on POWER9

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

 



Michael Neuling <mikey@xxxxxxxxxxx> writes:

> For ptrace, we now return an error if run on a POWER9. GDB gives this
> error when you attempt to run a program with a breakpoint set on
> POWER9:
>   "Unexpected error setting breakpoint or watchpoint: No such device."

Thanks a lot for implementing this!

Would it also make sense to have PPC_PTRACE_GETHWDBGINFO return
dbginfo.num_data_bps = 0 if !breakpoint_available()? In this case GDB
would work in a friendlier way, because it would transparently switch to
software watchpoints.

Not sure what to do about .features in this case. I assume currently it
only has PPC_DEBUG_FEATURE_DATA_BP_RANGE set and not the DAWR feature
flag (since the cpu feature is disabled).

Thanks!
Pedro

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux