summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2012-09-24 19:32:24 +0000
committerneel <neel@FreeBSD.org>2012-09-24 19:32:24 +0000
commit34b672cc8af9ef3fbee45a3c9cc28a7e30c9ef16 (patch)
treeac2ec0b166d4669a6efec881955c5dfa87f2d6fe /sys/amd64/include
parentc0caea8c2fc75a9ca5f5a67dd11462ef6542afc2 (diff)
downloadFreeBSD-src-34b672cc8af9ef3fbee45a3c9cc28a7e30c9ef16.zip
FreeBSD-src-34b672cc8af9ef3fbee45a3c9cc28a7e30c9ef16.tar.gz
Stash the 'vm_exit' information in each 'struct vcpu'.
There is no functional change at this time but this paves the way for vm exit handler functions to easily modify the exit reason going forward.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/vmm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/vmm.h b/sys/amd64/include/vmm.h
index 1ad01c6..61faf56 100644
--- a/sys/amd64/include/vmm.h
+++ b/sys/amd64/include/vmm.h
@@ -43,8 +43,7 @@ struct vlapic;
typedef int (*vmm_init_func_t)(void);
typedef int (*vmm_cleanup_func_t)(void);
typedef void * (*vmi_init_func_t)(struct vm *vm); /* instance specific apis */
-typedef int (*vmi_run_func_t)(void *vmi, int vcpu, register_t rip,
- struct vm_exit *vmexit);
+typedef int (*vmi_run_func_t)(void *vmi, int vcpu, register_t rip);
typedef void (*vmi_cleanup_func_t)(void *vmi);
typedef int (*vmi_mmap_func_t)(void *vmi, vm_paddr_t gpa, vm_paddr_t hpa,
size_t length, vm_memattr_t attr,
@@ -112,6 +111,7 @@ int vm_get_capability(struct vm *vm, int vcpu, int type, int *val);
int vm_set_capability(struct vm *vm, int vcpu, int type, int val);
void vm_activate_cpu(struct vm *vm, int vcpu);
cpuset_t vm_active_cpus(struct vm *vm);
+struct vm_exit *vm_exitinfo(struct vm *vm, int vcpuid);
/*
* Return 1 if device indicated by bus/slot/func is supposed to be a
OpenPOWER on IntegriCloud