• J
    cpuUpdate() for updating guest CPU according to host CPU · 661ae104
    Jiri Denemark 提交于
    Useful mainly for migration. cpuUpdate changes guest CPU requirements in
    the following way:
    
    - match == "strict" || match == "exact"
        - optional features which are supported by host CPU are changed into
          required features
        - optional features which are not supported by host CPU are disabled
        - all other features remain untouched
    - match == "minimum"
        - match is changed into "exact"
        - optional features and all features not mentioned in guest CPU
          specification which are supported by host CPU become required
          features
        - other optional features are disabled
        - all other features remain untouched
    
    This ensures that no feature will suddenly disappear from the guest
    after migration.
    661ae104
cpu_x86.c 33.3 KB