debuggers.hg

view tools/libxl/libxl_nocpuid.c @ 22855:1d1eec7e1fb4

xl: Perform minimal validation of virtual disk file while parsing config file

This patch performs some very basic validation on the virtual disk
file passed through the config file. This validation ensures that we
don't go too far with the initialization like spawn qemu and more
while there could be some potentially fundamental issues.

[ Patch fixed up to work with PHYSTYPE_EMPTY 22808:6ec61438713a -iwj ]

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Kamala Narasimhan <kamala.narasimhan@gmail.com>
date Tue Jan 25 18:09:49 2011 +0000 (2011-01-25)
parents c553d3035fd5
children
line source
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU Lesser General Public License as published
4 * by the Free Software Foundation; version 2.1 only. with the special
5 * exception on linking described in file LICENSE.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU Lesser General Public License for more details.
11 */
13 #include "libxl.h"
15 void libxl_cpuid_destroy(libxl_cpuid_policy_list *p_cpuid_list)
16 {
17 }
19 int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str)
20 {
21 return 0;
22 }
24 int libxl_cpuid_parse_config_xend(libxl_cpuid_policy_list *cpuid,
25 const char* str)
26 {
27 return 0;
28 }
30 void libxl_cpuid_apply_policy(libxl_ctx *ctx, uint32_t domid)
31 {
32 }
34 void libxl_cpuid_set(libxl_ctx *ctx, uint32_t domid,
35 libxl_cpuid_policy_list cpuid)
36 {
37 }