]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: Read PDPTEs on CR0.CD and CR0.NW changes
authorJim Mattson <jmattson@google.com>
Tue, 7 Jul 2020 22:36:30 +0000 (15:36 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2020 20:21:58 +0000 (16:21 -0400)
commitc8b2ea926f310cc3ab25a1d85d5b5c8143394adc
tree4570c63b593111376cbb3ea9e7e2b0cd48521c9f
parentac7f4107a2d6e4e1a5691ed233df6e9238249a6c
kvm: x86: Read PDPTEs on CR0.CD and CR0.NW changes

According to the SDM, when PAE paging would be in use following a
MOV-to-CR0 that modifies any of CR0.CD, CR0.NW, or CR0.PG, then the
PDPTEs are loaded from the address in CR3. Previously, kvm only loaded
the PDPTEs when PAE paging would be in use following a MOV-to-CR0 that
modified CR0.PG.

Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Oliver Upton <oupton@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Message-Id: <20200707223630.336700-1-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c