2 * QEMU Hypervisor.framework (HVF) support
4 * Copyright 2017 Google Inc
6 * Adapted from target-i386/hax-i386.h:
7 * Copyright (c) 2011 Intel Corporation
9 * Jiang Yunhong<yunhong.jiang@intel.com>
11 * This work is licensed under the terms of the GNU GPL, version 2 or later.
12 * See the COPYING file in the top-level directory.
19 #include "sysemu/hvf.h"
23 #define HVF_MAX_VCPU 0x10
24 #define MAX_VM_ID 0x40
25 #define MAX_VCPU_ID 0x40
27 extern struct hvf_state hvf_global
;
31 struct hvf_vcpu_state
*vcpus
[HVF_MAX_VCPU
];
41 /* Functions exported to host specific mode */
43 /* Host specific functions */
44 int hvf_inject_interrupt(CPUArchState
*env
, int vector
);
45 int hvf_vcpu_run(struct hvf_vcpu_state
*vcpu
);