KVM: nVMX: Do not set identity page map for L2
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 8 Aug 2013 14:26:29 +0000 (16:26 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2013 17:12:14 +0000 (19:12 +0200)
commit59ab5a8f4445699e238c4c46b3da63bb9dc02897
treea10e78b1f68580a1a1745a2966d71058abca5d03
parent9e3e4dbf4469ba19971fbd547f1be713604c7f5e
KVM: nVMX: Do not set identity page map for L2

Fiddling with CR3 for L2 is L1's job. It may set its own, different
identity map or simple leave it alone if unrestricted guest mode is
enabled. This also fixes reading back the current CR3 on L2 exits for
reporting it to L1.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c