sid-agrawal / OSmosis

1 stars 0 forks source link

Get OSmosis State from Linux using `/proc` #28

Open sid-agrawal opened 1 month ago

sid-agrawal commented 1 month ago

Get the OSmosis state from Linux for the memory resource.

To start, we can look at pagemap to get VA-->PA mapping and /proc/PID/pmap to extract memory related states This is linked to #25.

Subtasks:

sid-agrawal commented 1 month ago

If we can get a trivial VM booted which is just a guest image. Try getting some state from there.

sid-agrawal commented 1 month ago

Let's see what all is available under /proc and see:

sid-agrawal commented 1 month ago

Looks like /proc/pid/smaps has info about Protection Keys (i.e., MPK)

Image