From: Jack Lange Date: Thu, 21 Apr 2011 21:31:46 +0000 (-0500) Subject: added barrier lock stubs X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=882a72ee6359eb1f28754827a7e41380f275d148;p=palacios.git added barrier lock stubs --- diff --git a/palacios/include/palacios/vmm_barrier.h b/palacios/include/palacios/vmm_barrier.h new file mode 100644 index 0000000..4513c09 --- /dev/null +++ b/palacios/include/palacios/vmm_barrier.h @@ -0,0 +1,42 @@ +/* + * This file is part of the Palacios Virtual Machine Monitor developed + * by the V3VEE Project with funding from the United States National + * Science Foundation and the Department of Energy. + * + * The V3VEE Project is a joint project between Northwestern University + * and the University of New Mexico. You can find out more at + * http://www.v3vee.org + * + * Copyright (c) 2011, Jack Lange + * Copyright (c) 2011, The V3VEE Project + * All rights reserved. + * + * Author: Jack Lange + * + * This is free software. You are permitted to use, + * redistribute, and modify it as specified in the file "V3VEE_LICENSE". + */ + +#ifndef __VMM_BARRIER_H__ +#define __VMM_BARRIER_H__ + +#ifdef __V3VEE__ + + +#include + +struct v3_barrier { + + + int active; // If 1, barrier is active, everyone must wait + // If 0, barrier is clear, can proceed + + v3_lock_t lock; +}; + + + + +#endif + +#endif diff --git a/palacios/src/palacios/vmm_barrier.c b/palacios/src/palacios/vmm_barrier.c new file mode 100644 index 0000000..1115ce0 --- /dev/null +++ b/palacios/src/palacios/vmm_barrier.c @@ -0,0 +1,21 @@ +/* + * This file is part of the Palacios Virtual Machine Monitor developed + * by the V3VEE Project with funding from the United States National + * Science Foundation and the Department of Energy. + * + * The V3VEE Project is a joint project between Northwestern University + * and the University of New Mexico. You can find out more at + * http://www.v3vee.org + * + * Copyright (c) 2011, Jack Lange + * Copyright (c) 2011, The V3VEE Project + * All rights reserved. + * + * Author: Jack Lange + * + * This is free software. You are permitted to use, + * redistribute, and modify it as specified in the file "V3VEE_LICENSE". + */ + + +#include