Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307905
b: refs/heads/master
c: 512d564
h: refs/heads/master
i:
  307903: f566fa0
v: v3
  • Loading branch information
Avi Kivity authored and Marcelo Tosatti committed May 16, 2012
1 parent 9cd5d31 commit 410f6ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: d54e4237bcbb400fda11c902fd538aa0b4805720
refs/heads/master: 512d5649e8dc3ed36f2ebf0818da64a4d4c2544a
6 changes: 5 additions & 1 deletion trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -6102,7 +6102,10 @@ static void atomic_switch_perf_msrs(struct vcpu_vmx *vmx)
static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
{
struct vcpu_vmx *vmx = to_vmx(vcpu);
u16 _ds, _es;

savesegment(ds, _ds);
savesegment(es, _es);
if (is_guest_mode(vcpu) && !vmx->nested.nested_run_pending) {
struct vmcs12 *vmcs12 = get_vmcs12(vcpu);
if (vmcs12->idt_vectoring_info_field &
Expand Down Expand Up @@ -6263,7 +6266,8 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
}
}

asm("mov %0, %%ds; mov %0, %%es" : : "r"(__USER_DS));
loadsegment(ds, _ds);
loadsegment(es, _es);
vmx->loaded_vmcs->launched = 1;

vmx->exit_reason = vmcs_read32(VM_EXIT_REASON);
Expand Down

0 comments on commit 410f6ac

Please sign in to comment.