[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210802161055-mutt-send-email-mst@kernel.org>
Date: Mon, 2 Aug 2021 16:11:57 -0400
From: "Michael S. Tsirkin" <mst@...hat.com>
To: fuguancheng <fuguancheng@...edance.com>
Cc: jasowang@...hat.com, stefanha@...hat.com, sgarzare@...hat.com,
davem@...emloft.net, kuba@...nel.org, arseny.krasnov@...persky.com,
andraprs@...zon.com, colin.king@...onical.com, kvm@...r.kernel.org,
virtualization@...ts.linux-foundation.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/4] VSOCK DRIVER: Add multi-cid support for guest
On Mon, Aug 02, 2021 at 08:07:17PM +0800, fuguancheng wrote:
> diff --git a/include/uapi/linux/virtio_vsock.h b/include/uapi/linux/virtio_vsock.h
> index 3dd3555b2740..0afc14446b01 100644
> --- a/include/uapi/linux/virtio_vsock.h
> +++ b/include/uapi/linux/virtio_vsock.h
> @@ -42,7 +42,8 @@
> #define VIRTIO_VSOCK_F_SEQPACKET 1 /* SOCK_SEQPACKET supported */
>
> struct virtio_vsock_config {
> - __le64 guest_cid;
> + __le32 number_cid;
> + __le64 cids[];
> } __attribute__((packed));
any host/guest interface change needs to copy the virtio TC.
packing here is a bad idea imho, just add explicit padding.
--
MST
Powered by blists - more mailing lists