virtio-gpu.c (aeb72188e073d515e1f5a80f6b603692a396477b) | virtio-gpu.c (9d5b731dd2d64deb3bc798ef4e3c08603d54ae02) |
---|---|
1/* 2 * Virtio GPU Device 3 * 4 * Copyright Red Hat, Inc. 2013-2014 5 * 6 * Authors: 7 * Dave Airlie <airlied@redhat.com> 8 * Gerd Hoffmann <kraxel@redhat.com> --- 75 unchanged lines hidden (view full) --- 84 85 memcpy(&vgconfig, config, sizeof(g->virtio_config)); 86 87 if (vgconfig.events_clear) { 88 g->virtio_config.events_read &= ~vgconfig.events_clear; 89 } 90} 91 | 1/* 2 * Virtio GPU Device 3 * 4 * Copyright Red Hat, Inc. 2013-2014 5 * 6 * Authors: 7 * Dave Airlie <airlied@redhat.com> 8 * Gerd Hoffmann <kraxel@redhat.com> --- 75 unchanged lines hidden (view full) --- 84 85 memcpy(&vgconfig, config, sizeof(g->virtio_config)); 86 87 if (vgconfig.events_clear) { 88 g->virtio_config.events_read &= ~vgconfig.events_clear; 89 } 90} 91 |
92static uint64_t virtio_gpu_get_features(VirtIODevice *vdev, uint64_t features) | 92static uint64_t virtio_gpu_get_features(VirtIODevice *vdev, uint64_t features, 93 Error **errp) |
93{ 94 return features; 95} 96 97static void virtio_gpu_notify_event(VirtIOGPU *g, uint32_t event_type) 98{ 99 g->virtio_config.events_read |= event_type; 100 virtio_notify_config(&g->parent_obj); --- 818 unchanged lines hidden --- | 94{ 95 return features; 96} 97 98static void virtio_gpu_notify_event(VirtIOGPU *g, uint32_t event_type) 99{ 100 g->virtio_config.events_read |= event_type; 101 virtio_notify_config(&g->parent_obj); --- 818 unchanged lines hidden --- |