From: benami@il.ibm.com Subject: KVM: PCIPT: temporary fix for pio (userspace part) Date: Tue, 17 Jun 2008 22:25:13 +0300 Message-ID: <1213730714-10959-1-git-send-email-benami@il.ibm.com> References: <1213729526-10410-5-git-send-email-benami@il.ibm.com> Cc: weidong.han@intel.com, muli@il.ibm.com, raharper@us.ibm.com, kvm@vger.kernel.org To: amit.shah@qumranet.com Return-path: Received: from mtagate8.uk.ibm.com ([195.212.29.141]:58621 "EHLO mtagate8.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758864AbYFQTZS (ORCPT ); Tue, 17 Jun 2008 15:25:18 -0400 Received: from d06nrmr1407.portsmouth.uk.ibm.com (d06nrmr1407.portsmouth.uk.ibm.com [9.149.38.185]) by mtagate8.uk.ibm.com (8.13.8/8.13.8) with ESMTP id m5HJPGAM498110 for ; Tue, 17 Jun 2008 19:25:16 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m5HJPGWL2019534 for ; Tue, 17 Jun 2008 20:25:16 +0100 Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m5HJPFNw009418 for ; Tue, 17 Jun 2008 20:25:16 +0100 In-Reply-To: <1213729526-10410-5-git-send-email-benami@il.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: PIO for passthrough does not work properly since the permissions are not set, it is not enough to call iopl at init time. This temporary patch calls iopl for every pio request. A better solution would be have a per thread iopl. An alternative approach would be to use sysfs for pio. In the mean time, if you want to use the vtd branch, then you probably need this patch.