Skip to content
  • Michael Mueller's avatar
    dced7eec
    s390x/cpumodel: generate CPU feature lists for CPU models · dced7eec
    Michael Mueller authored
    
    
    This patch introduces the helper "gen-features" which allows to generate
    feature list definitions at compile time. Its flexibility is better and the
    error-proneness is lower when compared to static programming time added
    statements.
    
    The helper includes "target-s390x/cpu_features.h" to be able to use named
    facility bits instead of numbers. The generated defines will be used for
    the definition of CPU models.
    
    We generate feature lists for each HW generation and GA for EC models. BC
    models are always based on a EC version and have no separate definitions.
    
    Base features: Features we expect to be always available in sane setups.
    Migration safe - will never change. Can be seen as "minimum features
    required for a CPU model".
    
    Default features: Features we expect to be stable and around in latest
    setups (e.g. having KVM support) - not migration safe.
    
    Max features: All supported features that are theoretically allowed for a
    CPU model. Exceeding these features could otherwise produce problems with
    IBC (instruction blocking controls) in KVM.
    
    Acked-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
    Signed-off-by: default avatarMichael Mueller <mimu@linux.vnet.ibm.com>
    Signed-off-by: default avatarDavid Hildenbrand <dahi@linux.vnet.ibm.com>
    [generate base, default and models. renaming and cleanup]
    Message-Id: <20160905085244.99980-6-dahi@linux.vnet.ibm.com>
    Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
    dced7eec
    s390x/cpumodel: generate CPU feature lists for CPU models
    Michael Mueller authored
    
    
    This patch introduces the helper "gen-features" which allows to generate
    feature list definitions at compile time. Its flexibility is better and the
    error-proneness is lower when compared to static programming time added
    statements.
    
    The helper includes "target-s390x/cpu_features.h" to be able to use named
    facility bits instead of numbers. The generated defines will be used for
    the definition of CPU models.
    
    We generate feature lists for each HW generation and GA for EC models. BC
    models are always based on a EC version and have no separate definitions.
    
    Base features: Features we expect to be always available in sane setups.
    Migration safe - will never change. Can be seen as "minimum features
    required for a CPU model".
    
    Default features: Features we expect to be stable and around in latest
    setups (e.g. having KVM support) - not migration safe.
    
    Max features: All supported features that are theoretically allowed for a
    CPU model. Exceeding these features could otherwise produce problems with
    IBC (instruction blocking controls) in KVM.
    
    Acked-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
    Signed-off-by: default avatarMichael Mueller <mimu@linux.vnet.ibm.com>
    Signed-off-by: default avatarDavid Hildenbrand <dahi@linux.vnet.ibm.com>
    [generate base, default and models. renaming and cleanup]
    Message-Id: <20160905085244.99980-6-dahi@linux.vnet.ibm.com>
    Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Loading