Re: [PATCH] drivers/xen/hypervisor: Expose VM SIF flags to userspace

From: Per Bilse (3P)
Date: Tue Nov 29 2022 - 11:52:38 EST


On 29/11/2022 16:29, Boris Ostrovsky wrote:
> Why not simply show unprocessed xen_start_flags as a hex value?

Providing a text representation follows what is currently the case:

[root@lcy2-dt128 /proc/xen]# cat capabilities
control_d
[root@lcy2-dt128 /proc/xen]#

The migrated form would yield:

root@dt90:/sys/hypervisor/properties# cat flags
privileged initdomain mod_start_pfn
root@dt90:/sys/hypervisor/properties#

There is good precedence for being more helpful than printing hex
values, but I have no objections if there is consensus that a hex value
is better.

Best,

-- Per