Pull virtio fixes from Michael Tsirkin: "Bugfixes all over the place" * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: vhost-vdpa: fix use after free in vhost_vdpa_probe() virtio_pci: Switch away from deprecated irq_set_affinity_hint riscv, qemu_fw_cfg: Add support for RISC-V architecture vdpa_sim_blk: allocate the buffer zeroed virtio_pci: move structure to a header
Showing the changes to include/uapi/linux (1 of 8 files). Show all
Unified · Split
| @@ -166,6 +166,17 @@ struct virtio_pci_common_cfg { · 165 unmodified lines | ||
| 166 | 166 | __le32 queue_used_hi; /* read-write */ |
| 167 | 167 | }; |
| 168 | 168 | |
| 169 | +/* | |
| 170 | + * Warning: do not use sizeof on this: use offsetofend for | |
| 171 | + * specific fields you need. | |
| 172 | + */ | |
| 173 | +struct virtio_pci_modern_common_cfg { | |
| 174 | + struct virtio_pci_common_cfg cfg; | |
| 175 | + | |
| 176 | + __le16 queue_notify_data; /* read-write */ | |
| 177 | + __le16 queue_reset; /* read-write */ | |
| 178 | +}; | |
| 179 | + | |
| 169 | 180 | /* Fields in VIRTIO_PCI_CAP_PCI_CFG: */ |
| 170 | 181 | struct virtio_pci_cfg_cap { |
| 171 | 182 | struct virtio_pci_cap cap; |