x86/domctl: Avoid redundant zeroing in XEN_DOMCTL_get_vcpu_msrs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Dec 2017 13:16:12 +0000 (13:16 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 14 Dec 2017 18:05:45 +0000 (18:05 +0000)
commitfe66b42da63b820ae75dd9dd2987b32f0631ec4e
tree7c9960a9856a7c1319aaa8658fdf649dde11ce28
parentc4f6ad4c5fd25cb0ccc0cdbe711db97e097f0407
x86/domctl: Avoid redundant zeroing in XEN_DOMCTL_get_vcpu_msrs

Zero the msr structure once at initialisation time, and avoid re-zeroing the
reserved field every time the structure is used.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domctl.c