Giter Site home page Giter Site logo

crosvm's People

Contributors

allen-webb avatar b92paul avatar blueknob avatar catramen avatar cmtm avatar danielverkamp avatar ddavenport-chromium avatar dgreid avatar dtolnay avatar dtor avatar g2p avatar ghartman17022 avatar gurchetansingh avatar jemoreira avatar jennymankin avatar jlucangelio avatar jxzgithub avatar jynnantonix avatar m-gupta avatar mattdelco avatar msisov avatar mutexlox avatar petrutlucian94 avatar pkern avatar rbradford avatar reveman-chromium avatar staronj avatar vapier avatar zachreizner avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

crosvm's Issues

Cancel running vcpus when exiting

We'll need to gracefully stop vcpus when the guest initiates a shutdown. One issue is that the WhpVirtualProcessor objects are moved to the vcpu runner loop and are no longer available afterwards.

A few ideas:

  1. Have the vcpu loop use a WhpVirtualProcessor reference instead of owning it
    • it needs to become Send+Sync, which may not be safe/desired, considering that WhpVirtualProcessor embeds the emulator context
    • if the vcpu thread gets a WhpVirtualProcessor reference, rust requires it to have a static lifetime
  2. Clone the WhpVirtualProcessor or libwhp;:VirtualProcessor objects
    • WhpVirtualProcessor owns a VirtualProcessor object, which implements Drop
    • WhpVirtualProcessor might become quite beefy, including objects that we use in order to emulate Kvm's API (e.g. pio/mmio events, etc)
  3. Implement a "cancel_vcpu" method on the partition object
    • We'd need to handle errors raised when canceling an already destroyed vcpu
    • doesn't seem too clean as we're duplicating functionality

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.