From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aneesh Kumar K.V" Date: Mon, 26 Aug 2013 12:26:01 +0000 Subject: Re: [PATCH] powerpc/kvm: Handle the boundary condition correctly Message-Id: <87k3j8ejjq.fsf@linux.vnet.ibm.com> List-Id: 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> <87wqn9dtbi.fsf@linux.vnet.ibm.com> <932EC6E7-BC15-474F-9E8B-4321B2126BE4@suse.de> In-Reply-To: <932EC6E7-BC15-474F-9E8B-4321B2126BE4@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alexander Graf Cc: paulus@samba.org, linuxppc-dev@lists.ozlabs.org, kvm-ppc@vger.kernel.org Alexander Graf writes: > On 26.08.2013, at 05:28, Aneesh Kumar K.V wrote: > >> 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. > > But we need to do that regardless, because newer QEMU needs to be able to run on older kernels, no? > yes. So use space will have to pass an array of size 3. But that should not prevent us from fixing this right ? -aneesh