From: Jack Lange Date: Thu, 27 Aug 2009 23:31:36 +0000 (-0500) Subject: added write protect flag to realmode CR0, to enable memory hooks X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=23bb96e0a0572322649a4a7d74c52b248064b2ba;p=palacios.git added write protect flag to realmode CR0, to enable memory hooks --- diff --git a/palacios/src/palacios/svm.c b/palacios/src/palacios/svm.c index 37f509c..490e342 100644 --- a/palacios/src/palacios/svm.c +++ b/palacios/src/palacios/svm.c @@ -124,7 +124,8 @@ static void Init_VMCB_BIOS(vmcb_t * vmcb, struct guest_info *vm_info) { vm_info->vm_regs.rdx = 0x00000f00; - guest_state->cr0 = 0x60000010; + + guest_state->cr0 = 0x60010010; // Set the WP flag so the memory hooks work in real-mode guest_state->cs.selector = 0xf000;