VirtualMachineBase¶
-
class
tenjint.plugins.machine.
VirtualMachineBase
[source]¶ Base class for all virtual machines (VMs).
Attributes
Obtain the number of vCPUs that the VM has.
Get the size of the physical memory of the VM.
Methods
Initialize self.
VirtualMachineBase.cpu
(cpu_num)Get a virtual CPU (vCPU).
VirtualMachineBase.load
(**kwargs)Load function
VirtualMachineBase.phys_mem_read
(addr, size)Read from the VM’s physical memory.
VirtualMachineBase.phys_mem_write
(addr, buf)Write to the VM’s physical mamory.
Uninit function
VirtualMachineBase.vtop
(addr[, dtb, cpu_num])Translate a guest virtual address to a guest physical address.