Re: [PATCH v3 04/11] bsd-user: various helper routines for sysctl

2023-02-17 Thread Richard Henderson
On 2/16/23 13:33, Warner Losh wrote: cap_memory - Caps the memory to just below MAXINT scale_to_guest_pages - Account for difference in host / guest page size h2g_long_sat - converts a int64_t to a int32_t, saturating at max / min values h2g_ulong_sat - converts a uint64_t to a uint32_t, saturati

[PATCH v3 04/11] bsd-user: various helper routines for sysctl

2023-02-16 Thread Warner Losh
cap_memory - Caps the memory to just below MAXINT scale_to_guest_pages - Account for difference in host / guest page size h2g_long_sat - converts a int64_t to a int32_t, saturating at max / min values h2g_ulong_sat - converts a uint64_t to a uint32_t, saturating at max value Signed-off-by: Warner