Re: [PATCH vhost v3 3/4] virtio_pci: add check for common cfg size

2023-10-18 Thread Michael S. Tsirkin
On Tue, Oct 10, 2023 at 11:11:19AM +0800, Xuan Zhuo wrote: > Some buggy devices, the common cfg size may not match the features. > > This patch checks the common cfg size for the > features(VIRTIO_F_NOTIF_CONFIG_DATA, VIRTIO_F_RING_RESET). When the > common cfg size does not match the

Re: [PATCH vhost v3 3/4] virtio_pci: add check for common cfg size

2023-10-10 Thread Jason Wang
On Tue, Oct 10, 2023 at 3:58 PM Xuan Zhuo wrote: > > On Tue, 10 Oct 2023 14:41:39 +0800, Jason Wang wrote: > > On Tue, Oct 10, 2023 at 11:11 AM Xuan Zhuo > > wrote: > > > > > > Some buggy devices, the common cfg size may not match the features. > > > > > > This patch checks the common cfg size

Re: [PATCH vhost v3 3/4] virtio_pci: add check for common cfg size

2023-10-10 Thread Xuan Zhuo
On Tue, 10 Oct 2023 14:41:39 +0800, Jason Wang wrote: > On Tue, Oct 10, 2023 at 11:11 AM Xuan Zhuo wrote: > > > > Some buggy devices, the common cfg size may not match the features. > > > > This patch checks the common cfg size for the > > features(VIRTIO_F_NOTIF_CONFIG_DATA,

Re: [PATCH vhost v3 3/4] virtio_pci: add check for common cfg size

2023-10-10 Thread Jason Wang
On Tue, Oct 10, 2023 at 11:11 AM Xuan Zhuo wrote: > > Some buggy devices, the common cfg size may not match the features. > > This patch checks the common cfg size for the > features(VIRTIO_F_NOTIF_CONFIG_DATA, VIRTIO_F_RING_RESET). When the > common cfg size does not match the corresponding

[PATCH vhost v3 3/4] virtio_pci: add check for common cfg size

2023-10-09 Thread Xuan Zhuo
Some buggy devices, the common cfg size may not match the features. This patch checks the common cfg size for the features(VIRTIO_F_NOTIF_CONFIG_DATA, VIRTIO_F_RING_RESET). When the common cfg size does not match the corresponding feature, we fail the probe and print error message.