From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: [PATCH v8 06/21] libxl: add vmemrange to libxl__domain_build_state Date: Mon, 16 Mar 2015 09:52:25 +0000 Message-ID: <1426499560-28514-7-git-send-email-wei.liu2@citrix.com> References: <1426499560-28514-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1426499560-28514-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian Jackson , Dario Faggioli , Wei Liu , Ian Campbell , Elena Ufimtseva List-Id: xen-devel@lists.xenproject.org A vnode consists of one or more vmemranges (virtual memory range). One example of multiple vmemranges is that there is a hole in one vnode. Currently we haven't exported vmemrange interface to libxl user. Vmemranges are generated during domain build, so we have relevant structures in domain build state. Later if we discover we need to export the interface, those structures can be moved to libxl_domain_build_info as well. These new fields (along with other fields in that struct) are set to 0 at start of day so we don't need to explicitly initialise them. A following patch which introduces an independent checking function will need to access these fields. I don't feel very comfortable squashing this change into that one so I didn't use a single commit. Signed-off-by: Wei Liu Reviewed-by: Dario Faggioli Cc: Ian Campbell Cc: Ian Jackson Cc: Dario Faggioli Cc: Elena Ufimtseva Acked-by: Ian Campbell --- Changes in v5: 1. Fix commit message. Changes in v4: 1. Improve commit message. Changes in v3: 1. Rewrite commit message. --- tools/libxl/libxl_internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 934465a..6d3ac58 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -973,6 +973,9 @@ typedef struct { libxl__file_reference pv_ramdisk; const char * pv_cmdline; bool pvh_enabled; + + xen_vmemrange_t *vmemranges; + uint32_t num_vmemranges; } libxl__domain_build_state; _hidden int libxl__build_pre(libxl__gc *gc, uint32_t domid, -- 1.9.1