debuggers.hg

annotate xen/common/preempt.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 0b88ccf6332d
children
rev   line source
keir@22446 1 /******************************************************************************
keir@22446 2 * preempt.c
keir@22446 3 *
keir@22446 4 * Track atomic regions in the hypervisor which disallow sleeping.
keir@22446 5 *
keir@22446 6 * Copyright (c) 2010, Keir Fraser <keir@xen.org>
keir@22446 7 *
keir@22446 8 * This program is free software; you can redistribute it and/or modify
keir@22446 9 * it under the terms of the GNU General Public License as published by
keir@22446 10 * the Free Software Foundation; either version 2 of the License, or
keir@22446 11 * (at your option) any later version.
keir@22446 12 *
keir@22446 13 * This program is distributed in the hope that it will be useful,
keir@22446 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
keir@22446 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
keir@22446 16 * GNU General Public License for more details.
keir@22446 17 *
keir@22446 18 * You should have received a copy of the GNU General Public License
keir@22446 19 * along with this program; if not, write to the Free Software
keir@22446 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
keir@22446 21 */
keir@22446 22
keir@22446 23 #include <xen/preempt.h>
keir@22446 24
keir@22446 25 DEFINE_PER_CPU(unsigned int, __preempt_count);