mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
drm/virtio: implement context init: track valid capabilities in a mask
The valid capability IDs are between 1 to 63, and defined in the virtio gpu spec. This is used for error checking the subsequent patches. We're currently only using 2 capability IDs, so this should be plenty for the immediate future. Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org> Acked-by: Lingfeng Yang <lfy@google.com> Link: http://patchwork.freedesktop.org/patch/msgid/20210921232024.817-4-gurchetansingh@chromium.org Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
committed by
Gerd Hoffmann
parent
b10790434c
commit
1925d6a7e0
@@ -55,6 +55,8 @@
|
||||
#define STATE_OK 1
|
||||
#define STATE_ERR 2
|
||||
|
||||
#define MAX_CAPSET_ID 63
|
||||
|
||||
struct virtio_gpu_object_params {
|
||||
unsigned long size;
|
||||
bool dumb;
|
||||
@@ -245,6 +247,7 @@ struct virtio_gpu_device {
|
||||
|
||||
struct virtio_gpu_drv_capset *capsets;
|
||||
uint32_t num_capsets;
|
||||
uint64_t capset_id_mask;
|
||||
struct list_head cap_cache;
|
||||
|
||||
/* protects uuid state when exporting */
|
||||
|
||||
Reference in New Issue
Block a user