Xuan Zhuo 061b39fdfe virtio_pci: fix the common cfg map size
The function vp_modern_map_capability() takes the size parameter,
which corresponds to the size of virtio_pci_common_cfg. As a result,
this indicates the size of memory area to map.

Now the size is the size of virtio_pci_common_cfg, but some feature(such
as the _F_RING_RESET) needs the virtio_pci_modern_common_cfg, so this
commit changes the size to the size of virtio_pci_modern_common_cfg.

Cc: stable@vger.kernel.org
Fixes: 0b50cece0b78 ("virtio_pci: introduce helper to get/set queue reset")
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Message-Id: <20231010031120.81272-3-xuanzhuo@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
2023-10-18 11:30:12 -04:00
..
2023-08-22 15:50:57 +02:00
2023-08-30 13:34:34 -07:00
2023-10-03 11:57:37 -07:00
2023-10-06 15:43:19 -07:00
Hi,
2023-09-13 11:44:20 -07:00
2023-08-31 12:43:10 -07:00
2023-08-24 16:20:30 -07:00
2023-10-13 08:52:57 -07:00
2023-08-30 19:23:00 -07:00
2023-09-30 18:41:37 -07:00
2023-10-13 13:20:24 +10:00
2023-09-04 11:26:29 -07:00
2023-08-28 16:35:01 -07:00
2023-10-13 23:19:16 -07:00
2023-08-31 12:43:10 -07:00
2023-10-05 11:03:20 -07:00
2023-09-01 09:38:00 -07:00
2023-08-30 18:32:24 -07:00
2023-09-14 16:20:31 -06:00
2023-08-18 10:55:49 +05:30
2023-10-06 09:11:13 -07:00
2023-10-13 09:17:48 -07:00
2023-09-07 18:05:58 -07:00
2023-09-04 15:12:26 -07:00
2023-09-04 15:08:52 -07:00
2023-09-07 16:07:35 -07:00
2023-10-12 11:52:23 -07:00
2023-10-12 11:52:23 -07:00
2023-09-21 10:33:49 +02:00
2023-08-24 16:20:18 -07:00
2023-09-06 09:19:12 -07:00
2023-08-21 13:27:44 +02:00