aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 4e49caf9224..1d93079432b 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -2693,11 +2693,11 @@ static __exit void hardware_unsetup(void)
2693 free_kvm_area(); 2693 free_kvm_area();
2694} 2694}
2695 2695
2696static void fix_pmode_dataseg(int seg, struct kvm_save_segment *save) 2696static void fix_pmode_dataseg(int seg, struct kvm_segment *save)
2697{ 2697{
2698 struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg]; 2698 struct kvm_vmx_segment_field *sf = &kvm_vmx_segment_fields[seg];
2699 2699
2700 if (vmcs_readl(sf->base) == save->base && (save->base & AR_S_MASK)) { 2700 if (vmcs_readl(sf->base) == save->base && (save->ar_bytes & AR_S_MASK)) {
2701 vmcs_write16(sf->selector, save->selector); 2701 vmcs_write16(sf->selector, save->selector);
2702 vmcs_writel(sf->base, save->base); 2702 vmcs_writel(sf->base, save->base);
2703 vmcs_write32(sf->limit, save->limit); 2703 vmcs_write32(sf->limit, save->limit);