qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: comments on: get page size in device init


From: Michael S. Tsirkin
Subject: [Qemu-devel] Re: comments on: get page size in device init
Date: Wed, 23 Sep 2009 21:40:41 +0300
User-agent: Mutt/1.5.19 (2009-01-05)

On Wed, Sep 23, 2009 at 01:02:56PM -0500, Anthony Liguori wrote:
> Blue Swirl wrote:
>> On Wed, Sep 23, 2009 at 3:58 PM, Michael S. Tsirkin <address@hidden> wrote:
>>   
>>>>     Compile msix only once
>>>>
>>>>     Get page size in device init.
>>>>
>>>>     Signed-off-by: Blue Swirl <address@hidden>
>>>>       
>>> What was the motivation for the page size change?
>>>     
>>
>> "Compile msix only once"
>>
>>   
>>> It seems the only user passes TARGET_PAGE_SIZE anyway,
>>> using a constant seems clearer and probably generates
>>> less code. No?
>>>     
>>
>> Yes, but then the code would depend on TARGET_PAGE_SIZE, making it
>> impossible to compile the code only once.
>>   
>
> We could probably get away with doing
>
> #define TARGET_PAGE_SIZE target_get_page_size()
>
> And take care of a big chunk of this without passing page size  
> parameters around.


Sounds good.

> Regards,
>
> Anthony Liguori




reply via email to

[Prev in Thread] Current Thread [Next in Thread]