From d4ac8d64359fcaf25a65196c83ba0a091f645a3b Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Fri, 4 Nov 2022 01:16:50 +0100 Subject: Fixed page tracking and somewhat working single step probe --- notes | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 notes (limited to 'notes') diff --git a/notes b/notes new file mode 100644 index 0000000..9646ec1 --- /dev/null +++ b/notes @@ -0,0 +1,26 @@ +Observations: +- some times get extra faults with race condition.. think there is + a race cond with track_page and something is untracking the pages again +- on + +Questions: +- test/sevstep: why 0 then 15, arent both accesses in the first page? + => first code page and stack access +- test/sevstep: why does it seem to work with event race but not without? + => it doesnt (anymore) + +Tried: +- try invalidating tlbs (no effect, prob was already) + +Next steps: +- enable single-steping with multiple page faults (only one ends up in + last_fault_gfn and others stay untracked) +- try adjusting timer for single stepping +- Try to setup the non-baseline step without apic, but remapping page + such that we see the relevant page faults and the gfn increment +- need to not retrack, allow the page to get remapped + (return false from sevstep_uspt_track.. caller) and enable single_step, + THEN when interrupt hits retrack the page +- test/sevstep: implement counter.. read program memory to see + how many instructions were executed on apic timer +- add warning for high values in baseline -- cgit v1.2.3-71-gd317