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

Re: [Xen-devel] [PATCH v4 18/27] x86/traps: move init_int80_direct_trap to pv/traps.c



On 08/06/17 18:11, Wei Liu wrote:
> Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
> Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
> ---
>  xen/arch/x86/pv/traps.c     | 14 ++++++++++++++
>  xen/arch/x86/x86_64/traps.c | 14 --------------
>  2 files changed, 14 insertions(+), 14 deletions(-)
>
> diff --git a/xen/arch/x86/pv/traps.c b/xen/arch/x86/pv/traps.c
> index 0c1600d886..f2556c7e4a 100644
> --- a/xen/arch/x86/pv/traps.c
> +++ b/xen/arch/x86/pv/traps.c
> @@ -342,6 +342,20 @@ int send_guest_trap(struct domain *d, uint16_t vcpuid, 
> unsigned int trap_nr)
>      return -EIO;
>  }
>  
> +void init_int80_direct_trap(struct vcpu *v)
> +{
> +    struct trap_info *ti = &v->arch.pv_vcpu.trap_ctxt[0x80];
> +    struct trap_bounce *tb = &v->arch.pv_vcpu.int80_bounce;
> +
> +    tb->cs    = ti->cs;
> +    tb->eip   = ti->address;

Mind reducing the spaces here?  Otherwise, Reviewed-by: Andrew Cooper
<andrew.cooper3@xxxxxxxxxx>

_______________________________________________
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®.