mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-15 16:11:38 +00:00
There are two parts: - Unconditionally zero the output area. The length of the incoming vector has been seen from 1 to 4 bytes, even though just the first byte might need to be handled. But also, this ensures any possibly unhandled offset will return zeroed result to the caller. The former implementation used an I/O port which seems to behave differently from MMIO and wouldn't require explicit output zeroing. - An access with zero offset still takes place and needs to be handled. Fixes #2437. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com> (cherry picked from commit 9e9aba7c0ba31319e63b33ec5a99aba103a97b55) Signed-off-by: Rob Bradford <robert.bradford@intel.com>