On 30/08/18 12:09, Jan Beulich wrote: > @@ -3758,8 +3749,9 @@ void hvm_ud_intercept(struct cpu_user_re > if ( hvm_virtual_to_linear_addr(x86_seg_cs, cs, regs->rip, > sizeof(sig), hvm_access_insn_fetch, > cs, &addr) && > - (hvm_fetch_from_guest_linear(sig, addr, sizeof(sig), > - walk, NULL) == HVMTRANS_okay) && > + (hvm_copy_from_guest_linear(sig, addr, sizeof(sig), > + walk | PFEC_insn_fetch, NULL, > + NULL) == HVMTRANS_okay) &&
This would be more simple by folding PFEC_insn_fetch into the initialisation of walk, as this whole expression is just an instruction fetch. ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel