Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115279
b: refs/heads/master
c: 5706be0
h: refs/heads/master
i:
  115277: 88bb9b8
  115275: ead3c96
  115271: ec2f524
  115263: 34a9d92
v: v3
  • Loading branch information
Avi Kivity committed Oct 15, 2008
1 parent 1ca9b54 commit c6f8048
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 26815a648e1ec2b338a63a2bc301dcf449b93e5a
refs/heads/master: 5706be0dafd6f42852f85fbae292301dcad4ccec
3 changes: 1 addition & 2 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2239,6 +2239,7 @@ static int vmx_vcpu_reset(struct kvm_vcpu *vcpu)

fx_init(&vmx->vcpu);

seg_setup(VCPU_SREG_CS);
/*
* GUEST_CS_BASE should really be 0xffff0000, but VT vm86 mode
* insists on having GUEST_CS_BASE == GUEST_CS_SELECTOR << 4. Sigh.
Expand All @@ -2250,8 +2251,6 @@ static int vmx_vcpu_reset(struct kvm_vcpu *vcpu)
vmcs_write16(GUEST_CS_SELECTOR, vmx->vcpu.arch.sipi_vector << 8);
vmcs_writel(GUEST_CS_BASE, vmx->vcpu.arch.sipi_vector << 12);
}
vmcs_write32(GUEST_CS_LIMIT, 0xffff);
vmcs_write32(GUEST_CS_AR_BYTES, 0x9b);

seg_setup(VCPU_SREG_DS);
seg_setup(VCPU_SREG_ES);
Expand Down

0 comments on commit c6f8048

Please sign in to comment.