/* context commands */
#define VCMD_ctx_create_v0 VC_CMD(VPROC, 1, 0)
-#define VCMD_ctx_create VC_CMD(VPROC, 1, 1)
+#define VCMD_ctx_create_v1 VC_CMD(VPROC, 1, 1)
+#define VCMD_ctx_create VC_CMD(VPROC, 1, 2)
struct vcmd_ctx_create {
uint64_t flagword;
};
#define VCMD_ctx_migrate_v0 VC_CMD(PROCMIG, 1, 0)
-#define VCMD_ctx_migrate VC_CMD(PROCMIG, 1, 1)
+#define VCMD_ctx_migrate_v1 VC_CMD(PROCMIG, 1, 1)
+#define VCMD_ctx_migrate VC_CMD(PROCMIG, 1, 2)
struct vcmd_ctx_migrate {
uint64_t flagword;
/* bcaps commands */
#define VCMD_get_bcaps VC_CMD(FLAGS, 9, 0)
-#define VCMD_set_bcaps VC_CMD(FLAGS,10, 0)
+#define VCMD_set_bcaps VC_CMD(FLAGS, 10, 0)
struct vcmd_bcaps {
uint64_t bcaps;
uint64_t bmask;
};
+
+
+/* OOM badness */
+
+#define VCMD_get_badness VC_CMD(MEMCTRL, 5, 0)
+#define VCMD_set_badness VC_CMD(MEMCTRL, 6, 0)
+
+struct vcmd_badness_v0 {
+ int64_t bias;
+};
+
#endif /* _VX_CONTEXT_CMD_H */