From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Date: Thu, 28 Nov 2013 17:57:19 +0000 Subject: Re: [PATCH -V2] powerpc: book3s: PR: Enable Little Endian PR guest Message-Id: <529783FF.7040505@suse.de> List-Id: References: <1385654018-18232-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> In-Reply-To: <1385654018-18232-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Aneesh Kumar K.V" Cc: benh@kernel.crashing.org, paulus@samba.org, linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org On 11/28/2013 04:53 PM, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > This patch make sure we inherit the LE bit correctly in different case > so that we can run Little Endian distro in PR mode IMHO H_SET_MODE should be handled in user space for most cases. We probably want an interface similar to the RTAS hypercall where user space can then tell the kernel to handle individual sub-commands inside the kernel after all for performance counters and other performance critical operations. But the normal mode of operation should be to bounce this into user space and have that one set LPCR then. Alex From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by ozlabs.org (Postfix) with ESMTP id CB06A2C00A3 for ; Fri, 29 Nov 2013 04:57:25 +1100 (EST) Message-ID: <529783FF.7040505@suse.de> Date: Thu, 28 Nov 2013 18:57:19 +0100 From: Alexander Graf MIME-Version: 1.0 To: "Aneesh Kumar K.V" Subject: Re: [PATCH -V2] powerpc: book3s: PR: Enable Little Endian PR guest References: <1385654018-18232-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> In-Reply-To: <1385654018-18232-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: paulus@samba.org, linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 11/28/2013 04:53 PM, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > This patch make sure we inherit the LE bit correctly in different case > so that we can run Little Endian distro in PR mode IMHO H_SET_MODE should be handled in user space for most cases. We probably want an interface similar to the RTAS hypercall where user space can then tell the kernel to handle individual sub-commands inside the kernel after all for performance counters and other performance critical operations. But the normal mode of operation should be to bounce this into user space and have that one set LPCR then. Alex From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Subject: Re: [PATCH -V2] powerpc: book3s: PR: Enable Little Endian PR guest Date: Thu, 28 Nov 2013 18:57:19 +0100 Message-ID: <529783FF.7040505@suse.de> References: <1385654018-18232-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: benh@kernel.crashing.org, paulus@samba.org, linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org To: "Aneesh Kumar K.V" Return-path: In-Reply-To: <1385654018-18232-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 11/28/2013 04:53 PM, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > This patch make sure we inherit the LE bit correctly in different case > so that we can run Little Endian distro in PR mode IMHO H_SET_MODE should be handled in user space for most cases. We probably want an interface similar to the RTAS hypercall where user space can then tell the kernel to handle individual sub-commands inside the kernel after all for performance counters and other performance critical operations. But the normal mode of operation should be to bounce this into user space and have that one set LPCR then. Alex