mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
The present way of setting this up is flawed: Leaving the I/O bitmap pointer at zero means that the interrupt redirection bitmap lives outside (ahead of) the allocated space of the TSS. Similarly setting a TSS limit of 255 when only 128 bytes get allocated means that 128 extra bytes may be accessed by the CPU during I/O port access processing. Introduce a new HVM param to set the allocated size of the TSS, and have the hypervisor actually take care of setting namely the I/O bitmap pointer. Both this and the segment limit now take the allocated size into account. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Tim Deegan <tim@xen.org> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>