gramineproject / gramine-tdx

A library OS for Linux multi-process applications, with Intel TDX support (experimental)
GNU Lesser General Public License v3.0
19 stars 5 forks source link

[PAL/vm-common] Add handling of #PF exceptions #40

Closed dimakuv closed 4 months ago

dimakuv commented 4 months ago

Description of the changes

In particular, this unblocks Java workloads. This is because Java performs a null pointer dereference on purpose, raising a #PF exception and handling it in an app-level signal handler.

How to test this PR?

Together with #36, this fully unblocks Java workloads like this one: https://github.com/dimstav23/gramine-examples/tree/dimstav23/add_java_image_processing_example/java_image

Java references that explain when/how Java induces a #PF exception:


This change is Reviewable