Skip to content

ahci: enable migration

John Snow qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 7 repliesIn review
  2. v29 patches 2 repliesSuperseded
  3. v15 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- Rebase and resend for 2.4.
- Minor style guide fix.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9libqos/ahci: Add halted command helperstests/libqos/ahci.c tests/libqos/ahci.h+30 -00 replies
2/9libqos/ahci: Fix sector set methodtests/libqos/ahci.c+4 -20 replies
3/9libqos: Add migration helperstests/libqos/libqos.c tests/libqos/libqos.h tests/libqos/malloc.c +1 more+144 -174 replies
4/9ich9/ahci: Enable Migrationhw/ide/ahci.c hw/ide/ich.c+0 -20 replies
5/9qtest/ahci: Add migration testtests/ahci-test.c+88 -00 replies
6/9qtest/ahci: add migrate dma testtests/ahci-test.c tests/libqos/ahci.c+46 -00 replies
7/9qtest/ahci: add flush migrate testtests/ahci-test.c+51 -10 replies
8/9qtest/ahci: add halted dma testtests/ahci-test.c+60 -00 replies
9/9qtest/ahci: add migrate halted dma testtests/ahci-test.c+74 -10 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKevin Wolf
SeriesR-b
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/9] ahci: enable migration

The day we all feared is here, and I am proposing we allow the migration of the AHCI device tentatively for the 2.4 development window.

There are some more NCQ migration tests are needed, but I felt that it was important to get migration enabled as close to the start of the 2.4 development window as possible.

If the NCQ patches don't pan out by the time the 2.4 freeze occurs, we can revert the migration boolean and add a conditional around the ahci tests that rely on the migration feature being enabled.

I am justifying this checkin based on a series of ping-pong migration tests I ran under heavy load (using google's stressapptest) and saw over 300 successful migrations without a single failure.

This series does a few things:
(1) Add migration facilities to libqos
(2) Enable AHCI and ICH9 migration
(3) Add a series of migration tests to ahci-test

v3:
- Rebase and resend for 2.4.
- Minor style guide fix.

v2:
- Added a URI parameter to the migrate() helper
- Adjust ahci_shutdown to set qtest context for itself
- Make sure verify() is part of ahci_migrate() and redundant calls are eliminated
- Add new helpers to make tests with blkdebug injections more succint
- Change the flush migrate test to not load the blkdebug rule on the destination host
- Modify the migrate() function so that it does not poll the VM for migration status if it can rely on RESUME events.
- New patch: Repair the ahci_command_set_offset helper.
- New test: Test DMA halt and resume.
- New test: Test DMA halt, migrate, and resume.

==
For convenience, this branch is available at:
https://github.com/jnsnow/qemu.git branch ahci-migration-test
https://github.com/jnsnow/qemu/tree/ahci-migration-test

This version is tagged ahci-migration-test-v3:
https://github.com/jnsnow/qemu/releases/tag/ahci-migration-test-v3
==

John Snow (9):
libqos/ahci: Add halted command helpers
libqos/ahci: Fix sector set method
libqos: Add migration helpers
ich9/ahci: Enable Migration
qtest/ahci: Add migration test
qtest/ahci: add migrate dma test
qtest/ahci: add flush migrate test
qtest/ahci: add halted dma test
qtest/ahci: add migrate halted dma test

 hw/ide/ahci.c         |   1 -
 hw/ide/ich.c          |   1 -
 tests/ahci-test.c     | 318 +++++++++++++++++++++++++++++++++++++++++++++++++-
 tests/libqos/ahci.c   |  34 +++++-
 tests/libqos/ahci.h   |   3 +
 tests/libqos/libqos.c |  84 +++++++++++++
 tests/libqos/libqos.h |   2 +
 tests/libqos/malloc.c |  74 +++++++++---
 tests/libqos/malloc.h |   1 +
 9 files changed, 496 insertions(+), 22 deletions(-)
Signature · 1 line
2.1.0