It seems like you all are busy now, so I've made this patch set so that
mechanical and trivial changes come before.
V2->V3:
Patch 01: Rebased and moved here. Updated stale comments.
We may also want to use a union, inside the struct, to eliminate casting to
(u64 *) type when spte is in the head in the future.
Patch 02-05: No change.
About patch 03: There was a comment on the usage of braces for a single line
else-if statement from Xiao. As I answered, checkpatch did not complain about
this, and when the corresponding if block has multiple lines, some developers
prefer/recommend this style. Feel free to modify it if you don't like it.
Patch 06: Changed WARN_ON to BUG_ON as Marcelo suggested.
Patch 07: Removed unnecessary zero-initialization of sp->parent_ptes as Xiao
suggested.