Question about heterogeneous VM live migration

Zhou Wang wangzhou1 at hisilicon.com
Wed Oct 15 19:00:07 PDT 2025


Hi,

We are now trying to do heterogeneous VM live migration among HiSilicon ARM
servers, seems there are problems about disabling a feature in guest.

For a feature, if we disable it in VM by configure related ID register field,
we should make it actually been disabled, e.g. configure related control
register in EL2 or trap EL0/EL1 access to EL2.

Possible problems:

1. Some features can not be disabled actually in EL0/EL1, e.g. FEAT_AFP,
   FEAT_RPRES, FEAT_CSSC, FEAT_LRCPC3...

   Disabling it by ID can not avoid a stupid user to directly use it without ID
   checking, which may bring subtle problem in heterogeneous VM live migration.

2. For some features, it can be trapped, but KVM does not support yet. Not sure
   if we should support them in future.

   E.g. If we disable ID of FEAT_HAFT for guest, we need configure
        HCRX_EL2.TCR2En to 0, so access to TCR2_EL1.HAFT will be trapped.

        For FEAT_PAN3, it instroduces EPAN to SCTLR_EL1,if we disable ID of
	FEAT_PAN3, we need make SCTLR_EL1 to trap by setting HFGRTR_EL2.SCTLR_EL1.

   Seems there are no trap setting in above cases. Just a quick look, maybe I
   miss something.

I am not sure if we already consider above problems, any help will be appreciated.

Best,
Zhou



More information about the linux-arm-kernel mailing list