Message ID | 1707418446-134863-1-git-send-email-steven.sistare@oracle.com (mailing list archive) |
---|---|
Headers | show |
Series | allow cpr-reboot for vfio | expand |
On Thu, Feb 08, 2024 at 10:53:53AM -0800, Steve Sistare wrote: > Allow cpr-reboot for vfio if the guest is in the suspended runstate. The > guest drivers' suspend methods flush outstanding requests and re-initialize > the devices, and thus there is no device state to save and restore. The > user is responsible for suspending the guest before initiating cpr, such as > by issuing guest-suspend-ram to the qemu guest agent. > > Most of the patches in this series enhance migration notifiers so they can > return an error status and message. The last few patches register a notifier > for vfio that returns an error if the guest is not suspended. > > Changes in V3: > * update to tip, add RB's > * replace MigrationStatus with new enum MigrationEventType > * simplify migrate_fd_connect error recovery > * support vfio iommufd containers > * add patches: > migration: stop vm for cpr > migration: update cpr-reboot description This doesn't apply to master anymore, please rebase when repost, thanks.
On 2/20/2024 2:49 AM, Peter Xu wrote: > On Thu, Feb 08, 2024 at 10:53:53AM -0800, Steve Sistare wrote: >> Allow cpr-reboot for vfio if the guest is in the suspended runstate. The >> guest drivers' suspend methods flush outstanding requests and re-initialize >> the devices, and thus there is no device state to save and restore. The >> user is responsible for suspending the guest before initiating cpr, such as >> by issuing guest-suspend-ram to the qemu guest agent. >> >> Most of the patches in this series enhance migration notifiers so they can >> return an error status and message. The last few patches register a notifier >> for vfio that returns an error if the guest is not suspended. >> >> Changes in V3: >> * update to tip, add RB's >> * replace MigrationStatus with new enum MigrationEventType >> * simplify migrate_fd_connect error recovery >> * support vfio iommufd containers >> * add patches: >> migration: stop vm for cpr >> migration: update cpr-reboot description > > This doesn't apply to master anymore, please rebase when repost, thanks. Will do. Before I do, any comments on "migration: update cpr-reboot description"? After we converge on that short description, I will submit a longer treatment in docs/devel/migration, which I see you have recently populated. - Steve
On Tue, Feb 20, 2024 at 05:32:34PM -0500, Steven Sistare wrote: > On 2/20/2024 2:49 AM, Peter Xu wrote: > > On Thu, Feb 08, 2024 at 10:53:53AM -0800, Steve Sistare wrote: > >> Allow cpr-reboot for vfio if the guest is in the suspended runstate. The > >> guest drivers' suspend methods flush outstanding requests and re-initialize > >> the devices, and thus there is no device state to save and restore. The > >> user is responsible for suspending the guest before initiating cpr, such as > >> by issuing guest-suspend-ram to the qemu guest agent. > >> > >> Most of the patches in this series enhance migration notifiers so they can > >> return an error status and message. The last few patches register a notifier > >> for vfio that returns an error if the guest is not suspended. > >> > >> Changes in V3: > >> * update to tip, add RB's > >> * replace MigrationStatus with new enum MigrationEventType > >> * simplify migrate_fd_connect error recovery > >> * support vfio iommufd containers > >> * add patches: > >> migration: stop vm for cpr > >> migration: update cpr-reboot description > > > > This doesn't apply to master anymore, please rebase when repost, thanks. > > Will do. Before I do, any comments on "migration: update cpr-reboot description"? > After we converge on that short description, I will submit a longer treatment in > docs/devel/migration, which I see you have recently populated. Sounds good; yes I hope we have a file there, as it'll pop up later in https://www.qemu.org/docs/master/devel/migration/. You can add a short sentence to forbid postcopy if that's the plan. Other than that it looks good. Thanks,