mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-20 07:58:55 +00:00
The largest possible PTM response is only 16 bytes. Size the output buffer correctly. In the socket read function, rely on the caller to provide a sufficiently large buffer. That eliminates another large stack variable. In total this saves almost 8KB stack space. Signed-off-by: Wei Liu <liuwe@microsoft.com>