VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/nestedpaging.dita@ 99497

Last change on this file since 99497 was 99497, checked in by vboxsync, 2 years ago

manual: Split out the topics of converted manpages into separate files and generate ditamap files for each manpage to avoid needing to hardcode anything in UserManual.xml. This means that the topics inside a manpage can be supressed from the toc, but otoh, they get numbered (with 4.x). The per-topic files are named by refentry/refsect1/refsect2 @id and are currently not cleaned up by 'kmk clean'. bugref:10302

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
3<topic xml:lang="en-us" id="nestedpaging">
4 <title>Nested Paging and VPIDs</title>
5
6 <body>
7 <p>
8 In addition to normal hardware virtualization, your processor may
9 also support the following additional sophisticated techniques:
10 </p>
11 <ul>
12 <li>
13 <p>
14 Nested paging implements some memory management in hardware,
15 which can greatly accelerate hardware virtualization since
16 these tasks no longer need to be performed by the
17 virtualization software.
18 </p>
19 <p>
20 With nested paging, the hardware provides another level of
21 indirection when translating linear to physical addresses.
22 Page tables function as before, but linear addresses are now
23 translated to "guest physical" addresses first and not
24 physical addresses directly. A new set of paging registers now
25 exists under the traditional paging mechanism and translates
26 from guest physical addresses to host physical addresses,
27 which are used to access memory.
28 </p>
29 <p>
30 Nested paging eliminates the overhead caused by VM exits and
31 page table accesses. In essence, with nested page tables the
32 guest can handle paging without intervention from the
33 hypervisor. Nested paging thus significantly improves
34 virtualization performance.
35 </p>
36 <p>
37 On AMD processors, nested paging has been available starting
38 with the Barcelona (K10) architecture. They now call it rapid
39 virtualization indexing (RVI). Intel added support for nested
40 paging, which they call extended page tables (EPT), with their
41 Core i7 (Nehalem) processors.
42 </p>
43 <p>
44 If nested paging is enabled, the Oracle VM VirtualBox hypervisor can
45 also use <i>large pages</i> to reduce TLB usage
46 and overhead. This can yield a performance improvement of up
47 to 5%. To enable this feature for a VM, you use the
48 <userinput>VBoxManage modifyvm --large-pages</userinput> command.
49 See <xref href="vboxmanage-modifyvm.dita">VBoxManage modifyvm</xref>.
50 </p>
51 <p>
52 If you have an Intel CPU with EPT, please consult
53 <xref href="sec-rec-cve-2018-3646.dita#sec-rec-cve-2018-3646"/> for security concerns
54 regarding EPT.
55 </p>
56 </li>
57 <li>
58 <p>
59 On Intel CPUs, a hardware feature called Virtual Processor
60 Identifiers (VPIDs) can greatly accelerate context switching
61 by reducing the need for expensive flushing of the processor's
62 Translation Lookaside Buffers (TLBs).
63 </p>
64 <p>
65 To enable these features for a VM, you use the
66 <userinput>VBoxManage modifyvm --vtx-vpid</userinput> and
67 <userinput>VBoxManage modifyvm --large-pages</userinput> commands.
68 See <xref href="vboxmanage-modifyvm.dita">VBoxManage modifyvm</xref>.
69 </p>
70 </li>
71 </ul>
72 </body>
73
74</topic>
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette