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

Thank you, Philipp, I will post the blog as soon as I can.

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to