<p dir="ltr"><br><br></p>
<p dir="ltr">Sent via Xiaomi<br>
On Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>>, Jun 12, 2014 11:54 PM wrote:<br>
><br>
> On Thu, Jun 12, 2014 at 11:37 AM, shenyouren <<a href="mailto:shenyouren@gmail.com">shenyouren@gmail.com</a>> wrote: <br>
> > <br>
> >> >> <br>
> >> >> Hi, <br>
> >> >> <br>
> >> >> can you please evaluate, which pieces already implemented in <br>
> >> >> pok/kernel/* can be reused to build the vCPU structure? <br>
> >> > I don't think there are lot of code which can be reused. The vCPU is a <br>
> >> > new concept in POK. I can only figure out that the context store/resume <br>
> >> > function can be reused. <br>
> >> Yes, it is a new concept. But the partition structure has some similar <br>
> >> elements. E.g. context_t. Is there more? <br>
> > <br>
> > Since you considered a vCPU is corresponding to a partition, there is no <br>
> > more function need by vCPU except context and interrupt store/resume. <br>
> > Of course these code may be able to reuse. <br>
> > But if we add more function into vCPU, like scheduler, those should be <br>
> > created. <br>
> > <br>
> > By the way, when it comes "reuse", it means use it directly or copy paste to <br>
> > be vCPU functions? <br>
> > <br>
> Prefer to reuse by using existing code directly, for example by <br>
> writing your own function that calls existing functions. Avoid <br>
> copy-paste of source code. <br>
Thank you very much, I will keep it in mind.</p>
<p dir="ltr">Thank you, Philipp, I will post the blog as soon as I can.</p>