[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] x86/HVM: don't leak PFEC_implict to guests



> --- a/xen/arch/x86/hvm/svm/svm.c
> +++ b/xen/arch/x86/hvm/svm/svm.c
> @@ -269,13 +269,23 @@ static int svm_vmcb_restore(struct vcpu
>      struct vmcb_struct *vmcb = v->arch.hvm_svm.vmcb;
>      struct p2m_domain *p2m = p2m_get_hostp2m(v->domain);
>  
> -    if ( c->pending_valid &&
> -         ((c->pending_type == 1) || (c->pending_type > 6) ||
> -          (c->pending_reserved != 0)) )
> +    if ( c->pending_valid )
>      {
> -        gdprintk(XENLOG_ERR, "Invalid pending event %#"PRIx32".\n",
> -                 c->pending_event);
> -        return -EINVAL;
> +       if ( (c->pending_type == 1) || (c->pending_type > 6) ||

Shouldn't this be >=5? The only valid types are 0, 2, 3 and 4.

-boris


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.