Re: [libvirt] [PATCHv2 09/15] xml: use better types for memory values

2012-03-07 Thread Eric Blake
On 03/06/2012 09:34 AM, Peter Krempa wrote: On 03/06/2012 01:34 AM, Eric Blake wrote: Using 'unsigned long' for memory values is risky on 32-bit platforms, as a PAE guest can have more than 4GiB memory. Our API is (unfortunately) locked at 'unsigned long' and a scale of 1024, but the rest of

Re: [libvirt] [PATCHv2 09/15] xml: use better types for memory values

2012-03-06 Thread Peter Krempa
On 03/06/2012 01:34 AM, Eric Blake wrote: Using 'unsigned long' for memory values is risky on 32-bit platforms, as a PAE guest can have more than 4GiB memory. Our API is (unfortunately) locked at 'unsigned long' and a scale of 1024, but the rest of our system should consistently use 64-bit

[libvirt] [PATCHv2 09/15] xml: use better types for memory values

2012-03-05 Thread Eric Blake
Using 'unsigned long' for memory values is risky on 32-bit platforms, as a PAE guest can have more than 4GiB memory. Our API is (unfortunately) locked at 'unsigned long' and a scale of 1024, but the rest of our system should consistently use 64-bit values, especially since the previous patch