From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e28smtp06.in.ibm.com (e28smtp06.in.ibm.com [122.248.162.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e28smtp06.in.ibm.com", Issuer "GeoTrust SSL CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 646C62C00A4 for ; Mon, 26 Aug 2013 13:28:25 +1000 (EST) Received: from /spool/local by e28smtp06.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 26 Aug 2013 08:48:40 +0530 Received: from d28relay05.in.ibm.com (d28relay05.in.ibm.com [9.184.220.62]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 1F32A1258043 for ; Mon, 26 Aug 2013 08:58:09 +0530 (IST) Received: from d28av02.in.ibm.com (d28av02.in.ibm.com [9.184.220.64]) by d28relay05.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r7Q3SGRV47513640 for ; Mon, 26 Aug 2013 08:58:16 +0530 Received: from d28av02.in.ibm.com (localhost [127.0.0.1]) by d28av02.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id r7Q3SICS022455 for ; Mon, 26 Aug 2013 08:58:19 +0530 From: "Aneesh Kumar K.V" To: Alexander Graf Subject: Re: [PATCH] powerpc/kvm: Handle the boundary condition correctly In-Reply-To: <527D8312-EA18-4962-9069-B54FA738F5FA@suse.de> References: <1377171479-25738-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1683D101-052D-4BEB-8ED1-6F32C6904850@suse.de> <87haeh13s2.fsf@linux.vnet.ibm.com> <527D8312-EA18-4962-9069-B54FA738F5FA@suse.de> Date: Mon, 26 Aug 2013 08:58:17 +0530 Message-ID: <87wqn9dtbi.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Cc: paulus@samba.org, linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Alexander Graf writes: > On 23.08.2013, at 04:31, Aneesh Kumar K.V wrote: > >> Alexander Graf writes: >> >>> On 22.08.2013, at 12:37, Aneesh Kumar K.V wrote: >>> >>>> From: "Aneesh Kumar K.V" >>> >>> Isn't this you? >> >> Yes. The patches are generated using git format-patch and sent by >> git send-email. That's how it always created patches for me. I am not sure if >> there is a config I can change to avoid having From: >> >>> >>>> >>>> We should be able to copy upto count bytes >>> >>> Why? >>> >> >> Without this we end up doing >> >> + struct kvm_get_htab_buf { >> + struct kvm_get_htab_header header; >> + /* >> + * Older kernel required one extra byte. >> + */ >> + unsigned long hpte[3]; >> + } hpte_buf; >> >> >> even though we are only looking for one hpte entry. > > Ok, please give me an example with real numbers and why it breaks. > >> >> http://mid.gmane.org/1376995766-16526-4-git-send-email-aneesh.kumar@linux.vnet.ibm.com >> Didn't quiet get what you are looking for. As explained before, we now need to pass an array with array size 3 even though we know we need to read only 2 entries because kernel doesn't loop correctly. -aneesh