Re: [PATCH RESEND v12 5/6] conf: Introduce SGX EPC element into device memory xml

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

 



On 5/30/22, 6:10 AM, "Michal Prívozník" <mprivozn@xxxxxxxxxx> wrote:


> > +    for (i = 0; i < def->nmems; i++) {

> > +        /* sgx epc memory does not support hotplug */

> > +        if (def->mems[i]->model != VIR_DOMAIN_MEMORY_MODEL_SGX_EPC) {

>

> This is very, very easy to overlook. I mean the condition. Also, notice

> how when you added new memory type compiler identified all the places

> you need to adjust? That's because I've rewrote the code to use switch()

> everywhere. And this new code goes against that direction.

 

Thanks for pointing this out. I will update it to use switch() style instead of

if condition.

 

Thanks,

Lin.


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux