]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-pci: split out modern device
authorJason Wang <jasowang@redhat.com>
Mon, 4 Jan 2021 06:54:46 +0000 (14:54 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 23 Feb 2021 12:52:57 +0000 (07:52 -0500)
commit84b5bf801e564fc01288bae838b2f71d43f4e8b6
tree985972045637afc26959be0cb2dda60217a52905
parent4d60dc379b489ad2546958543c9d107a50b8b42f
virtio-pci: split out modern device

This patch splits out the virtio-pci modern device only attributes
into another structure. While at it, a dedicated probe method for
modern only attributes is introduced. This may help for split the
logic into a dedicated module.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210104065503.199631-3-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_common.h
drivers/virtio/virtio_pci_modern.c