Introduction to Virtual Device Drivers



Download 274.5 Kb.
Page5/80
Date19.01.2022
Size274.5 Kb.
#58083
1   2   3   4   5   6   7   8   9   ...   80
VXDS

Virtual Machines


A virtual machine is an executable task consisting of an application, supporting software (such as ROM BIOS and MS-DOS), memory, and CPU registers. The VMM can create multiple virtual machines. The first virtual machine created, called the system virtual machine, contains 16-bit Windows-based applications, Win32 applications and threads created by Win32 applications. Other virtual machines are created for MS-DOS-based applications as they are started.

MS-DOS-based applications in a virtual machine run in virtual 8086 mode (also called V86 mode). In V86 mode, applications run as if they were running on an Intel 8086, or compatible microprocessor. V86 mode provides the registers, instructions, and 1-megabyte address space that real-mode applications are designed to use. This means an MS-DOS-based application in a virtual machine will run successfully without modification. V86 mode also permits execution of protected-mode applications in a virtual machine.

Each virtual machine has its own address space, I/O port space, and interrupt-vector table. The VMM also maps ROM BIOS, MS-DOS, device drivers, and TSRs to the address space of the virtual machine so that the application has access to MS-DOS system functions and ROM BIOS routines. Virtual machines with protected-mode applications also have their own local descriptor table (LDT).

Virtual machines provide memory protection, virtual memory, and privilege checking. If an application in a virtual machine reads or writes memory addresses that have not been mapped into its virtual machine or manipulates I/O ports to which it has not been allowed access, an exception (fault) is generated, and the VMM regains control. The VMM and virtual devices can then provide the requested memory, carry out the intended I/O operation, or terminate the application. In a virtual machine, V86-mode applications run at privilege level 3; protected-mode applications run at privilege level 1, 2, or 3.



Download 274.5 Kb.

Share with your friends:
1   2   3   4   5   6   7   8   9   ...   80




The database is protected by copyright ©ininet.org 2024
send message

    Main page