diff options
author | Avi Kivity <avi@qumranet.com> | 2007-02-19 13:37:47 +0100 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-03-04 10:12:41 +0100 |
commit | cd205625e9bf2090d9bd95848ef4b34ad3f1a8b3 (patch) | |
tree | f558928ccdb1a78ac5d509e1dff8756de8836718 /drivers/kvm/svm.c | |
parent | KVM: Wire up hypercall handlers to a central arch-independent location (diff) | |
download | linux-cd205625e9bf2090d9bd95848ef4b34ad3f1a8b3.tar.xz linux-cd205625e9bf2090d9bd95848ef4b34ad3f1a8b3.zip |
KVM: svm: init cr0 with the wp bit set
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 711ea42370a8..57aad502e078 100644 --- 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 = ?? */ } |