aboutsummaryrefslogtreecommitdiff
path: root/lib/libvmmapi/vmmapi.c
diff options
context:
space:
mode:
authorNeel Natu <neel@FreeBSD.org>2013-02-11 20:36:07 +0000
committerNeel Natu <neel@FreeBSD.org>2013-02-11 20:36:07 +0000
commit485b3300cc125bbeac0632191a0c58268cf82b62 (patch)
tree08d417f2f979935bc451028d59ec525a42e021c6 /lib/libvmmapi/vmmapi.c
parentf667ff300d0be1dae325385635e2896d9ccb4ac8 (diff)
Notes
Diffstat (limited to 'lib/libvmmapi/vmmapi.c')
-rw-r--r--lib/libvmmapi/vmmapi.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c
index cfb42d09605ec..6a368b36db49d 100644
--- a/lib/libvmmapi/vmmapi.c
+++ b/lib/libvmmapi/vmmapi.c
@@ -250,34 +250,6 @@ vm_get_register(struct vmctx *ctx, int vcpu, int reg, uint64_t *ret_val)
}
int
-vm_get_pinning(struct vmctx *ctx, int vcpu, int *host_cpuid)
-{
- int error;
- struct vm_pin vmpin;
-
- bzero(&vmpin, sizeof(vmpin));
- vmpin.vm_cpuid = vcpu;
-
- error = ioctl(ctx->fd, VM_GET_PINNING, &vmpin);
- *host_cpuid = vmpin.host_cpuid;
- return (error);
-}
-
-int
-vm_set_pinning(struct vmctx *ctx, int vcpu, int host_cpuid)
-{
- int error;
- struct vm_pin vmpin;
-
- bzero(&vmpin, sizeof(vmpin));
- vmpin.vm_cpuid = vcpu;
- vmpin.host_cpuid = host_cpuid;
-
- error = ioctl(ctx->fd, VM_SET_PINNING, &vmpin);
- return (error);
-}
-
-int
vm_run(struct vmctx *ctx, int vcpu, uint64_t rip, struct vm_exit *vmexit)
{
int error;