[PATCH v2 3/9] KVM: arm64: selftests: Remove the hard-coded {b,w}pn#0 from debug-exceptions

Oliver Upton oliver.upton at linux.dev
Thu Oct 20 12:11:15 PDT 2022


On Wed, Oct 19, 2022 at 10:41:56PM -0700, Reiji Watanabe wrote:
> Remove the hard-coded {break,watch}point #0 from the guest_code() in
> debug-exceptions to allow {break,watch}point number to be specified.
> Change reset_debug_state() to zeroing all dbg{b,w}{c,v}r_el0 registers
> so that guest_code() can use the function to reset those registers
> even when non-zero {break,watch}points are specified for guest_code().
> Subsequent patches will add test cases for non-zero {break,watch}points.
> 
> Signed-off-by: Reiji Watanabe <reijiw at google.com>
> Reviewed-by: Ricardo Koller <ricarkol at google.com>

Reviewed-by: Oliver Upton <oliver.upton at linux.dev>

--
Thanks,
Oliver



More information about the linux-arm-kernel mailing list