What is the memory virtualization? Explain in detail. [25 pts]
virtual memory virtualization is similar to the virtual memory support provided by modern operating systems. In a traditional execution environment, the operating system maintains mappings of virtual memory to machine memory using page tables, which is a one-stage mapping from virtual memory to machine memory. All modern x86 CPUs include a memory management unit (MMU) and a translation lookaside buffer (TLB) to optimize virtual memory performance. However, in a virtual execution environment, virtual memory virtualization involves sharing the physical system memory in RAM and dynamically allocating it to the physical memory of the VMs.
That means a two-stage mapping process should be maintained by the guest OS and the VMM, respectively: virtual memory to physical memory and physical memory to machine memory. Furthermore, MMU virtualization should be supported, which is transparent to the guest OS. The guest OS continues to control the mapping of virtual addresses to the physical memory addresses of VMs. But the guest OS cannot directly access the actual machine memory. The VMM is responsible for mapping the guest physical memory to the actual machine memory. Figure 3.12 shows the two-level memory mapping procedure.
Since each page table of the guest OSes has a separate page table in the VMM corresponding to it, the VMM page table is called the shadow page table. Nested page tables add another layer of indirection to virtual memory. The MMU already handles virtual-to-physical translations as defined by the OS. Then the physical memory addresses are translated to machine addresses using another set of page tables defined by the hypervisor. Since modern operating systems maintain a set of page tables for every process, the shadow page tables will get flooded. Consequently, the perfor-mance overhead and cost of memory will be very high.
VMware uses shadow page tables to perform virtual-memory-to-machine-memory address translation. Processors use TLB hardware to map the virtual memory directly to the machine memory to avoid the two levels of translation on every access. When the guest OS changes the virtual memory to a physical memory mapping, the VMM updates the shadow page tables to enable a direct lookup. The AMD Barcelona processor has featured hardware-assisted memory virtualization since 2007. It provides hardware assistance to the two-stage address translation in a virtual execution environment by using a technology called nested paging.
Example 3.6 Extended Page Table by Intel for Memory Virtualization
Since the efficiency of the software shadow page table technique was too low, Intel developed a hardware-based EPT technique to improve it, as illustrated in Figure 3.13. In addition, Intel offers a Virtual Processor ID (VPID) to improve use of the TLB. Therefore, the performance of memory virtualization is greatly improved. In Figure 3.13, the page tables of the guest OS and EPT are all four-level.
When a virtual address needs to be translated, the CPU will first look for the L4 page table pointed to by Guest CR3. Since the address in Guest CR3 is a physical address in the guest OS, the CPU needs to convert the Guest CR3 GPA to the host physical address (HPA) using EPT. In this procedure, the CPU will check the EPT TLB to see if the translation is there. If there is no required translation in the EPT TLB, the CPU will look for it in the EPT. If the CPU cannot find the translation in the EPT, an EPT violation exception will be raised.
When the GPA of the L4 page table is obtained, the CPU will calculate the GPA of the L3 page table by using the GVA and the content of the L4 page table. If the entry corresponding to the GVA in the L4
page table is a page fault, the CPU will generate a page fault interrupt and will let the guest OS kernel handle the interrupt. When the PGA of the L3 page table is obtained, the CPU will look for the EPT to get the HPA of the L3 page table, as described earlier. To get the HPA corresponding to a GVA, the CPU needs to look for the EPT five times, and each time, the memory needs to be accessed four times. There-fore, there are 20 memory accesses in the worst case, which is still very slow. To overcome this short-coming, Intel increased the size of the EPT TLB to decrease the number of memory accesses.
what virtualization means, especially desktop virtualization, and what business benefits it gives a company?
In detail and show and explain all steps Digital Electronics Consider a SRAM memory with a storage capacity of 212 32-bit words. Determine the number of words per row such that the overall memory can be physically layed out in a square assuming a SRAM memory cell is layed out in an area of 2 um by 4 um. Identify the number of inputs/outputs for the row and column decoders.
1.a) When executed with a VM on a modern hypervisor providing full hardware virtualization, what happens when a guest OS executes a privileged instruction of this sort? Explain your answer? b) Describe the difference of full virtualization and para-virtualization, and their advantages. 1. When executed with a VM on a modern hypervisor providing full hardware virtualization, what happens when a guest OS executes a privileged instruction of this sort? Explain your answer? (5 Points) Describe the difference of full virtualization...
List some of the myths of data virtualization and explain why they are not necessarily true.
What type of virtualization does Windows Server offer? How does it compare to VMWare? What are some advantages of Windows Server Virtualization?
In your own words, identify at least three benefits of virtualization and explain how these benefits can be applied to databases and database systems. 200 words or more please and DO NOT COPY & PASTE
What is the main difference between emulation and virtualization? Which one is slower?
What is the virtualization approaches ?? And if any one have websit or anything on youtube please post it here
what's the difference between data memory and instruction memory, and explain what fraction-fraction can use it ?
15/25 pts Question 5 Please choose the most appropriate description of memory theory. Sensory Register, Short-Term Memory and Long-Term Memory. Types of Rehearsal The serial-position effect. The first item on a list is most memorable, the last item on the list is the second most memorable and the items in the middle are the least memorable. Spaced and Massed study. Type of Practice Elaborative and rote (also called maintenance) study, Information Processing Crucial role in memory formation The hippocampus