Re: Customize coloring on Jailhouse v0.10
Dear João, On Friday, November 30, 2018 at 8:29:44 PM UTC+1, João Reis wrote: > I suppose Jailhouse v0.10 has page coloring, but when i look at > zynqmp-zcu102.c file, i don't see any mention to colored memory regions. Jailhouse includes no support for page colouring (yet). In the configuration snipped you reported, though, the datatype structure, naming and semantics as described in the comment are identical to the implementation that we developed at the HiPeRT-Lab of the University of Modena and Reggio Emilia (Italy), and that we planned to propose here in a RFC early in a couple of months. More info in my previous message on the topic https://groups.google.com/d/msg/jailhouse-dev/rSSE8Yyjmbo/3IpGx6VVDQAJ . > Do i have to add another memory region structure for memory locations of a > given color like this to enable page coloring? > > .memory_regions_colored = { > { > /* RAM */ > .memory = { > .phys_start = 0x80062, > .virt_start = 0x2, > .size = 0x2, > .flags = JAILHOUSE_MEM_READ | > JAILHOUSE_MEM_WRITE | > JAILHOUSE_MEM_EXECUTE | > JAILHOUSE_MEM_LOADABLE, > }, > .colors = 0x00ff, // color selection bit mask > } If you are using our implementation, then yes, you need not only the color selection here in a cell's configuration, but also the coloring definition in the root-cell one. Please, contact me privately if you would like further assistance. Best regards. -- Marco Solieri, Ph.D. Research Fellow High-Performance Real-Time Lab Università degli Studi di Modena e Reggio Emilia Ufficio 1.37 - Edificio Matematica - 213/b, via Campi - 41121 Modena Tel: +39-059-205-55-10 -- OpenPGP: Ox75822E7E -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Customize coloring on Jailhouse v0.10
Hi, On 11/30/18 8:29 PM, João Reis wrote: > Hello everyone, > > I suppose Jailhouse v0.10 has page coloring, but when i look at > zynqmp-zcu102.c file, i don't see any mention to colored memory regions. Do i > have to add another memory region structure for memory locations of a given > color like this to enable page coloring? there is no upstream support for cache coloring in Jailhouse. Let me Cc Claudio, I once heard that some guys from Italy are working on this topic. Ralf > > .memory_regions_colored = { > { > /* RAM */ > .memory = { > .phys_start = 0x80062, > .virt_start = 0x2, > .size = 0x2, > .flags = JAILHOUSE_MEM_READ | > JAILHOUSE_MEM_WRITE | > JAILHOUSE_MEM_EXECUTE | > JAILHOUSE_MEM_LOADABLE, > }, > .colors = 0x00ff, // color selection bit mask > } > -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Customize coloring on Jailhouse v0.10
Hello everyone, I suppose Jailhouse v0.10 has page coloring, but when i look at zynqmp-zcu102.c file, i don't see any mention to colored memory regions. Do i have to add another memory region structure for memory locations of a given color like this to enable page coloring? .memory_regions_colored = { { /* RAM */ .memory = { .phys_start = 0x80062, .virt_start = 0x2, .size = 0x2, .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE | JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_LOADABLE, }, .colors = 0x00ff, // color selection bit mask } -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [PATCH 0/4] ivshmem-demo inmate for BananaPi-M1
Am Thu, 29 Nov 2018 02:53:24 -0800 schrieb : > On Monday, January 15, 2018 at 9:04:57 AM UTC+1, jonas wrote: > > > > - it also seems you have added tools to the guest-code-repo but > > > they do not seem essential, but are mentioned in your docs > > > (shmem-pump) > > Yes, some very simple tools for modifying/displaying the contents > > of the shmem-area from the root-cell using the uio-ivshmem.ko > > module. > > Hi Jonas and Henning, > > I managed to get the demo running on the emtrion RZ/G1E, but I'm not > sure what shmem_pump and shmem_dump are doing. These tools are not > available in the ivshmem-guest-code repo. Can you please elaborate, > what they're doing or even share the code? That'd be great. Hi, i do not actually remember the details. Most of the stuff in the repo is not jailhouse specific but rather qemu specific. The scope of the jailhouse support does not go beyond what you will find in README.jailhouse. And it is really just a demo to understand the basics of setting up the shmem, sending/receiving data and interrupts. For anything beyond that i suggest to check out the ivshmem network device driver. This driver is an example working on all arches since a long time, just harder to understand what is going on. The tools you are looking for might be in qemu and might just not work with the jailhouse implementation of ivshmem. There was a follow up series of patches from me, which also did not get merged, but might be a better start if you are just looking at the demo. https://groups.google.com/forum/#!topic/jailhouse-dev/TeGZNtfOV1Y Henning -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.