On 11/29/21 23:19, David Matlack wrote:
The selftests infrastructure already has save/restore tests at
instruction granularity (state_test.c) so you should have more luck that
way; these tests are worthwhile anyway.
There is also (I just discovered) support for guest-triggerable
migration in the kvm-unit-tests [1]. You could use that to trigger a
save/restore.
There is, but I don't think it's good. Save/restore bugs almost
invariably depend on very specific processor state, and it's hard to
ensure that in kvm-unit-tests (except probabilistically, but we can do
better).
Paolo
[1] Example:https://gitlab.com/kvm-unit-tests/kvm-unit-tests/-/blob/master/arm/gic.c#L798