diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 4811d91759a11d123e30053415c49595b6cdc4f7..fd21eb454663ca75e8f3c1923b5e430d73956379 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -3315,7 +3315,7 @@ static bool rmode_segment_valid(struct kvm_vcpu *vcpu, int seg) if (var.base != (var.selector << 4)) return false; - if (var.limit != 0xffff) + if (var.limit < 0xffff) return false; if ((ar | (3 << AR_DPL_SHIFT)) != 0xf3) return false;