[Xen-devel] [PATCH v2 3/5] n16550: add sanity check for reg_shift

2016-01-18 Thread Chester Lin
Fix CID 1343302 by adding checking a check on the value of reg_shift. This patch also rolls the multiplication by 8 into the shift. No functional changes. Suggested-by: Jan Beulich Signed-off-by: Chester Lin --- xen/drivers/char/ns16550.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[Xen-devel] [PATCH v2 1/5] libxl: tidy libxl_get_scheduler() according to CODING_STYLE

2016-01-18 Thread Chester Lin
. Additionally, change the error log statement to more accurately reflect the failure. This is the only functional change introduced by this patch. Suggested-by: Ian Campbell Signed-off-by: Chester Lin --- Now storing the return of xc_sched_id in an int as per On Mon, 2016-01-04 at 16:23 +

[Xen-devel] [PATCH v2 2/5] libxl: make GC_FREE reachable in libxl_get_scheduler()

2016-01-18 Thread Chester Lin
, and make a note of the interpretation of the return value in libxl.h. N.B. This change breaks neither the API nor the ABI of libxl. Suggested-by: Ian Campbell Signed-off-by: Chester Lin --- Changed return type of libxl_get_scheduler in order to return both negative error constants and positive

[Xen-devel] [PATCH v2 5/5] libxl: Add explicit cast to libxl_psr_cat_set_cbm

2016-01-18 Thread Chester Lin
This change adds an explicit cast to fix the Coverity warning, and tweaks the surrounding code to more closely conform to the guidelines in CODING_STYLE. No functional changes. Signed-off-by: Chester Lin --- Changed commit message to say that the enums are identical --- tools/libxl/libxl_psr.c

[Xen-devel] [PATCH v3 1/5] libxl: tidy libxl_get_scheduler() according to CODING_STYLE

2016-01-24 Thread Chester Lin
. Additionally, change the error log statement to more accurately reflect the failure. This is the only functional change introduced by this patch. Suggested-by: Ian Campbell Signed-off-by: Chester Lin Reviewed-by: Dario Faggioli --- Now storing the return of xc_sched_id in an int as per On

[Xen-devel] [PATCH v3 2/5] libxl: make GC_FREE reachable in libxl_get_scheduler()

2016-01-24 Thread Chester Lin
Signed-off-by: Chester Lin Reviewed-by: Dario Faggioli --- Changed return type of libxl_get_scheduler in order to return both negative error constants and positive scheduler values. --- tools/libxl/libxl.c | 5 ++--- tools/libxl/libxl.h | 5 - 2 files changed, 6 insertions(+), 4 deletions