<div>
                    <br>
                </div>
                <div></div>
                 
                <p style="color: #A0A0A8;">On Tuesday, 20 June 2017 at 8:39 PM, Martin Kletzander wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>On Mon, Jun 12, 2017 at 05:48:41PM +0800, Eli Qiao wrote:</div><blockquote type="cite"><div><div>This patch adds 3 major private interface.</div><div><br></div><div>virResctrlGetFreeCache: return free cache, default cache substract cache</div><div>                       allocated.</div><div>virResctrlSetCachetunes: set cache banks which defined in a domain.</div><div>virResctrlRemoveCachetunes: remove cache allocation group from the</div><div>                           host.</div><div><br></div><div>There's some existed issue when do syntax-check as I reference the cache</div><div>tune and cachebank definition (from conf/domain_conf.h) in</div><div>util/virresctrl.h. </div></div></blockquote></div></div></span></blockquote><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;"><span><div><div><div><br></div><div>Yes, util/ cannot depend on conf/ in libvirt due to various reasons.</div><div>All the data you want to use in util/ need to be defined there.  If that</div><div>corresponds to some XML, the parsers and formatters must be in conf/.</div><div>In rare cases, there might be need for two data structures, one in util/</div><div>and one in conf/.  I don't think that's needed in this case.</div></div></div></span></blockquote><div><br></div><div>I can move the virDomainCacheBank definition to util/virresctrl.h</div><div><br></div><div>but what about the virCapsHostPtr, we need the host cache information and resctrl information</div><div>it’s defined in src/conf/capabilities.h”</div><div><br></div><div>Do we need to define another copy in virresctrl.h ?</div><div> </div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;"><span><div><div><div>--</div><div>libvir-list mailing list</div><div><a href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a></div><div><a href="https://www.redhat.com/mailman/listinfo/libvir-list">https://www.redhat.com/mailman/listinfo/libvir-list</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>