Skip to content

VMware hypercalls enhancements

Alexey Makhalov dri-devel linux-input lkml llvm netdev oe-kbuild-all virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6x86/vmware: Move common macros to vmware.harch/x86/include/asm/vmware.h arch/x86/kernel/cpu/vmware.c+66 -600 replies
1/6x86/vmware: Move common macros to vmware.harch/x86/include/asm/vmware.h arch/x86/kernel/cpu/vmware.c+66 -600 replies
2/6x86/vmware: Introduce vmware_hypercall APIarch/x86/include/asm/vmware.h arch/x86/kernel/cpu/vmware.c+220 -770 replies
2/6x86/vmware: Introduce vmware_hypercall APIarch/x86/include/asm/vmware.h arch/x86/kernel/cpu/vmware.c+220 -770 replies
3/6ptp/vmware: Use vmware_hypercall APIdrivers/ptp/ptp_vmw.c+3 -90 replies
3/6ptp/vmware: Use vmware_hypercall APIdrivers/ptp/ptp_vmw.c+3 -90 replies
4/6input/vmmouse: Use vmware_hypercall APIdrivers/input/mouse/vmmouse.c+22 -544 replies
4/6input/vmmouse: Use vmware_hypercall APIdrivers/input/mouse/vmmouse.c+22 -540 replies
5/6drm/vmwgfx: Use vmware_hypercall APIdrivers/gpu/drm/vmwgfx/vmwgfx_msg.c drivers/gpu/drm/vmwgfx/vmwgfx_msg_arm64.h drivers/gpu/drm/vmwgfx/vmwgfx_msg_x86.h+197 -3580 replies
5/6drm/vmwgfx: Use vmware_hypercall APIdrivers/gpu/drm/vmwgfx/vmwgfx_msg.c drivers/gpu/drm/vmwgfx/vmwgfx_msg_arm64.h drivers/gpu/drm/vmwgfx/vmwgfx_msg_x86.h+197 -3580 replies
6/6x86/vmware: Add TDX hypercall supportarch/x86/include/asm/vmware.h arch/x86/kernel/cpu/vmware.c+81 -00 replies
6/6x86/vmware: Add TDX hypercall supportarch/x86/include/asm/vmware.h arch/x86/kernel/cpu/vmware.c+81 -00 replies

Reviews trailers per patch

2 of 12 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDmitry TorokhovNadav AmitJeff SipekZack Rusin
SeriesA-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b R-b
1/6
1/6
2/6
2/6
3/6
3/6
4/6A-b
4/6A-b
5/6
5/6
6/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/6] VMware hypercalls enhancements

VMware hypercalls invocations were all spread out across the kernel implementing same ABI as in-place asm-inline. With encrypted memory and confidential computing it became harder to maintain every changes in these hypercall implementations.

Intention of this patchset is to introduce arch independent VMware hypercall API layer other subsystems such as device drivers can call to, while hiding architecture specific implementation behind.

Second patch introduces the vmware_hypercall low and high bandwidth families of functions, with little enhancements there. Sixth patch adds tdx hypercall support

arm64 implementation of vmware_hypercalls is in drivers/gpu/drm/ vmwgfx/vmwgfx_msg_arm64.h and going to be moved to arch/arm64 with a separate patchset with the introduction of VMware Linux guest support for arm64.

No functional changes in drivers/input/mouse/vmmouse.c and drivers/ptp/ptp_vmw.c

Alexey Makhalov (6):
x86/vmware: Move common macros to vmware.h
x86/vmware: Introduce vmware_hypercall API
ptp/vmware: Use vmware_hypercall API
input/vmmouse: Use vmware_hypercall API
drm/vmwgfx: Use vmware_hypercall API
x86/vmware: Add TDX hypercall support

 arch/x86/include/asm/vmware.h             | 327 ++++++++++++++++++++--
 arch/x86/kernel/cpu/vmware.c              | 101 ++-----
 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c       | 173 ++++--------
 drivers/gpu/drm/vmwgfx/vmwgfx_msg_arm64.h | 197 +++++++++----
 drivers/gpu/drm/vmwgfx/vmwgfx_msg_x86.h   | 185 ------------
 drivers/input/mouse/vmmouse.c             |  76 ++---
 drivers/ptp/ptp_vmw.c                     |  12 +-
 7 files changed, 551 insertions(+), 520 deletions(-)
Signature · 1 line
2.39.0