Re: [kvm-unit-tests PATCH v2 5/6] s390x: Use interrupts in SCLP

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

 



> 
>>
>>> +
>>>  void sclp_memory_setup(void)
>>>  {
>>>  	ReadInfo *ri = (void *)_sccb;
>>> @@ -37,7 +76,10 @@ void sclp_memory_setup(void)
>>>  	int cc;
>>>  
>>>  	ri->h.length = SCCB_SIZE;
>>> +	sclp_busy = true;
>>>  	sclp_service_call(SCLP_CMDW_READ_SCP_INFO_FORCED, ri);
>>> +	while (sclp_busy)
>>> +		/* Wait for SCLP request to complete */;
>>
>> Should we factor that out into something like
> 
> As written above, I'm all for the second one, but I dislike the start
> one liner.
> 

Sure, fine with me!


-- 

Thanks,

David / dhildenb



[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