Re: [kvm-unit-tests PATCH v2 0/3] Regression test for L1 LDTR persistence bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 10, 2021 at 1:45 PM Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote:
>
> 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.

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.

[1] Example: https://gitlab.com/kvm-unit-tests/kvm-unit-tests/-/blob/master/arm/gic.c#L798

>
> Paolo
>



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux