From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751444AbdBWRnB (ORCPT ); Thu, 23 Feb 2017 12:43:01 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:36344 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751223AbdBWRmq (ORCPT ); Thu, 23 Feb 2017 12:42:46 -0500 Subject: Re: [patch 0/3] KVM CPU frequency change hypercalls To: Radim Krcmar , Marcelo Tosatti References: <20170202174755.946578704@redhat.com> <20170203164349.GA5582@potion> <20170203181405.GA1869@amt.cnet> <20170203190930.GD15128@potion> Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Viresh Kumar From: Paolo Bonzini Message-ID: <5db0e1a1-2eaf-fe77-3e15-7b2ef842d255@redhat.com> Date: Thu, 23 Feb 2017 18:35:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170203190930.GD15128@potion> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/02/2017 20:09, Radim Krcmar wrote: > One reason why we have a kernel/userspace split is to allow sharing of > CPU time. Each application then its state that the kernel keeps track > of and saves/restores while time-multiplexing. > > Our frequency scaling interface goes against the idea -- guest kernel > cannot schedule multiple userspaces on the same vCPU, because they could > conflict by overriding frequency. > > i.e. our feature implies userspace tasks pinned to isolated vCPUs. That's bad. This feature is broken by design unless it does proper save/restore across preemption. You don't need a hypercall. Add a cpufreq driver in DPDK that doesn't use sysfs, and connect it to a daemon in the host through virtio-serial or vsock. Paolo