loader: remove shouting from ORB's variable name
[hvf.git] / cp / guest / system.c
blobfa5d18f087ed0e6a10fdc82c099e49bf304d47f4
1 /*
2 * (C) Copyright 2007-2011 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4 * This file is released under the GPLv2. See the COPYING file for more
5 * details.
6 */
8 #include <vcpu.h>
10 int guest_begin(struct virt_sys *sys)
12 switch(sys->cpu->state) {
13 case GUEST_STOPPED:
14 case GUEST_OPERATING:
15 sys->cpu->state = GUEST_OPERATING;
16 return 0;
17 default:
18 return -EINVAL;
22 int guest_stop(struct virt_sys *sys)
24 switch(sys->cpu->state) {
25 case GUEST_STOPPED:
26 case GUEST_OPERATING:
27 sys->cpu->state = GUEST_STOPPED;
28 return 0;
29 default:
30 return -EINVAL;