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

Re: [RFC PATCH v6 08/43] altp2m: Rename p2m_*_altp2m functions and move declarations out of p2m.h





On Tue, Apr 21, 2026 at 10:07 AM Spangler, Rose <Rose.Spangler@xxxxxxxxxxxxxx> wrote:
>The following function names could reasonably drop the _altp2m suffix:
>
>
>> - p2m_get_altp2m -> altp2m_get_altp2m
>> - p2m_set_altp2m -> altp2m_set_altp2m
>> - p2m_reset_altp2m -> altp2m_reset_altp2m
>> - p2m_activate_altp2m -> altp2m_activate_altp2m

I used these names to try to differentiate between these functions, which
operate on a single altp2m view, and the altp2m_init / altp2m_teardown /
altp2m_flush functions, which operate on all the views of a domain. For example,
without the suffix I don't think it's necessarily immediately obvious that
"altp2m_activate" or "altp2m_reset" operate on only a single view.

How about you add the _view suffix for these? I think it would help disambiguate them and also read better than the current _altp2m suffix ones.

Tamas 

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.