Git Product home page Git Product logo

Comments (5)

tmakatos avatar tmakatos commented on August 10, 2024

I've done some work for supporting live migration in libmuser, I've over simplified most of the code to make it work. There are many open issues, most importantly understanding how some regisiters in the migration region are supposed to work (more information in the code as FIXME and TODO).

from libvfio-user.

tmakatos avatar tmakatos commented on August 10, 2024

Also, check VFIO live migration in QEMU, it might answer lots of questions regarding how registers are used etc.

from libvfio-user.

tmakatos avatar tmakatos commented on August 10, 2024

I see that in hw/vfio/migration.c, as soon as the device transitions to the stop-and-copy phase (before migration data are actually copied), the device configuration state is stored. IIUC the client is responsible for saving/loading it, so no need to do anything in muser.

from libvfio-user.

tmakatos avatar tmakatos commented on August 10, 2024

I received some clarifications on some question I have (https://marc.info/?l=kvm&m=160502788221980&w=2):

  • During the stop-and-copy and stopped state the device should only handle migration-specific operations. Any other operation (e.g. vfio-user request) should be explicitly failed.
  • Reading data_offset marks a new iteration, so re-reading pending_bytes and data_size is allowed.
  • The pending_bytes register is volatile.
  • Reading data_size out of sequence if undefined.
  • data_offset and data_size are invariant during an iteration.

from libvfio-user.

tmakatos avatar tmakatos commented on August 10, 2024

Fixed.

from libvfio-user.

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.