Re: [Xen-devel] [PATCH v9 1/7] x86/domctl: generalize the restore of vMCE parameters

2017-07-11 Thread Jan Beulich
>>> Haozhong Zhang 07/12/17 4:05 AM >>> >+static int vcpu_set_vmce(struct vcpu *v, >+ const struct xen_domctl_ext_vcpucontext *evc) >+{ >+/* >+ * Sizes of vMCE parameters used by the current and past versions >+ * of Xen in descending order. If vMCE parameters a

[Xen-devel] [PATCH v9 1/7] x86/domctl: generalize the restore of vMCE parameters

2017-07-11 Thread Haozhong Zhang
vMCE parameters in struct xen_domctl_ext_vcpucontext were extended in the past, and is likely to be extended in the future. When migrating a PV domain from old Xen, XEN_DOMCTL_set_ext_vcpucontext should handle the differences. Instead of adding ad-hoc handling code at each extension, we introduce