mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Handle MSHV INS/OUTS port intercepts by translating the guest string operand through MshvEmulatorContext and copying data between guest memory and existing PIO callbacks. Support REP counts, zero-count REP, and direction-flag based RSI/RDI updates. Commit RIP plus RCX/RSI/RDI after the transfer completes. This removes the fw_cfg/debug-port skip. OVMF can now use the real string I/O path instead of relying on ignored ports. Signed-off-by: Wei Liu <liuwe@microsoft.com> Assisted-by: Copilot:GPT-5.5