• D
    disable vCPU pinning with TCG mode · 65686e5a
    Daniel P. Berrange 提交于
    Although QMP returns info about vCPU threads in TCG mode, the
    data it returns is mostly lies. Only the first vCPU has a valid
    thread_id returned. The thread_id given for the other vCPUs is
    in fact the main emulator thread. All vCPUs actually run under
    the same thread in TCG mode.
    
    Our vCPU pinning code is not at all able to cope with this
    so if you try to set CPU affinity per-vCPU you end up with
    wierd errors
    
    error: Failed to start domain instance-00000007
    error: cannot set CPU affinity on process 24365: Invalid argument
    
    Since few people will care about the performance of TCG with
    strict CPU pinning, lets just disable that for now, so we get
    a clear error message
    
    error: Failed to start domain instance-00000007
    error: Requested operation is not valid: cpu affinity is not supported
    65686e5a
qemu_process.c 175.9 KB