[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 08 of 27 V4] libxl: use an explicit LIBXL_TIMER_MODE_DEFAULT value
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1330533035 0 # Node ID 94609c13694b3db49f4da73cdfb3cacb16d597cc # Parent 80dd9bfaaf0be68117bc01833b892663c87b98e3 libxl: use an explicit LIBXL_TIMER_MODE_DEFAULT value Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> diff -r 80dd9bfaaf0b -r 94609c13694b tools/libxl/libxl.h --- a/tools/libxl/libxl.h Wed Feb 29 16:30:35 2012 +0000 +++ b/tools/libxl/libxl.h Wed Feb 29 16:30:35 2012 +0000 @@ -245,7 +245,7 @@ typedef LIBXL_TAILQ_ENTRY(struct libxl_e typedef struct libxl__ctx libxl_ctx; -#define LIBXL_TIMER_MODE_DEFAULT LIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKS +#define LIBXL_TIMER_MODE_DEFAULT -1 #include "_libxl_types.h" diff -r 80dd9bfaaf0b -r 94609c13694b tools/libxl/libxl_create.c --- a/tools/libxl/libxl_create.c Wed Feb 29 16:30:35 2012 +0000 +++ b/tools/libxl/libxl_create.c Wed Feb 29 16:30:35 2012 +0000 @@ -94,7 +94,7 @@ void libxl_domain_build_info_init(libxl_ b_info->u.hvm.viridian = 0; b_info->u.hvm.hpet = 1; b_info->u.hvm.vpt_align = 1; - b_info->u.hvm.timer_mode = 1; + b_info->u.hvm.timer_mode = LIBXL_TIMER_MODE_DEFAULT; b_info->u.hvm.nested_hvm = 0; b_info->u.hvm.no_incr_generationid = 0; @@ -135,6 +135,10 @@ int libxl__domain_build_info_setdefault( switch (b_info->type) { case LIBXL_DOMAIN_TYPE_HVM: + if (b_info->u.hvm.timer_mode == LIBXL_TIMER_MODE_DEFAULT) + b_info->u.hvm.timer_mode = + LIBXL_TIMER_MODE_NO_DELAY_FOR_MISSED_TICKS; + if (!b_info->u.hvm.boot) { b_info->u.hvm.boot = strdup("cda"); if (!b_info->u.hvm.boot) return ERROR_NOMEM; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |