Re: [kvm-unit-tests PATCH v1] s390x: try multiple times to stop CPU

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

 



> +static void machine_stop(void)
> +{
> +	int retry = 999999;
> +	int cc;
> +
> +	/* for now we only have 1 CPU to stop */
> +	do {
> +		cc = sigp_stop();
> +		retry--;
> +	} while (cc == 3 && retry);

This should be 2 instead of 3 ... but I am currently working on SIGP
tests and plan to introduce defines for all these, so this patch can wait.


-- 

Thanks,

David



[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