]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
i386/cpu: make -cpu host support monitor/mwait
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 22 Jun 2018 19:22:05 +0000 (22:22 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Jun 2018 11:02:47 +0000 (13:02 +0200)
commit2266d44311321a833d569cd4deb46cca6021d0e7
tree954cac47b13360c4ebafbc3f7cb2c4c2c31f9672
parent6f131f13e68d648a8e4f083c667ab1acd88ce4cd
i386/cpu: make -cpu host support monitor/mwait

When guest CPU PM is enabled, and with -cpu host, expose the host CPU
MWAIT leaf in the CPUID so guest can make good PM decisions.

Note: the result is 100% CPU utilization reported by host as host
no longer knows that the CPU is halted.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20180622192148.178309-3-mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/tcg/user-exec-stub.c
target/i386/cpu.c
target/i386/cpu.h
target/i386/kvm.c