summaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorGuo Chao <yan@linux.vnet.ibm.com>2012-11-02 10:33:22 (GMT)
committerMarcelo Tosatti <mtosatti@redhat.com>2012-11-14 00:14:29 (GMT)
commit951179ce86f5599e2dfb9de254056e91bd865f15 (patch)
tree7a1b76ee21eff48b8d759a7c06f54e2444d37fd7 /virt/kvm
parent18595411a7146330ec19adf0b9db8e6736c84a4e (diff)
downloadlinux-951179ce86f5599e2dfb9de254056e91bd865f15.tar.xz
KVM: x86: fix return value of kvm_vm_ioctl_set_tss_addr()
Return value of this function will be that of ioctl(). #include <stdio.h> #include <linux/kvm.h> int main () { int fd; fd = open ("/dev/kvm", 0); fd = ioctl (fd, KVM_CREATE_VM, 0); ioctl (fd, KVM_SET_TSS_ADDR, 0xfffff000); perror (""); return 0; } Output is "Operation not permitted". That's not what we want. Return -EINVAL in this case. Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions