>>> On 06.12.16 at 14:46, <paul.durr...@citrix.com> wrote:
> +struct xen_dm_op_inject_trap {
> +    /* IN - index of vCPU */
> +    uint32_t vcpuid;
> +    /* IN - interrupt vector */
> +    uint8_t vector;
> +    /* IN - trap type (DMOP_TRAP_* ) */
> +    uint8_t type;
> +/* NB. This enumeration precisely matches hvm.h:X86_EVENTTYPE_* */
> +# define DMOP_TRAP_ext_int    0 /* external interrupt */
> +# define DMOP_TRAP_nmi        2 /* nmi */
> +# define DMOP_TRAP_hw_exc     3 /* hardware exception */
> +# define DMOP_TRAP_sw_int     4 /* software interrupt (CD nn) */
> +# define DMOP_TRAP_pri_sw_exc 5 /* ICEBP (F1) */
> +# define DMOP_TRAP_sw_exc     6 /* INT3 (CC), INTO (CE) */

XEN_ prefixes missing. (Did I overlook any in earlier patches? Please
double check.)

> +    /* IN - enstruction length */
> +    uint8_t insn_len;
> +    uint8_t pad;
> +    /* IN - error code (or ~0 to skip) */
> +    uint32_t error_code;
> +    /* IN - CR2 for page faults */
> +    uint64_aligned_t cr2;

Another 32-bit padding field is needed ahead of this one.

With both taken care of, hypervisor parts
Reviewed-by: Jan Beulich <jbeul...@suse.com>

Jan


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

Reply via email to