mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
With the number of these growing it becomes increasingly desirable to not repeatedly alter the sysctl interface to accommodate them. Replace the explicit listing of numbered states by arrays, unused fields of which will remain untouched by the hypercall. The adjusted sysctl interface at once fixes an unrelated shortcoming of the original one: The "nr" field, specifying the size of the "triggers" and "residencies" arrays, has to be an input (along with being an output), which the previous implementation didn't obey to. Note that the bouncing direction in the libxc interface at once gets corrected to OUT (was BOTH). Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Acked-by: Keir Fraser <keir@xen.org> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Kevin Tian <kevin.tian@intel.com>