-
公开(公告)号:US20230195484A1
公开(公告)日:2023-06-22
申请号:US17553607
申请日:2021-12-16
Applicant: VMware, Inc.
Inventor: Andrei WARKENTIN , Ye LI , Alexander FAINKICHEN , Regis DUCHESNE , Cyprien LAPLACE , Shruthi Muralidhara HIRIYURU , Sunil Kumar KOTIAN
IPC: G06F9/455
CPC classification number: G06F9/45558 , G06F2009/45583
Abstract: An example method of managing guest time for a virtual machine (VM) supported by a hypervisor of a virtualized host computer includes: configuring, by the hypervisor, a central processing unit (CPU) of the host computer to trap, to the hypervisor, access by guest code in the VM to a physical counter and timer of the CPU; configuring, by the hypervisor, the guest code in the VM to use the physical counter and timer of the CPU rather than a virtual counter and timer of the CPU; trapping, at the hypervisor, an access to the physical counter and timer by the guest code; and executing, by the hypervisor, the access to the physical counter and timer on behalf of the guest code while compensating for an adjustment of a system count of the physical counter and timer to maintain the guest time as scaled with respect to frequency of the physical counter and timer.
-
公开(公告)号:US20230195487A1
公开(公告)日:2023-06-22
申请号:US17559313
申请日:2021-12-22
Applicant: VMware, Inc.
Inventor: Regis DUCHESNE , Andrei WARKENTIN , Cyprien LAPLACE , Ye LI , Shruthi Muralidhara HIRIYURU , Alexander FAINKICHEN , Sunil Kumar KOTIAN
IPC: G06F9/455
CPC classification number: G06F9/45558 , G06F2009/45583
Abstract: An example method of virtualizing a host virtual counter and timer in a central processing unit (CPU) of a virtualized host computer includes: creating, by a hypervisor of the host computer in response to power on of a virtual machine (VM), a guest virtual counter, the guest virtual counter comprising a data structure including scaling factors; mapping a shared memory page having the data structure into an address space of memory allocated to the VM; and notifying a guest operating system (OS) of the VM of a location in the address space for the shared memory page having the data structure, the guest OS being paravirtualized to scale the host virtual counter and timer based on the scaling factors of the guest virtual counter.
-
公开(公告)号:US20230195470A1
公开(公告)日:2023-06-22
申请号:US17559346
申请日:2021-12-22
Applicant: VMware, Inc.
Inventor: Cyprien LAPLACE , Sunil Kumar KOTIAN , Andrei WARKENTIN , Regis DUCHESNE , Alexander FAINKICHEN , Shruthi Muralidhara HIRIYURU , Ye LI
CPC classification number: G06F9/3861 , G06F9/45558
Abstract: An example method of exception handling in a computer system is described. The computer system includes a physical central processing unit (PCPU) and a system memory, the system memory storing a first stack, a second stack, and a double fault stack associated with the PCPU. The method includes: storing, by an exception handler executing in the computer system, an exception frame on the double fault stack in response to a stack overflow condition of the first stack; switching, by the exception handler, a first stack pointer of the PCPU from pointing to the first stack to pointing to the double fault stack; setting a current stack pointer of the PCPU to the first stack pointer; and executing software on the PCPU with the current stack pointer pointing to the double fault stack.
-
-