[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling
From: |
Alexey Kardashevskiy |
Subject: |
Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling |
Date: |
Fri, 30 Aug 2013 16:15:37 +1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 |
On 08/29/2013 06:50 PM, Paolo Bonzini wrote:
> Il 29/08/2013 08:58, Alexey Kardashevskiy ha scritto:
>> On 08/29/2013 04:29 PM, Paolo Bonzini wrote:
>>> Il 29/08/2013 04:26, Alexey Kardashevskiy ha scritto:
>>>>
>>>> Right. I was planning to add my IOMMU stuff right before calculating @end.
>>>
>>> But then the non-IOMMU stuff can just use int128_get64, no? So even if
>>> this patch simply uses int128_get64, it is still a suitable basis for
>>> adding IOMMU stuff.
>>
>> Suitable but ugly. What if before calling int128_get64, I test
>> section->size if it is <2^64 and only then do RAM part of this function?
>
> What if you just merge the two series together?
It will still be a function which can accept sections bigger than 2^64 and
theoretically call int128_get64() and assert. I would think that every time
when anyone calls int128_get64(), the value should be checked for <2^64. It
is like division by zero :)
--
Alexey
- [Qemu-devel] [PATCH v3 1/3] int128: add int128_exts64(), (continued)
- [Qemu-devel] [PATCH v3 1/3] int128: add int128_exts64(), Alexey Kardashevskiy, 2013/08/22
- [Qemu-devel] [PATCH v3 2/3] vfio: Fix debug output for int128 values, Alexey Kardashevskiy, 2013/08/22
- [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling, Alexey Kardashevskiy, 2013/08/22
- Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling, Alex Williamson, 2013/08/28
- Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling, Alexey Kardashevskiy, 2013/08/28
- Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling, Alex Williamson, 2013/08/28
- Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling, Alexey Kardashevskiy, 2013/08/28
- Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling, Paolo Bonzini, 2013/08/29
- Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling, Alexey Kardashevskiy, 2013/08/29
- Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling, Paolo Bonzini, 2013/08/29
- Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling,
Alexey Kardashevskiy <=
- Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling, Paolo Bonzini, 2013/08/30
- Re: [Qemu-devel] [PATCH v3 3/3] vfio: Fix 128 bit handling, Alexey Kardashevskiy, 2013/08/30
Re: [Qemu-devel] [PATCH v3 0/3] vfio: fixes for better support for 128 bit memory section sizes, Alexey Kardashevskiy, 2013/08/28