Re: [PATCH for 8.0 v3] memory: Prevent recursive memory access

2023-03-17 Thread Akihiko Odaki
On 2023/03/18 1:30, Peter Maydell wrote: On Thu, 16 Mar 2023 at 16:21, Akihiko Odaki wrote: A guest may request ask a memory-mapped device to perform DMA. If the address specified for DMA is the device performing DMA, it will create recursion. It is very unlikely that device implementations ar

Re: [PATCH for 8.0 v3] memory: Prevent recursive memory access

2023-03-17 Thread Akihiko Odaki
On 2023/03/18 1:25, Cédric Le Goater wrote: Hello, On 3/16/23 17:20, Akihiko Odaki wrote: A guest may request ask a memory-mapped device to perform DMA. If the address specified for DMA is the device performing DMA, it will create recursion. It is very unlikely that device implementations are p

Re: [PATCH for 8.0 v3] memory: Prevent recursive memory access

2023-03-17 Thread Peter Maydell
On Thu, 16 Mar 2023 at 16:21, Akihiko Odaki wrote: > > A guest may request ask a memory-mapped device to perform DMA. If the > address specified for DMA is the device performing DMA, it will create > recursion. It is very unlikely that device implementations are prepared > for such an abnormal acc

Re: [PATCH for 8.0 v3] memory: Prevent recursive memory access

2023-03-17 Thread Cédric Le Goater
Hello, On 3/16/23 17:20, Akihiko Odaki wrote: A guest may request ask a memory-mapped device to perform DMA. If the address specified for DMA is the device performing DMA, it will create recursion. It is very unlikely that device implementations are prepared for such an abnormal access, which ca

[PATCH for 8.0 v3] memory: Prevent recursive memory access

2023-03-16 Thread Akihiko Odaki
A guest may request ask a memory-mapped device to perform DMA. If the address specified for DMA is the device performing DMA, it will create recursion. It is very unlikely that device implementations are prepared for such an abnormal access, which can result in unpredictable behavior. In particula