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

Re: [Xen-devel] [PATCH 5/5] hvm_complete_assist_req: Tell caller we failed to send



> -----Original Message-----
> From: Don Slutz [mailto:dslutz@xxxxxxxxxxx]
> Sent: 30 January 2015 00:53
> To: xen-devel@xxxxxxxxxxxxx
> Cc: Andrew Cooper; George Dunlap; Ian Campbell; Ian Jackson; Jan Beulich;
> Keir (Xen.org); Stefano Stabellini; Wei Liu; Paul Durrant; Don Slutz
> Subject: [PATCH 5/5] hvm_complete_assist_req: Tell caller we failed to send
> 
> This saves a VMENTRY and a VMEXIT since we not longer retry the
> ioport read.
> 
> hvmemul_do_io() will retry in order to complete an ioport read when
> hvm_send_assist_req() is successful.
> 
> Signed-off-by: Don Slutz <dslutz@xxxxxxxxxxx>

It seems like this change should be folded into patch 3? I think the two 
changes only make sense in combination.

  Paul

> ---
>  xen/arch/x86/hvm/hvm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c
> index 6f7b407..bad410e 100644
> --- a/xen/arch/x86/hvm/hvm.c
> +++ b/xen/arch/x86/hvm/hvm.c
> @@ -2599,7 +2599,7 @@ static bool_t hvm_complete_assist_req(ioreq_t *p)
>          break;
>      }
> 
> -    return 1;
> +    return 0; /* implicitly bins the i/o operation */
>  }
> 
>  bool_t hvm_send_assist_req(ioreq_t *p)
> --
> 1.8.4


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


 


Rackspace

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