On 5/8/25 5:04 PM, Zhao Liu wrote:
[3] My colleague Alan noticed what appears to be a related problem: if
we launch a guest with '-cpu <model>,-ht --enable-kvm', which means
explicitly removing the ht flag, but the guest still reports HT(cat
/proc/cpuinfo in linux guest) enabled. In other words, under KVM the ht
bit seems to be forced on even when the user tries to disable it.
XiaoYao reminded me that issue [3] stems from a different patch. Please
ignore it for now—I'll start a separate thread to discuss that one
independently.
I haven't found any other thread :-).
Please refer to
https://lore.kernel.org/all/db6ae3bb-f4e5-4719-9beb-623fcff56...@zhaoxin.com/.
By the way, just curious, in what cases do you need to disbale the HT
flag? "-smp 4" means 4 cores with 1 thread per core, and is it not
enough?
As for the “-ht” behavior, I'm also unsure whether this should be fixed
or not - one possible consideration is whether “-ht” would be useful.
I wasn't trying to target any specific use case, using "-ht" was simply a way to
check how the ht feature behaves under both KVM and TCG. There's no special
workload behind it; I just wanted to confirm that the flag is respected (or not)
in each mode.