kvm: support -overcommit cpu-pm=on|off
commit6f131f13e68d648a8e4f083c667ab1acd88ce4cd
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 22 Jun 2018 19:22:05 +0000 (22 22:22 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jun 2018 17:05:37 +0000 (28 19:05 +0200)
tree16fd8a1a96b1bb1f4f0cdf82c81607c1a271acad
parent0c8465440d50c18a7bb13d0a866748f0593e193a
kvm: support -overcommit cpu-pm=on|off

With this flag, kvm allows guest to control host CPU power state.  This
increases latency for other processes using same host CPU in an
unpredictable way, but if decreases idle entry/exit times for the
running VCPU, so to use it QEMU needs a hint about whether host CPU is
overcommitted, hence the flag name.

Follow-up patches will expose this capability to guest
(using mwait leaf).

Based on a patch by Wanpeng Li <kernellwp@gmail.com> .

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20180622192148.178309-2-mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/sysemu/sysemu.h
qemu-options.hx
target/i386/kvm.c
vl.c