]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio: Manage device and driver capabilities via the admin commands
authorYishai Hadas <yishaih@nvidia.com>
Wed, 13 Nov 2024 11:51:56 +0000 (13:51 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 13 Nov 2024 22:25:41 +0000 (15:25 -0700)
commitbfcad518605d927eff17ffb8ce0a828d7b7ac79f
treefacfd68aa9222df5b4ba56cd5f546ff6af28b494
parent704806ca400e5daa86c110f14bfdda9d28203bb7
virtio: Manage device and driver capabilities via the admin commands

Manage device and driver capabilities via the admin commands.

The device exposes its supported features and resource object limits via
an administrative command called VIRTIO_ADMIN_CMD_CAP_ID_LIST_QUERY,
using the 'self group type.'

Each capability is identified by a unique ID, and the driver
communicates the functionality and resource limits it plans to utilize.

The capability VIRTIO_DEV_PARTS_CAP specifically represents the device's
parts resource object limit.

Manage the device's parts resource object ID using a common IDA for both
get and set operations.

Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20241113115200.209269-4-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/virtio/virtio_pci_common.h
drivers/virtio/virtio_pci_modern.c