Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93885
b: refs/heads/master
c: 6394b64
h: refs/heads/master
i:
  93883: 38f6a28
v: v3
  • Loading branch information
Joerg Roedel authored and Avi Kivity committed Apr 27, 2008
1 parent 5a197fc commit d6a1d4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec077263b2bb841d973d82342b7fbc07bbad4246
refs/heads/master: 6394b6494c0a352a2db3ea3e891ba7aeea7c1441
3 changes: 3 additions & 0 deletions trunk/arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,9 +878,12 @@ static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)

static void svm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4)
{
unsigned long host_cr4_mce = read_cr4() & X86_CR4_MCE;

vcpu->arch.cr4 = cr4;
if (!npt_enabled)
cr4 |= X86_CR4_PAE;
cr4 |= host_cr4_mce;
to_svm(vcpu)->vmcb->save.cr4 = cr4;
}

Expand Down

0 comments on commit d6a1d4e

Please sign in to comment.