Comments (2)
Hi Tom,
For pass-through of any device we need two things:
- Host-to-Guest IRQ routing for the device
- SysMMU support in HW for the device if device is DMA capable (or Bus Master)
Year 2011
You are right we had pass-through support in Xvisor with few example DTS files. This pass-through support was only for non-DMA capable devices because we did not have SMMU support. We had tested this pass-through support with PL011 (uart) and LAN9118 (ethernet) pass-through. Both these devices are non-DMA capable devices. The key part of this pass-through support was Host-to-Guest IRQ routing in SW emulated GIC (i.e. emulators/pic/gic.c)
Year 2012/2013
We realized that supporting only non-DMA capable devices was of not much worth. Also, we discovered that Host-to-Guest IRQ routing did not work well on ARM fast models. Due to this reasons we depricated Host-to-Guest IRQ routing support in SW emulated GIC (i.e. emulators/pic/gic.c).
Year 2014
We are back with pass-through support in Xvisor along with example DTS files. This time we have used GIC virtualization extension for Host-to-Guest IRQ routing. Our HW assisted GIC emulator (i.e. arch/arm/common/vgic.c) support Host-to-Guest IRQ routing. This works quite well on ARM Fast Model and Foundation v8 Model. We also framework for meta emulators for pass-through devices (which other hypervisors don't have). We still lack SMMU support but with meta emulator for pass-through device it should quite easy to add it now.
(Example DTS files for UART pass-through <xvisor_next_source>/arch/arm/board/generic/dts/vexpress/a15/two_pt_guest_vexpress-a15.dts)
Now for OMAP3:
- We don't have VGIC or GIC HW virtualization extension hence latest Xvisor wont be able to support Host-to-Guest IRQ routing. We will need to come-up new method for Host-to-Guest IRQ routing in SW emulated GIC (i.e. emulators/pic/gic.c) which works fine on ARM Fast Model and real HW.
- We don't have SMMU in OMAP3 so we won't able to pass-through DMA-capable devices even if we have Host-to-Guest IRQ routing in emulators/pic/gic.c. As a work-around for this we need to change the Guest OS to see Guest Physical Address == Host Physical Address for RAM regions but this won't be a clean approach.
My recommendations:
If pass-through device is extremely important for you then cleanest way would be to use SOC having HW virtualization support and SMMU. If you want to stick with OMAP3 then I can help you address point1 and point2 above for OMAP3 but this will become specific to your application.
Regards,
Anup
from xvisor.
This makes sense. I'll consider my options.
Thanks so much for the thoughtful response.
from xvisor.
Related Issues (20)
- Error trying to run xvisor: qemu-system-x86_64: multiboot knows VBE. we don't
- stuck on OpenSBI when running risc-v in xvisor HOT 2
- x86 support: xvisor-seabios not available
- riscv: run linux in xvisor, occur fault on wirte plic reg HOT 11
- Build fail on linux (target x86)
- Faild to run multiple guests on riscv64 HOT 7
- How to debug when developing guest programs?
- Invalid or unknown z ISA extension: 'zifencei' HOT 2
- Printing messy code during booting kernel
- VFS error when booting Linux for RISC-V HOT 2
- d2c.py not found HOT 3
- Unrecognized argument in option '-mabi=aapcs-linux' HOT 4
- No FVP_VE Folder
- Problem When Launch Fast Model HOT 1
- can not debug xvisor(qemu)! HOT 2
- How to connect to the guest(linux) via ssh HOT 4
- riscv-qemu broken with current heads HOT 13
- IOMMU driver fails to map some memory areas
- Map serial consoles to qemu HOT 1
- riscv64-unknown-linux-gnu HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xvisor.