Comments (5)
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.
Also, check VFIO live migration in QEMU, it might answer lots of questions regarding how registers are used etc.
from libvfio-user.
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.
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-readingpending_bytes
anddata_size
is allowed. - The
pending_bytes
register is volatile. - Reading
data_size
out of sequence if undefined. data_offset
anddata_size
are invariant during an iteration.
from libvfio-user.
Fixed.
from libvfio-user.
Related Issues (20)
- libvfio-user responds with duplicated FD in get_region_info when sparse maps is used HOT 2
- implement test to demonstrate performance benefit of shadow ioeventfd
- implement new capabilities
- mmap_len in dma_map_region may be incorrect
- nvmf_subsystem_add_listener return error when CONFIG_ARM64_64K_PAGES=y HOT 3
- QEMU crash when execute device_add and device_del alternately HOT 2
- test/unit-tests.c GCC13 compilation error, dangling-pointer HOT 5
- Add support for emulating CXL devices HOT 3
- CI workflow doesn't use flake8 version 5.0.4
- spec: not clear whether VFIO_USER_DMA_WRITE should track dirty pages
- nvmf_vfio_user_prop_req_rsp: failed to map Admin queue HOT 13
- Unclear qemu version recommendation HOT 1
- Avoid bit fields in protocol message definitions HOT 7
- arch linux CI workflow fails HOT 11
- clean up msg->out.iov in error cases
- consider generating graphs for migration transitions HOT 2
- initial migration state not specified HOT 2
- support for vIOMMU with mmap() HOT 7
- irqs_disable() possible out-of-boundary table access. HOT 2
- stale references to migration regions
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 libvfio-user.