Re: [XEN v10 4/4] xen/arm64: io: Handle data abort due to cache maintenance instructions

2022-03-17 Thread Ayan Kumar Halder
Hi Julien, On 11/03/2022 18:34, Julien Grall wrote: Hi, On 10/03/2022 17:45, Ayan Kumar Halder wrote: When the data abort is caused due to cache maintenance for an address, there are three scenarios:- 1. Address belonging to a non emulated region - For this, Xen should set the corresponding

Re: [XEN v10 4/4] xen/arm64: io: Handle data abort due to cache maintenance instructions

2022-03-11 Thread Julien Grall
Hi, On 11/03/2022 13:21, Ayan Kumar Halder wrote: enum io_state try_handle_mmio(struct cpu_user_regs *regs,   mmio_info_t *info) {     struct vcpu *v = current;     const struct mmio_handler *handler = NULL;     int rc;     ASSERT(info->dabt.ec ==

Re: [XEN v10 4/4] xen/arm64: io: Handle data abort due to cache maintenance instructions

2022-03-11 Thread Julien Grall
Hi, On 10/03/2022 17:45, Ayan Kumar Halder wrote: When the data abort is caused due to cache maintenance for an address, there are three scenarios:- 1. Address belonging to a non emulated region - For this, Xen should set the corresponding bit in the translation table entry to valid and return

Re: [XEN v10 4/4] xen/arm64: io: Handle data abort due to cache maintenance instructions

2022-03-11 Thread Ayan Kumar Halder
Hi Stefano, On 11/03/2022 02:25, Stefano Stabellini wrote: On Thu, 10 Mar 2022, Ayan Kumar Halder wrote: When the data abort is caused due to cache maintenance for an address, there are three scenarios:- 1. Address belonging to a non emulated region - For this, Xen should set the

Re: [XEN v10 4/4] xen/arm64: io: Handle data abort due to cache maintenance instructions

2022-03-10 Thread Stefano Stabellini
On Thu, 10 Mar 2022, Ayan Kumar Halder wrote: > When the data abort is caused due to cache maintenance for an address, > there are three scenarios:- > > 1. Address belonging to a non emulated region - For this, Xen should > set the corresponding bit in the translation table entry to valid and >

[XEN v10 4/4] xen/arm64: io: Handle data abort due to cache maintenance instructions

2022-03-10 Thread Ayan Kumar Halder
When the data abort is caused due to cache maintenance for an address, there are three scenarios:- 1. Address belonging to a non emulated region - For this, Xen should set the corresponding bit in the translation table entry to valid and return to the guest to retry the instruction. This can