Re: [kvm-unit-tests PATCH v3 3/3] s390x: smp: add tests for calls in wait state

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

 



Quoting Claudio Imbrenda (2022-08-02 18:06:05)
[...]
> > diff --git a/s390x/smp.c b/s390x/smp.c
> > index 12c40cadaed2..d59ca38e7a37 100644
> > --- a/s390x/smp.c
> > +++ b/s390x/smp.c
[...]
> > +static void test_calls_in_wait(void)
> > +{
[...]
> > +             /*
> > +              * To avoid races, we need to know that the secondary CPU has entered wait,
> > +              * but the architecture provides no way to check whether the secondary CPU
> > +              * is in wait.
> > +              *
> > +              * But since a waiting CPU is considered operating, simply stop the CPU, set
> > +              * up the restart new PSW mask in wait, send the restart interrupt and then
> > +              * wait until the CPU becomes operating (done by smp_cpu_start).
> > +              */
> > +             smp_cpu_stop(1);
> > +             expect_ext_int();
> 
> which external interrupt are you expecting on this CPU?

Right, leftover code, can be removed. Will be fixed.




[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