tools/xen-hvmctx: drop bogus casts from dump_cpu()
authorJan Beulich <jbeulich@suse.com>
Thu, 4 Oct 2018 12:54:48 +0000 (14:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 4 Oct 2018 12:54:48 +0000 (14:54 +0200)
commit47fccb664d1f34c1745c84b311bd2469c560ced1
treef6a2179edceb3ddd7c1a02f7b14546e9fc510354
parente30c47cd8be8ba73cfc1ec7b1ebd036464708a24
tools/xen-hvmctx: drop bogus casts from dump_cpu()

Also avoid printing the MSR flags (they're always zero as of commit
2f1add6e1c "x86/vmx: Don't leak host syscall MSR state into HVM
guests"), and print FPU registers only when the respective flag
indicates the space holds valid data.

Adjust format specifiers a little at the same time, in particular to
avoid at least some leading zeros to be printed when the positions
can't ever be non-zero. This helps readability in my opinion.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/misc/xen-hvmctx.c