Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd205625 authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: svm: init cr0 with the wp bit set



Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 270fd9b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -554,7 +554,7 @@ static void init_vmcb(struct vmcb *vmcb)
	 * cr0 val on cpu init should be 0x60000010, we enable cpu
	 * cr0 val on cpu init should be 0x60000010, we enable cpu
	 * cache by default. the orderly way is to enable cache in bios.
	 * cache by default. the orderly way is to enable cache in bios.
	 */
	 */
	save->cr0 = 0x00000010 | CR0_PG_MASK;
	save->cr0 = 0x00000010 | CR0_PG_MASK | CR0_WP_MASK;
	save->cr4 = CR4_PAE_MASK;
	save->cr4 = CR4_PAE_MASK;
	/* rdx = ?? */
	/* rdx = ?? */
}
}