[Qemu-devel] [Bug 1703506] Re: SMT not supported by QEMU on AMD Ryzen CPU

2017-07-21 Thread Imatimba
I tried disabling the CmpLegacy bit directly on /target/i386/cpu.c deleting the If statement on "case 0x8001:" or changing "*ecx |= 1 << 1;" to "*ecx |= 0 << 1;" But it didn't work, the VM still sees 8 physical cores. I believe the HTT bit should be enabled by default I tried changing it to "

[Qemu-devel] [Bug 1703506] Re: SMT not supported by QEMU on AMD Ryzen CPU

2017-07-19 Thread Imatimba
Attached Ubuntu 17.04 guest logs. I wasn't able to run x86info as root. Only as regular user. Error shown: readEntry: Operation not permitted error reading 1KB from 0x3fffc00 There are a few bug reports about it but no workarounds. Seems to happen on vm's. So the output is missing a few sections.

[Qemu-devel] [Bug 1703506] Re: SMT not supported by QEMU on AMD Ryzen CPU

2017-07-19 Thread Imatimba
I can confirm the same behavior with a Ryzen 7 1700. Host Arch Linux x64 Kernel 4.11.9, Guest Windows 10 Pro. Running with -cpu host and -smp 8,sockets=1,cores=4,threads=2. Attached the logs of the host and results of the output of msinfo32 and "WMIC CPU Get NumberOfCores,NumberOfLogicalProcessors