Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54081
b: refs/heads/master
c: fcd3410
h: refs/heads/master
i:
  54079: fac8031
v: v3
  • Loading branch information
Avi Kivity committed May 3, 2007
1 parent ba3680f commit 0157031
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6da63cf95f6a19fe0a302232048452c96b178e45
refs/heads/master: fcd3410870049cb74bb1a3a2458cb3ec21185cd1
2 changes: 0 additions & 2 deletions trunk/drivers/kvm/kvm_svm.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ struct vcpu_svm {
struct svm_cpu_data *svm_data;
uint64_t asid_generation;

unsigned long cr0;
unsigned long cr4;
unsigned long db_regs[NUM_DB_REGS];

u64 next_rip;
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,6 @@ static int svm_create_vcpu(struct kvm_vcpu *vcpu)
vcpu->svm->vmcb = page_address(page);
memset(vcpu->svm->vmcb, 0, PAGE_SIZE);
vcpu->svm->vmcb_pa = page_to_pfn(page) << PAGE_SHIFT;
vcpu->svm->cr0 = 0x00000010;
vcpu->svm->asid_generation = 0;
memset(vcpu->svm->db_regs, 0, sizeof(vcpu->svm->db_regs));
init_vmcb(vcpu->svm->vmcb);
Expand Down Expand Up @@ -736,7 +735,6 @@ static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
}
}
#endif
vcpu->svm->cr0 = cr0;
vcpu->cr0 = cr0;
cr0 |= CR0_PG_MASK | CR0_WP_MASK;
cr0 &= ~(CR0_CD_MASK | CR0_NW_MASK);
Expand Down

0 comments on commit 0157031

Please sign in to comment.