aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/kvm/vmx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index 0c082faaa6db..b4c0bdce7b34 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1165,7 +1165,8 @@ static void fix_rmode_seg(int seg, struct kvm_save_segment *save)
1165 save->base = vmcs_readl(sf->base); 1165 save->base = vmcs_readl(sf->base);
1166 save->limit = vmcs_read32(sf->limit); 1166 save->limit = vmcs_read32(sf->limit);
1167 save->ar = vmcs_read32(sf->ar_bytes); 1167 save->ar = vmcs_read32(sf->ar_bytes);
1168 vmcs_write16(sf->selector, vmcs_readl(sf->base) >> 4); 1168 vmcs_write16(sf->selector, save->base >> 4);
1169 vmcs_write32(sf->base, save->base & 0xfffff);
1169 vmcs_write32(sf->limit, 0xffff); 1170 vmcs_write32(sf->limit, 0xffff);
1170 vmcs_write32(sf->ar_bytes, 0xf3); 1171 vmcs_write32(sf->ar_bytes, 0xf3);
1171} 1172}