|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 8/9] xen/arm: Implement hypercall for dirty page tracing
07.10.2013 17:02, Julien Grall: Yes, but I think at page fault condition we should check whether address
belong MMIO regions (page fault at MMIO addr is possible, but we don't
need that memory to transfer)
Let me explain. I think the difference between handle_page_fault and handle_mmio is that the ongoing memory operation (that trapped here) should be repeated after handle_page_fault (the page fault handler clears read-only bit), but should be stepped out after handle_mmio (to do this we call advance_pc to increase the pc register). So, advance_pc is intentionally missed.> goto bad_data_abort;> > rc = gva_to_ipa(info.gva, &info.gpa);>- if ( rc == -EFAULT ) >+ if ( rc == -EFAULT && !page_fault ) > goto bad_data_abort;> > /* XXX: Decode the instruction if ISS is not valid */>- if ( !dabt.valid ) >+ if ( !dabt.valid && !page_fault ) > goto bad_data_abort;> > /* Best regards, Evgeny. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |