Re: [PATCH 2/2] virtio-scsi: Pack struct virtio_scsi_{req_cmd,resp_cmd}

2013-03-17 Thread Michael S. Tsirkin
On Fri, Mar 15, 2013 at 09:45:16AM +0800, Asias He wrote: > Device needs the exact size of these data structure. Prevent padding. > > This fixes guest hang when booting seabios + tcm_vhost. > > Signed-off-by: Asias He Acked-by: Michael S. Tsirkin > --- > src/virtio-scsi.h | 4 ++-- > 1 file

Re: [PATCH 2/2] virtio-scsi: Pack struct virtio_scsi_{req_cmd,resp_cmd}

2013-03-15 Thread Paolo Bonzini
Il 15/03/2013 02:45, Asias He ha scritto: > Device needs the exact size of these data structure. Prevent padding. > > This fixes guest hang when booting seabios + tcm_vhost. > > Signed-off-by: Asias He > --- > src/virtio-scsi.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > di

[PATCH 2/2] virtio-scsi: Pack struct virtio_scsi_{req_cmd,resp_cmd}

2013-03-14 Thread Asias He
Device needs the exact size of these data structure. Prevent padding. This fixes guest hang when booting seabios + tcm_vhost. Signed-off-by: Asias He --- src/virtio-scsi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virtio-scsi.h b/src/virtio-scsi.h index bbfbf30