Re: [Qemu-devel] [PATCH 0/6] accel/tcg: Support execution from MMIO and small MMU regions

2018-07-23 Thread Cédric Le Goater
On 07/23/2018 05:17 PM, Peter Maydell wrote: > On 23 July 2018 at 15:57, Cédric Le Goater wrote: >> On 07/10/2018 06:00 PM, Peter Maydell wrote: >>> Note for the Xilinx folks: this patchset makes the mmio-exec >>> testcase for running from the SPI flash pass. Cedric: you might >>> like to test the

Re: [Qemu-devel] [PATCH 0/6] accel/tcg: Support execution from MMIO and small MMU regions

2018-07-23 Thread Peter Maydell
On 23 July 2018 at 15:57, Cédric Le Goater wrote: > On 07/10/2018 06:00 PM, Peter Maydell wrote: >> Note for the Xilinx folks: this patchset makes the mmio-exec >> testcase for running from the SPI flash pass. Cedric: you might >> like to test the aspeed image you had that relies on execution >> f

Re: [Qemu-devel] [PATCH 0/6] accel/tcg: Support execution from MMIO and small MMU regions

2018-07-23 Thread Cédric Le Goater
On 07/10/2018 06:00 PM, Peter Maydell wrote: > This series adds support to TCG for executing from MMIO regions > and small MMU regions. The basic principle is that if get_page_addr_code() > finds that the region is not backed by a full page of RAM then it > returns -1, and tb_gen_code() then genera

Re: [Qemu-devel] [PATCH 0/6] accel/tcg: Support execution from MMIO and small MMU regions

2018-07-23 Thread Cédric Le Goater
On 07/10/2018 06:00 PM, Peter Maydell wrote: > This series adds support to TCG for executing from MMIO regions > and small MMU regions. The basic principle is that if get_page_addr_code() > finds that the region is not backed by a full page of RAM then it > returns -1, and tb_gen_code() then genera

Re: [Qemu-devel] [PATCH 0/6] accel/tcg: Support execution from MMIO and small MMU regions

2018-07-16 Thread Peter Maydell
On 16 July 2018 at 13:30, KONRAD Frederic wrote: > Hi Peter, > > Nice! Thanks for that. > > A little question though.. What will happen in the case where the > CPU start executing code at random place because of eg: a badly > configured kernel? > > Seeing the patch 5 I guess it will really execute

Re: [Qemu-devel] [PATCH 0/6] accel/tcg: Support execution from MMIO and small MMU regions

2018-07-16 Thread KONRAD Frederic
Hi Peter, Nice! Thanks for that. A little question though.. What will happen in the case where the CPU start executing code at random place because of eg: a badly configured kernel? Seeing the patch 5 I guess it will really execute stuff.. So maybe this is less user-friendly? Cheers, Fred On

[Qemu-devel] [PATCH 0/6] accel/tcg: Support execution from MMIO and small MMU regions

2018-07-10 Thread Peter Maydell
This series adds support to TCG for executing from MMIO regions and small MMU regions. The basic principle is that if get_page_addr_code() finds that the region is not backed by a full page of RAM then it returns -1, and tb_gen_code() then generates a non-cached TB containing a single instruction.