summaryrefslogtreecommitdiff
path: root/kvm.c
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-06-14 11:51:45 -0700
committerRobert Mustacchi <rm@joyent.com>2011-06-14 11:51:45 -0700
commitc5def9b5aa313070f8f19c2f0fb78838a2ed2867 (patch)
tree14866d6a053c6c1b0d4f52185c38311a6ad1758d /kvm.c
parent405ba1943a8a3f331b39c8ca59d2f0e9571dd56a (diff)
downloadillumos-kvm-c5def9b5aa313070f8f19c2f0fb78838a2ed2867.tar.gz
HVM-370 Cleanup SET_TSS ioctl
Diffstat (limited to 'kvm.c')
-rw-r--r--kvm.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/kvm.c b/kvm.c
index 4e54432..0951287 100644
--- a/kvm.c
+++ b/kvm.c
@@ -2310,20 +2310,13 @@ kvm_ioctl(dev_t dev, int cmd, intptr_t arg, int md, cred_t *cr, int *rv)
}
case KVM_SET_TSS_ADDR: {
- struct kvm_tss kvm_tss;
- struct kvm *kvmp;
- if (copyin(argp, &kvm_tss, sizeof (kvm_tss)) != 0) {
- rval = EFAULT;
- break;
- }
-
- if ((kvmp = ksp->kds_kvmp) == NULL) {
+ if (ksp->kds_kvmp == NULL) {
rval = EINVAL;
break;
}
- rval = kvm_vm_ioctl_set_tss_addr(kvmp, (caddr_t)kvm_tss.addr);
+ rval = kvm_vm_ioctl_set_tss_addr(ksp->kds_kvmp, arg);
break;
}