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

Re: [Xen-devel] [RFC PATCH 9/16]: PVH xen: create PVH vmcs and initialization



>>> On 12.01.13 at 02:59, Mukesh Rathor <mukesh.rathor@xxxxxxxxxx> wrote:
> --- a/xen/arch/x86/hvm/hvm.c  Fri Jan 11 16:31:33 2013 -0800
> +++ b/xen/arch/x86/hvm/hvm.c  Fri Jan 11 16:32:36 2013 -0800
> @@ -331,6 +331,9 @@ void hvm_do_resume(struct vcpu *v)
>  {
>      ioreq_t *p;
>  
> +    if ( is_pvh_vcpu(v) )
> +        return;

Better avoid the call at the call site?

> @@ -697,6 +697,246 @@ void vmx_vmcs_switch(struct vmcs_struct 
>      spin_unlock(&vmx->vmcs_lock);
>  }
>  
> +static noinline int pvh_construct_vmcs(struct vcpu *v)
> +{

This looks a lot like the "normal" HVM function - can't those be
folded reasonably, to reduce redundancy?

> @@ -1156,6 +1404,9 @@ void vmx_do_resume(struct vcpu *v)
>          hvm_asid_flush_vcpu(v);
>      }
>  
> +    if ( is_pvh_vcpu(v) )
> +        goto skip_inteLdbgr;   /* PVH supports gdbsx and gdb inside PVH */

What do "inte", "L", and "dbgr" stand for here? Also, to me the
comment doesn't really explain anything.

Jan


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