[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 1/2] kvm: support -realtime cpu-pm=on|off
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [PATCH v2 1/2] kvm: support -realtime cpu-pm=on|off |
Date: |
Wed, 13 Jun 2018 17:35:52 -0300 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
On Tue, Jun 12, 2018 at 09:47:11PM +0300, Michael S. Tsirkin wrote:
> 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.
>
> Follow-up patches will expose this capability to guest
> (using mwait leaf).
>
> Based on a patch by Wanpeng Li <address@hidden> .
>
> Signed-off-by: Michael S. Tsirkin <address@hidden>
The interface makes sense to me, but:
> +extern bool enable_cpu_pm;
Why do we need a global variable if initialization code can call
qemu_opt_get_bool() directly?
--
Eduardo