On Thu, Feb 13, 2025, 5:45 PM Alexander Graf <[email protected]> wrote:
> When we return a response packet from NSM, we need to indicate its
> length according to the content of the response. Prior to this patch, we
> returned the length of the source buffer, which may confuse guest code
> that relies on the response size.
>
> Fix it by returning the response payload size instead.
>
> Fixes: bb154e3e0cc715 ("device/virtio-nsm: Support for Nitro Secure Module
> device")
> Reported-by: Vikrant Garg <[email protected]>
> Signed-off-by: Alexander Graf <[email protected]>
> ---
> hw/virtio/virtio-nsm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Dorjoy Chowdhury <[email protected]>
Thanks for fixing!
Regards,
dorjoy