Re: [RFCv2 07/37] KVM: s390: add new variants of UV CALL

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

 



On Tue, 4 Feb 2020 13:11:07 +0100
Cornelia Huck <cohuck@xxxxxxxxxx> wrote:

[...]

> 
> > +	rc = uv_call_sched(0, (u64)&uvcb);
> > +	if (ret)
> > +		*ret = *(u32 *)&uvcb.header.rc;  
> 
> Does that rc value in the block contain anything sensible if you
> didn't get cc==0?

yes, RC is always meaningful. 

CC == 0 implies RC == 1, which means success.
CC == 1 implies RC != 1, which means something went wrong in some way

in theory you could always disregard CC and only check RC



Claudio




[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