x86: Rename VPD (XCC)
[akaros.git] / kern / include / ros / vmm.h
1 /* Copyright (c) 2015 Google Inc.
2  * Barret Rhoden <brho@cs.berkeley.edu>
3  * See LICENSE for details.
4  *
5  * Arch-independent VMM kernel headers */
6
7 #pragma once
8
9 #include <ros/arch/vmm.h>
10
11 /* VMCALL FUNCTION NUMBERS */
12 #define VMCALL_PRINTC           0x1
13 #define VMCALL_SMPBOOT          0x2
14
15 #define VMM_CTL_GET_EXITS               1
16 #define VMM_CTL_SET_EXITS               2
17 #define VMM_CTL_GET_FLAGS               3
18 #define VMM_CTL_SET_FLAGS               4
19
20 #define VMM_CTL_EXIT_HALT               (1 << 0)
21 #define VMM_CTL_EXIT_PAUSE              (1 << 1)
22 #define VMM_CTL_ALL_EXITS               ((1 << 2) - 1)
23
24 #define VMM_CTL_FL_KERN_PRINTC          (1 << 0)
25 #define VMM_CTL_ALL_FLAGS                       (VMM_CTL_FL_KERN_PRINTC)