On 10/15/21 21:55, Jim Mattson wrote:
This issue is significant enough that it warrants a regression test. Unfortunately, at the moment, the best we can do is check for the LDTR persistence bug. I'd like to be able to trigger a save/restore from within the L2 guest, but AFAICT, there's no way to do that under qemu. Does anyone want to implement a qemu ISA test device that triggers a save/restore when its configured I/O port is written to?
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.
Paolo