Re: [RFC PATCH v2 8/8] xen/sysfs: Honor cached xen_features instead

From: Juergen Gross

Date: Wed Nov 11 2026 - 02:42:34 EST


On 16.10.26 19:06, Teddy Astie wrote:
Currently, /sys/hypervisor/properties/features queries the xen
features from the hypervisor even if it doesn't match what Linux
uses itself (i.e what were the features at the time of the boot).

For consistency when migrations are involved, report cached
xen_features instead, that also avoids making hypercalls to query
this information.

Signed-off-by: Teddy Astie <teddy.astie@xxxxxxxxxx>
---
CC: Juergen Gross <jgross@xxxxxxxx>
CC: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
CC: Stefano Stabellini <sstabellini@xxxxxxxxxx>
CC: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
CC: x86@xxxxxxxxxx
CC: linux-kernel@xxxxxxxxxxxxxxx

I'm not sure what /sys/hypervisor/features is expected to show between
what Linux considers (proposal) and what the hypervisor tells (current
behavior).

I think it should be the former, so:

Reviewed-by: Juergen Gross <jgross@xxxxxxxx>


Juergen

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature