From: Guo Chao Date: Fri, 2 Nov 2012 10:33:22 +0000 (+0800) Subject: KVM: x86: fix return value of kvm_vm_ioctl_set_tss_addr() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~27^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=951179ce86f5599e2dfb9de254056e91bd865f15;p=pandora-kernel.git KVM: x86: fix return value of kvm_vm_ioctl_set_tss_addr() Return value of this function will be that of ioctl(). #include #include 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 Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed