Giter Site home page Giter Site logo

Comments (2)

avpatel avatar avpatel commented on July 26, 2024

Hi Tom,

For pass-through of any device we need two things:

  1. Host-to-Guest IRQ routing for the device
  2. 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:

  1. 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.
  2. 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.

TomHennen avatar TomHennen commented on July 26, 2024

This makes sense. I'll consider my options.

Thanks so much for the thoughtful response.

from xvisor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.