• J
    qemu: Check non-migratable host CPU features · 385c1cc9
    Jiri Denemark 提交于
    CPU features which change their value from disabled to enabled between
    two calls to query-cpu-model-expansion (the first with no extra
    properties set and the second with 'migratable' property set to false)
    can be marked as enabled and non-migratable in qemuMonitorCPUModelInfo.
    
    Since the code consuming qemuMonitorCPUModelInfo currently ignores the
    migratable flag, this change is effectively changing the CPU model
    advertised in domain capabilities to contain all features (even those
    which block migration). And this matches what we do for QEMU older than
    2.9.0, when we detect all CPUID bits ourselves without asking QEMU.
    
    As a result of this change
    
        <cpu mode='host-model'>
          <feature name='invtsc' policy='require'/>
        </cpu>
    
    will work with all QEMU versions. Such CPU definition would be forbidden
    with QEMU >= 2.9.0 without this patch.
    Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
    385c1cc9
qemu_capabilities.c 170.4 KB