Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1044714ybz; Fri, 1 May 2020 13:20:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLIleeCq0SJkslTq8bDFsmF/bIVwVmkrk5/gO+81agYJlYO1c9NmpiAVz0bFoIw9OlMam1K X-Received: by 2002:a50:eb8b:: with SMTP id y11mr5097513edr.229.1588364428010; Fri, 01 May 2020 13:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588364428; cv=none; d=google.com; s=arc-20160816; b=tsxJMt+fh7aOU15qv8WXdl+jBNxERME3+HFIhtDynLjSA6oH8sZq1AWPMa4aoCqtfg 7KjsFrAvjb/IbAplMyfRW84e6HCEw8O4X/4eDPejgv0uHJo0BgTOaP7Y5Wg0JrZX9AhD cL4ktzSsO0P7kyT5vaGs3IuEC15DvYZ5M11tv8BGxrmPmhTtiOCLkUsT+o6IklYyQLEZ uyR6lk6f+F22mwSkVEOILm0ilcDbCYgISdqpV4FnipdoZzIa6XP9QyGyoTiLoGwM7Mn9 0mh5GzoAPEX1zpm8pEFj+73KC6mZGda8LECjdyZuig1bkUTXqatPsM8PYT0sSaSDuLUi fVqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=4Uc6Xb+8rwAnMz7PW6a3q35FbUiP0miiFQLjpg1K8k8=; b=V1R3TmPlo0XE1KIBqmTF/aYzbOJ2GzomgUKP0fi5hpl2VRquyL+hokJWNFUvpCttT2 AuuLPuwRvqoIfO6kPLYApZGcctxCt6iX7C7ayOyDkySDrRMLCAjv4JVc7MyhK28Y5Xm0 kbAYATq+RSuha4dd69PZQSKjZcLNR5rL1SBYXUaW5WyAT5gEpzl+J9XcJU3YZlLU9toZ J3Ga3wbreZypK7zW1MI71l8OdK7umX/RoLWJg2bafuZdU/w3wchNiqzO/PN27L+IuQHW SiEonrQpqk3vws4MSRhgso3VDUkbbEbsSyYUq4TmEsOlOJBbt7g+Mffi3kawr0Lm314y uK0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rv13si2400363ejb.115.2020.05.01.13.20.04; Fri, 01 May 2020 13:20:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726473AbgEAUSh (ORCPT + 99 others); Fri, 1 May 2020 16:18:37 -0400 Received: from mga11.intel.com ([192.55.52.93]:43681 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbgEAUSh (ORCPT ); Fri, 1 May 2020 16:18:37 -0400 IronPort-SDR: KgY3oqt3PPtapMb+U91UqjGB7/Uyg/o+zT7SLAsVphlnG1NoxZlvzAujic8jclOvWAg93YHq0b Ce624zheFcww== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 13:18:37 -0700 IronPort-SDR: hxrraMGFZU4NpRZqTnivv/G+Fa1fPCvrMCuNhSyVoJ8gQiqMJ40ejpUf6SaLfWFZudKbORQWTZ 74TfWVfb4lxg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,340,1583222400"; d="scan'208";a="460016158" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.152]) by fmsmga005.fm.intel.com with ESMTP; 01 May 2020 13:18:36 -0700 Date: Fri, 1 May 2020 13:18:36 -0700 From: Sean Christopherson To: Joshua Abraham Cc: pbonzini@redhat.com, corbet@lwn.net, kvm@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: kvm: Fix KVM_KVMCLOCK_CTRL API doc Message-ID: <20200501201836.GB4760@linux.intel.com> References: <20200501193404.GA19745@josh-ZenBook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200501193404.GA19745@josh-ZenBook> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 01, 2020 at 03:34:06PM -0400, Joshua Abraham wrote: > The KVM_KVMCLOCK_CTRL ioctl signals to supported KVM guests > that the hypervisor has paused it. This updates the documentation > to reflect that the guest, not the host is notified by this API. No, the current documentation is correct. It's probably not as clear as it could be, but it's accurate as written. More below. > Signed-off-by: Joshua Abraham > --- > Documentation/virt/kvm/api.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst > index efbbe570aa9b..06a4d9bfc6e5 100644 > --- a/Documentation/virt/kvm/api.rst > +++ b/Documentation/virt/kvm/api.rst > @@ -2572,7 +2572,7 @@ list in 4.68. > :Parameters: None > :Returns: 0 on success, -1 on error > > -This signals to the host kernel that the specified guest is being paused by > +This signals to the guest kernel that the specified guest is being paused by > userspace. The ioctl() signals to the host kernel that host userspace has paused the vCPU. > The host will set a flag in the pvclock structure that is checked The host kernel, i.e. KVM, then takes that information and forwards it to the guest kernel via the aforementioned pvclock flag. The proposed change would imply the ioctl() is somehow getting routed directly to the guest, which is wrong. > from the soft lockup watchdog. The flag is part of the pvclock structure that > is shared between guest and host, specifically the second bit of the flags > -- > 2.17.1 >