Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329879
b: refs/heads/master
c: c865c43
h: refs/heads/master
i:
  329877: f7441c8
  329875: 2e76b38
  329871: 874fec4
v: v3
  • Loading branch information
Avi Kivity authored and Marcelo Tosatti committed Aug 27, 2012
1 parent 10e1fe2 commit 206abe4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: f5f7b2fe3bf849b58c8144729aba78b8e29e1e4c
refs/heads/master: c865c43de66dc973865bda337022f03b6e16c8df
12 changes: 6 additions & 6 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2696,14 +2696,14 @@ static __exit void hardware_unsetup(void)
static void fix_pmode_dataseg(struct kvm_vcpu *vcpu, int seg, struct kvm_segment *save)
{
struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg];
struct kvm_segment tmp = *save;

if (vmcs_readl(sf->base) == save->base && save->s) {
vmx_set_segment(vcpu, save, seg);
} else {
u32 dpl = (vmcs_read16(sf->selector) & SELECTOR_RPL_MASK)
<< AR_DPL_SHIFT;
vmcs_write32(sf->ar_bytes, 0x93 | dpl);
if (!(vmcs_readl(sf->base) == tmp.base && tmp.s)) {
tmp.base = vmcs_readl(sf->base);
tmp.selector = vmcs_read16(sf->selector);
tmp.s = 1;
}
vmx_set_segment(vcpu, &tmp, seg);
}

static void enter_pmode(struct kvm_vcpu *vcpu)
Expand Down

0 comments on commit 206abe4

Please sign in to comment.