viridian: remove duplicate union types
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 5 Nov 2018 10:11:39 +0000 (11:11 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 5 Nov 2018 10:11:39 +0000 (11:11 +0100)
commit01a2fd6878a2f5bd38664ac04f8736148837cb8f
tree8aabf35d4a12b7b70c5ce9a6af148832187319ad
parent137dc7e657f4158a9ea2f5963596a84c96bc4822
viridian: remove duplicate union types

The 'viridian_vp_assist', 'viridian_hypercall_gpa' and
'viridian_reference_tsc' union types are identical in layout. The layout
is also common throughout the specification [1].

This patch declares a common 'viridian_page_msr' type and converts the rest
of the code to use that type for both the hypercall and VP assist pages.

Also, rename 'viridian_guest_os_id' to 'viridian_guest_os_id_msr' since it
also is a union representing an MSR value.

No functional change.

[1] https://github.com/MicrosoftDocs/Virtualization-Documentation/raw/live/tlfs/Hypervisor%20Top%20Level%20Functional%20Specification%20v5.0C.pdf

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Roger Pau Monne <roger.pau@citrix.com>
xen/arch/x86/hvm/viridian/viridian.c
xen/include/asm-x86/hvm/viridian.h