microsoft / igvm

MIT License
91 stars 20 forks source link

specification for page data structures with file offset of 0 are incorrect #36

Closed chris-oo closed 7 months ago

chris-oo commented 8 months ago

The specification states that for page data structures with file offset zero are measured with hardware zero pages if possible:

If the file offset is zero, then a page of zeroes is to be loaded. If the page contents are to be measured, and the underlying platform supports measured zero pages as a native page type, then the loader must request this page type; otherwise, the loader must generate a page of zeroes to load as the page contents.

However, this is incorrect. These pages should be treated as normal private pages with contents of zero. A future page type will be required for specifying hardware zero pages, on platforms that support it.