Virtual machine control method and program thereof
First Claim
1. A control method for a virtual machine provided by switching and executing multiple programs jointly shared between at least one CPU and memory, the method comprising:
- a process for setting a first memory protection table for defining a memory area accessible by a first program executed on the CPU, a process for setting a second memory protection table for defining a memory area accessible by a second program executed on the CPU, a process for detecting the start of execution of the first or the second program, a process for selecting and switching to either of a first or the second memory protection table according to the detected first or the second program, and a process for checking the first or the second memory protection table with the memory management unit for the CPU, and protecting the memory area defined in the first or the second memory protection table.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed is a virtual machine control method for switching and executing multiple programs jointly shared between at least one CPU and memory. The method is comprised of a process for setting a first memory protection table for defining a memory area accessible by a first program executed on the CPU, a process for setting a second memory protection table for defining a memory area accessible by a second program executed on the CPU, a process for detecting the start of execution of the first or the second program, a process for selecting and switching to either of a first or the second memory protection table according to the detected first or the second program, and a process for checking the first or the second memory protection table with the memory management unit for the CPU, and protecting the memory area defined in the first or the second memory protection table.
-
Citations
12 Claims
-
1. A control method for a virtual machine provided by switching and executing multiple programs jointly shared between at least one CPU and memory, the method comprising:
-
a process for setting a first memory protection table for defining a memory area accessible by a first program executed on the CPU, a process for setting a second memory protection table for defining a memory area accessible by a second program executed on the CPU, a process for detecting the start of execution of the first or the second program, a process for selecting and switching to either of a first or the second memory protection table according to the detected first or the second program, and a process for checking the first or the second memory protection table with the memory management unit for the CPU, and protecting the memory area defined in the first or the second memory protection table. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A program of instructions executable by a physical computer to perform a function for providing virtual machine by switching multiple programs jointly using at least one CPU and memory on the physical computer, the function comprising:
-
a procedure for setting a first memory protection table for defining a memory area accessible by a first program executed by the CPU, a procedure for setting a second memory protection table for defining a memory area accessible by a second program executed by the CPU, a procedure for detecting the start of the first or the second program execution, a procedure for selecting and switching either the first or the second memory protection table according the detected first or the second program, and a procedure for checking the selected first or the second memory protection table in the memory management unit of the CPU, and protecting the memory area defined in the selected first or the second memory protection table. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A virtual machine system including a virtual machine monitor to provide a virtual machine, by switching multiple programs jointly using at least one CPU and memory on a physical computer containing a CPU and memory, the system comprising:
-
the virtual machine that contains a first program, and a second program;
the virtual machine monitor that includes;
a memory protection table setting unit for setting a first memory protection table for defining the memory area accessible by a virtual machine monitor and a memory area accessible by a first program forming the virtual machine and, a second memory protection table for defining the memory area accessible by the virtual machine monitor and a memory area accessible by a second program, an execution start detector unit for detecting the start of the first or the second program execution, and a memory protection table switching unit for selecting and switching either of the first or the second memory protection tables corresponding to the detected first or the second program, and a memory protection command unit for commanding the selected first or the second memory protection table in the CPU; and
the CPU that includes a memory management unit for protecting the memory area defined in the commanded first or the second memory protection tables.
-
-
12. A virtual machine system including a virtual machine monitor to provide a virtual machine, by switching multiple programs jointly using at least one CPU and memory on a physical computer containing a CPU and memory, comprising:
-
the virtual machine that contains a guest program;
the virtual machine monitor that includes;
a memory protection table setting unit for setting a first memory protection table for defining the memory area accessible by a guest program, and a second memory protection table for defining a memory area accessible by the virtual machine monitor, an execution start detector unit for detecting the start of the guest program or the virtual machine monitor execution, a memory protection table switching unit for selecting and switching either of the first or the second memory protection tables corresponding to the detected guest program or the virtual machine monitor, and a memory protection command unit for commanding the selected first or the second memory protection table in the CPU; and
CPU that includes a memory management unit for protecting the memory area defined in the commanded first or the second memory protection tables, and a switching device for switching the guest program operating on the virtual machine and the virtual machine monitor, based on the start or the termination of the guest program execution.
-
Specification