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

Re: [Xen-devel] SSID and CPU pool parsing in xl / libxl


  • To: Wei Liu <wei.liu2@xxxxxxxxxx>
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Mon, 28 Apr 2014 07:52:20 +0200
  • Cc: dario.faggioli@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxx, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, dgdegra@xxxxxxxxxxxxx, Ian Campbell <ian.campbell@xxxxxxxxxx>
  • Delivery-date: Mon, 28 Apr 2014 05:52:50 +0000
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Message-ID:Date:From:Organization:User-Agent: MIME-Version:To:CC:Subject:References:In-Reply-To: Content-Type:Content-Transfer-Encoding; b=tetY+n+YqSyEbF4qc77uMTzpK+4DgeDKM4GJCPszejdk0Jdnw5a9sbNP 7tlxkrtV2ooGuGFF21QAzXT16ZkOhCKNuo3pA5LaMWvfohIe8zUOdjW6r 4LXMbVS73k+dZWW8zw45uGlT0PVD6vyFCltzp4K7LKOCLxQ5OXuHMMgYz ENbCj1Ca7Q8GW7W9W7/1gDYsjyVVVmoQkm9E4ZVQg/o56tsL+jT6oIO9P t6hfjSqxNG/weFYIxB1dFEr+iDVk0;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

On 25.04.2014 12:20, Wei Liu wrote:
Hi Daniel, Dario, Juergen and others

I'm trying to overhaul some libxl infrastructure at the moment, so that
we can preserve domain configurations across save and restore. The first
step is libxl needs to be able to serialize / deserialize
configurations.

When I went through the list of xl config file options, most of the
options can be easily serialized and sent over the wire to the other
end. But SSID parsing and CPU pool ID parsing look exceptional -- they
happen in xl (toolstack) level, not libxl (library) level.

Take "init_seclabel" as an example, xl calls libxl_flask_context_to_sid
to translate a string to an SSID (which is local to host) then passes it
to libxl. If libxl serialize its data, then the receiving end only sees
the translated SSID, not the "init_seclabel". The string is actually the
relavent bit to rebuild a domain, not the SSID (because it's local to
host). The same situation applies to CPU pool ID parsing.

I plan to push the parsing down to libxl level, but I'm not sure if
there's any reason it's done in xl in the first place. Please let me
know if you have any concern.

Just go ahead. CPU pool ID parsing was only used in xl, so I put it there.


Juergen

--
Juergen Gross                 Principal Developer Operating Systems
PSO PM&D ES&S SWE OS6                  Telephone: +49 (0) 89 62060 2932
Fujitsu                                   e-mail: juergen.gross@xxxxxxxxxxxxxx
Mies-van-der-Rohe-Str. 8                Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.