mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
domain builder: Zero start_info struct.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
ae52354f2b
commit
5a9b83aea8
1 file changed
+2
@@ -417,6 +417,7 @@ static int start_info_x86_32(struct xc_dom_image *dom)
|
||||
|
||||
xc_dom_printf("%s: called\n", __FUNCTION__);
|
||||
|
||||
memset(start_info, 0, sizeof(*start_info));
|
||||
sprintf(start_info->magic, dom->guest_type);
|
||||
start_info->nr_pages = dom->total_pages;
|
||||
start_info->shared_info = shinfo << PAGE_SHIFT_X86;
|
||||
@@ -455,6 +456,7 @@ static int start_info_x86_64(struct xc_dom_image *dom)
|
||||
|
||||
xc_dom_printf("%s: called\n", __FUNCTION__);
|
||||
|
||||
memset(start_info, 0, sizeof(*start_info));
|
||||
sprintf(start_info->magic, dom->guest_type);
|
||||
start_info->nr_pages = dom->total_pages;
|
||||
start_info->shared_info = shinfo << PAGE_SHIFT_X86;
|
||||
|
||||