drm/vmwgfx: Refuse DMA operation when SEV encryption is active
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 15 Jan 2020 20:48:19 +0000 (21:48 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 12 Mar 2020 11:00:07 +0000 (12:00 +0100)
commit3b0d6458c7052af1795489976b600797ca07f7e9
tree01bcc6780edc6190a9e853b3af4555dcb58e3cd7
parent81a00960d3fa83bbff9939ff52e89f0b74801937
drm/vmwgfx: Refuse DMA operation when SEV encryption is active

TTM doesn't yet fully support mapping of DMA memory when SEV is active,
so in that case, refuse DMA operation. For guest-backed object operation
this means 3D acceleration will be disabled. For host-backed, VRAM will be
used for data transfer between the guest and the device.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c