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

Re: [Xen-devel] [PATCH] x86/HVM: tighten re-issue check in hvmemul_do_io()


  • To: 'Jan Beulich' <JBeulich@xxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
  • Date: Mon, 4 Dec 2017 10:36:14 +0000
  • Accept-language: en-GB, en-US
  • Delivery-date: Mon, 04 Dec 2017 10:36:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHTbOpbpaNG9t0uGUee4i2fa5wfAKMy/Tag
  • Thread-topic: [PATCH] x86/HVM: tighten re-issue check in hvmemul_do_io()

> -----Original Message-----
> From: Jan Beulich [mailto:JBeulich@xxxxxxxx]
> Sent: 04 December 2017 10:26
> To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
> Cc: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
> Subject: [PATCH] x86/HVM: tighten re-issue check in hvmemul_do_io()
> 
> I'm not sure why we had left out the address check in case of indirect
> accesses (where "data" holds a guest physical address).

No, I don't know why I overlooked that one.

Reviewed-by: Paul Durrant <paul.durrant@xxxxxxxxxx>

> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> 
> --- a/xen/arch/x86/hvm/emulate.c
> +++ b/xen/arch/x86/hvm/emulate.c
> @@ -163,7 +163,8 @@ static int hvmemul_do_io(
>               (p.count > *reps) ||
>               (p.dir != dir) ||
>               (p.df != df) ||
> -             (p.data_is_ptr != data_is_addr) )
> +             (p.data_is_ptr != data_is_addr) ||
> +             (data_is_addr && (p.data != data)) )
>              domain_crash(currd);
> 
>          if ( data_is_addr )
> 
> 


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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