]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/kvm/emulate.c
KVM: x86: MOV to CR3 can set bit 63
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kvm / emulate.c
index a2a9c18b42e40bd05b28ebaf6b024974a40dc9a8..9f960b428bb254cd351e110e194eaa5e15c05010 100644 (file)
@@ -3564,7 +3564,7 @@ static int check_cr_write(struct x86_emulate_ctxt *ctxt)
 
                ctxt->ops->get_msr(ctxt, MSR_EFER, &efer);
                if (efer & EFER_LMA)
-                       rsvd = CR3_L_MODE_RESERVED_BITS;
+                       rsvd = CR3_L_MODE_RESERVED_BITS & ~CR3_PCID_INVD;
 
                if (new_val & rsvd)
                        return emulate_gp(ctxt, 0);