projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
270fd9b
)
KVM: svm: init cr0 with the wp bit set
author
Avi Kivity
<avi@qumranet.com>
Mon, 19 Feb 2007 12:37:47 +0000
(14:37 +0200)
committer
Avi Kivity
<avi@qumranet.com>
Sun, 4 Mar 2007 09:12:41 +0000
(11:12 +0200)
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/svm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/kvm/svm.c
b/drivers/kvm/svm.c
index 711ea42370a8e0ea1f9e042c97d4bec10aa91436..57aad502e0788f52b83347d481a1fe4e75bc837f 100644
(file)
--- a/
drivers/kvm/svm.c
+++ b/
drivers/kvm/svm.c
@@
-554,7
+554,7
@@
static void init_vmcb(struct vmcb *vmcb)
* cr0 val on cpu init should be 0x60000010, we enable cpu
* 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;
/* rdx = ?? */
}