Why does virtualization
negatively affect the hardware performance?
Why does virtualization negatively affect the hardware performance?...
Why does virtualization negatively affect the hardware performance? because the trap-and-emulate approach used by VT hardware generates a lot of traps, and traps are very expensive on modern hardware because they ruin CPU caches, TLBs, and branch prediction tables because the hypervisor turns off interrupts for the guest operating system which affects the entire machine because every occurrence of CLI instruction (clear interrupts) is replaced by "VirtualCPU.IF=0", which is a very cheap instruction because we need to add an extra level of page tables to map "guest physical pages
Why does virtualization negatively affect the hardware performance? because the trap-and-emulate approach used by VT hardware generates a lot of traps, and traps are very expensive on modern hardware because they ruin CPU caches, TLBs, and branch prediction tables because the hypervisor turns off interrupts for the guest operating system which affects the entire machine because every occurrence of CLI instruction (clear interrupts) is replaced by "VirtualCPU.IF=0", which is a very cheap instruction because we need to add an extra level of page tables to map "guest physical pages