Bowen Wang
e9a146bbfc
virtio-mmio: use byte to byte in read/write config when length != 1,2,4,8
...
The length of some config elements are not equal to 1,2,4,8, so we can't
assert in virtio_mmio_config_read/write() direclty when length != 1,2,4,8
For example, in virtio_net_config from virtio spec v1.2
struct virtio_net_config {
u8 mac[6];
le16 status;
le16 max_virtqueue_pairs;
le16 mtu;
le32 speed;
u8 duplex;
u8 rss_max_key_size;
le16 rss_max_indirection_table_length;
le32 supported_hash_types;
};
The mac length is 6 and not equal to 1,2,4,8
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-01-06 04:23:05 -08:00
..
2023-08-03 00:06:24 -07:00
2023-11-21 09:07:17 +01:00
2023-12-14 20:02:52 -08:00
2023-11-21 09:07:17 +01:00
2023-11-21 09:07:17 +01:00
2023-12-26 19:23:13 -08:00
2023-08-30 14:34:20 +08:00
2023-12-09 13:44:46 -08:00
2023-08-05 12:41:06 -07:00
2023-04-22 01:02:51 +08:00
2023-07-08 13:50:48 +08:00
2023-10-29 21:03:54 -03:00
2023-08-08 11:58:29 -03:00
2023-08-30 14:34:20 +08:00
2023-08-30 14:34:20 +08:00
2023-11-21 09:07:17 +01:00
2023-10-28 13:58:56 +08:00
2023-11-21 09:07:17 +01:00
2023-12-18 09:06:29 -08:00
2023-12-24 16:38:06 -08:00
2023-09-22 13:51:00 +08:00
2023-10-17 13:43:43 +08:00
2024-01-04 20:30:49 -08:00
2023-12-26 19:23:13 -08:00
2023-12-19 08:36:49 +08:00
2023-11-18 17:07:20 -08:00
2024-01-04 09:25:52 -08:00
2023-12-20 01:30:54 -08:00
2023-12-11 02:06:51 -08:00
2023-11-21 09:07:17 +01:00
2023-12-26 19:23:13 -08:00
2023-11-21 09:07:17 +01:00
2023-10-29 21:03:54 -03:00
2023-08-11 20:39:16 +08:00
2023-07-08 13:50:48 +08:00
2023-12-24 16:38:06 -08:00
2023-12-28 11:08:57 +08:00
2023-11-30 06:16:09 -08:00
2023-12-20 07:00:34 -08:00
2023-12-11 08:43:26 -08:00
2023-11-21 09:07:17 +01:00
2023-12-18 20:38:00 -08:00
2023-11-20 13:28:09 +01:00
2023-12-16 05:26:16 -08:00
2023-11-21 20:03:43 -08:00
2023-11-21 09:07:17 +01:00
2023-07-08 13:50:48 +08:00
2023-11-21 09:07:17 +01:00
2023-12-18 09:08:32 -08:00
2024-01-06 04:23:05 -08:00
2023-12-27 10:20:37 -08:00
2023-07-08 13:50:48 +08:00
2023-11-23 06:25:48 -08:00
2023-12-24 16:38:06 -08:00
2023-12-24 16:38:06 -08:00