SVM: make nested page-fault tracing and logging consistent
authorJan Beulich <jbeulich@suse.com>
Tue, 12 Mar 2019 13:36:56 +0000 (14:36 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Mar 2019 13:36:56 +0000 (14:36 +0100)
commit65a510fe5157817f3f8fb6acbb1d7786e7a8a701
tree9e3dfc01fa6e1c29c91c59fb1168fe3989b5c8f0
parent9d840969ed92182707e0871a1fda185323fcdeaa
SVM: make nested page-fault tracing and logging consistent

Don't call __get_gfn_type_access() more than once, to make sure data
recorded for xentrace matches up with what gets logged in case of the
domain getting crashed.

As a side effect this also eliminates a type mismatch reported by
Norbert Manthey, as the first call now also needs to update the local
variable "p2mt".

Do a few cosmetics at the same time: Move a comment up a little, drop
the pointless "case 0" (seeing in particular the comment's wording),
and correct formatting.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/hvm/svm/svm.c