|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN v7 2/2] xen/arm64: io: Support instructions (for which ISS is not valid) on emulated MMIO region using MMIO/ioreq handler
Hi Stefano, Thanks for your feedback. On 09/02/2022 01:50, Stefano Stabellini wrote: On Sat, 5 Feb 2022, Ayan Kumar Halder wrote: <snip>
I see what you mean.arch_ioreq_complete_mmio() is called from leave_hypervisor_to_guest(). That is after do_trap_stage2_abort_guest () has been invoked. So the original variable is no longer valid. <snip> + + /* + * When the instruction needs to be retried by the guest after + * resolving the translation fault. + */ + else if ( info.dabt_instr.state == INSTR_RETRY ) + goto set_page_tables; As discussed with Julien on IRC, when hsr_dabt.s1ptw == 1, Xen should only invoke p2m_resolve_translation_fault(). If it returns an error, it should send an abort to the guest. The reason being there is no need to invoke try_map_mmio() as the gpa is not a mmio address. Also, Xen does not support the use case when the guest places the page tables in the MMIO region. I will wait for Julien's comments before sending out a v8 patch. - Ayan + + state = try_handle_mmio(regs, &info);switch ( state )
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |