virtio-pci library: introduce vp_modern_get_driver_features()
authorJason Wang <jasowang@redhat.com>
Wed, 2 Jun 2021 02:15:34 +0000 (10:15 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 8 Jul 2021 11:49:01 +0000 (07:49 -0400)
commit0140b3d07617e71a8d9509776434ced107572fc8
treeefc7f7241de3ea804dfadc3b19ebb4da9b52b8dd
parent530a5678bc0083e84f99f38f77ced8fbb3d18434
virtio-pci library: introduce vp_modern_get_driver_features()

This patch introduce a helper to get driver/guest features from the
device.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210602021536.39525-3-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eli Cohen <elic@nvidia.com>
drivers/virtio/virtio_pci_modern_dev.c
include/linux/virtio_pci_modern.h