Re: [PATCH] hw/virtio/virtio-nsm: Respond with correct length

2025-02-13 Thread Philippe Mathieu-Daudé
On 13/2/25 12:45, Alexander Graf 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 r

Re: [PATCH] hw/virtio/virtio-nsm: Respond with correct length

2025-02-13 Thread Dorjoy Chowdhury
On Thu, Feb 13, 2025, 5:45 PM Alexander Graf 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 respons

[PATCH] hw/virtio/virtio-nsm: Respond with correct length

2025-02-13 Thread Alexander Graf
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