mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
VMware mks-guest-stats mechanism allows the collection of performance stats from
guest userland GL contexts, as well as from vmwgfx kernelspace, via a set of sw-
defined performance counters. The userspace performance counters are (de)registerd
with vmware-vmx-stats hypervisor via new iocts. The vmwgfx kernelspace counters
are controlled at build-time via a new config DRM_VMWGFX_MKSSTATS.
* Add vmw_mksstat_{add|remove|reset}_ioctl controlling the tracking of
mks-guest-stats in guest winsys contexts
* Add DRM_VMWGFX_MKSSTATS config to drivers/gpu/drm/vmwgfx/Kconfig controlling
the instrumentation of vmwgfx for kernelspace mks-guest-stats counters
* Instrument vmwgfx vmw_execbuf_ioctl to collect mks-guest-stats according to
DRM_VMWGFX_MKSSTATS
Signed-off-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
Signed-off-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210609172307.131929-3-zackr@vmware.com
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
config DRM_VMWGFX
|
|
tristate "DRM driver for VMware Virtual GPU"
|
|
depends on DRM && PCI && MMU
|
|
depends on X86 || ARM64
|
|
select DRM_TTM
|
|
select MAPPING_DIRTY_HELPERS
|
|
# Only needed for the transitional use of drm_crtc_init - can be removed
|
|
# again once vmwgfx sets up the primary plane itself.
|
|
select DRM_KMS_HELPER
|
|
help
|
|
Choose this option if you would like to run 3D acceleration
|
|
in a VMware virtual machine.
|
|
This is a KMS enabled DRM driver for the VMware SVGA2
|
|
virtual hardware.
|
|
The compiled module will be called "vmwgfx.ko".
|
|
|
|
config DRM_VMWGFX_FBCON
|
|
depends on DRM_VMWGFX && DRM_FBDEV_EMULATION
|
|
bool "Enable framebuffer console under vmwgfx by default"
|
|
help
|
|
Choose this option if you are shipping a new vmwgfx
|
|
userspace driver that supports using the kernel driver.
|
|
|
|
config DRM_VMWGFX_MKSSTATS
|
|
bool "Enable mksGuestStats instrumentation of vmwgfx by default"
|
|
depends on DRM_VMWGFX
|
|
default n
|
|
help
|
|
Choose this option to instrument the kernel driver for mksGuestStats.
|
|
|