From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD461C10F0E for ; Thu, 18 Apr 2019 14:46:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AAD1E206B6 for ; Thu, 18 Apr 2019 14:46:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388277AbfDROqp (ORCPT ); Thu, 18 Apr 2019 10:46:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40886 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388070AbfDROqp (ORCPT ); Thu, 18 Apr 2019 10:46:45 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7DAEA3099FD0; Thu, 18 Apr 2019 14:46:45 +0000 (UTC) Received: from gondolin (dhcp-192-187.str.redhat.com [10.33.192.187]) by smtp.corp.redhat.com (Postfix) with ESMTP id CC2E5600C2; Thu, 18 Apr 2019 14:46:40 +0000 (UTC) Date: Thu, 18 Apr 2019 16:46:38 +0200 From: Cornelia Huck To: Christian Borntraeger Cc: Janosch Frank , KVM , David Hildenbrand , Paolo Bonzini , Radim =?UTF-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH v2 2/2] KVM: s390: provide kvm_arch_no_poll function Message-ID: <20190418164638.2ef735e8.cohuck@redhat.com> In-Reply-To: <20190416180158.112309-3-borntraeger@de.ibm.com> References: <20190416180158.112309-1-borntraeger@de.ibm.com> <20190416180158.112309-3-borntraeger@de.ibm.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 18 Apr 2019 14:46:45 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Tue, 16 Apr 2019 20:01:58 +0200 Christian Borntraeger wrote: > We do track the current steal time of the host CPUs. Let us use > this value to disable halt polling if the steal time goes beyond > a configured value. > > Signed-off-by: Christian Borntraeger > Acked-by: Paolo Bonzini > --- > arch/s390/include/asm/kvm_host.h | 1 + > arch/s390/kvm/Kconfig | 1 + > arch/s390/kvm/kvm-s390.c | 17 +++++++++++++++++ > 3 files changed, 19 insertions(+) > > @@ -182,6 +183,11 @@ static int hpage; > module_param(hpage, int, 0444); > MODULE_PARM_DESC(hpage, "1m huge page backing support"); > > +/* maximum percentage of steal time for polling */ > +static u8 halt_poll_max_steal = 10; > +module_param(halt_poll_max_steal, byte, 0644); > +MODULE_PARM_DESC(hpage, "Maximum percentage of steal time to allow pollinh"); s/pollinh/polling/ > + > /* > * For now we handle at most 16 double words as this is what the s390 base > * kernel handles and stores in the prefix page. If we ever need to go beyond Reviewed-by: Cornelia Huck