[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 3/4] xen: Add instruction length parameter in hypercall HVMOP_inject_trap
>>> On 30.05.12 at 04:35, Xudong Hao <xudong.hao@xxxxxxxxx> wrote: > Add parameter inslen for hypercall HVMOP_inject_trap, supply interface used > by > passing instruction length from userspace. > > Signed-off-by: Xudong Hao <xudong.hao@xxxxxxxxx> > Signed-off-by: Xiantao Zhang <xiantao.zhang@xxxxxxxxx> > --- > xen/arch/x86/hvm/hvm.c | 1 + > xen/include/public/hvm/hvm_op.h | 2 ++ > 2 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c > index f3c87bc..2921e9e 100644 > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -4290,6 +4290,7 @@ long do_hvm_op(unsigned long op, XEN_GUEST_HANDLE(void) > arg) > else > { > v->arch.hvm_vcpu.inject_trap.vector = tr.trap; > + v->arch.hvm_vcpu.inject_trap.inslen = tr.inslen; > v->arch.hvm_vcpu.inject_trap.error_code = tr.error_code; > v->arch.hvm_vcpu.inject_trap.cr2 = tr.cr2; > } > diff --git a/xen/include/public/hvm/hvm_op.h b/xen/include/public/hvm/hvm_op.h > index 6a78f75..4eccc85 100644 > --- a/xen/include/public/hvm/hvm_op.h > +++ b/xen/include/public/hvm/hvm_op.h > @@ -221,6 +221,8 @@ struct xen_hvm_inject_trap { > uint32_t trap; > /* Error code, or -1 to skip */ > uint32_t error_code; > + /* Intruction length */ > + uint32_t inslen; Just like for the other patch - to me, "insnlen" would seem more appropriate. Jan > /* CR2 for page faults */ > uint64_aligned_t cr2; > }; > -- > 1.5.5 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |