On Mon, Feb 13, 2023 at 03:51:50PM +0100, Jan Beulich wrote:
> struct dom0_vga_console_info has been extended in the past, and it may
> be extended again. The use in PV Dom0's start info already covers for
> that by supplying the size of the provided data. For the recently
> introduced platform-op size needs providing similarly. Go the easiest
> available route and simply supply size via the hypercall return value.
>
> While there also add a build-time check that possibly future growth of
> the struct won't affect xen_platform_op_t's size.
>
> Fixes: 4dd160583c79 ("x86/platform: introduce hypercall to get initial video
> console settings")
> Signed-off-by: Jan Beulich <[email protected]>
Acked-by: Roger Pau Monné <[email protected]>
With the added comment.
Thanks, Roger.