Invention Grant
- Patent Title: Supporting invocations of the RDTSC (read time-stamp counter) instruction by guest code within a secure hardware enclave
-
Application No.: US16822054Application Date: 2020-03-18
-
Publication No.: US11507415B2Publication Date: 2022-11-22
- Inventor: Vivek Mohan Thampi , Alok Nemchand Kataria , Martim Carbone , Deep Shah
- Applicant: VMWARE, INC.
- Applicant Address: US CA Palo Alto
- Assignee: VMWARE, INC.
- Current Assignee: VMWARE, INC.
- Current Assignee Address: US CA Palo Alto
- Priority: IN202041001650 20200114
- Main IPC: G06F9/48
- IPC: G06F9/48 ; G06F9/455 ; G06F21/62 ; G06F21/53

Abstract:
Techniques for supporting invocations of the RDTSC (Read Time-Stamp Counter) instruction, or equivalents thereof, by guest program code running within a virtual machine (VM), including guest program code running within a secure hardware enclave of the VM, are provided. In one set of embodiments, a hypervisor can activate time virtualization heuristics for the VM, where the time virtualization heuristics cause accelerated delivery of system clock timer interrupts to a guest operating system (OS) of the VM. The hypervisor can further determine a scaling factor to be applied to timestamps generated by one or more physical CPUs, where the timestamps are generated in response to invocations of a CPU instruction made by guest program code running within the VM, and where the scaling factor is based on the activated time virtualization heuristics. The hypervisor can then program the scaling factor into the one or more physical CPUs.
Public/Granted literature
Information query