Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1069027ybz; Fri, 1 May 2020 13:53:54 -0700 (PDT) X-Google-Smtp-Source: APiQypKFXM2wjbsHTrxeQEgT1u+jIGaoHAl9j9cABzU9h83Iz6ov77P5p+NCymzhsLcTk9hNkgrA X-Received: by 2002:aa7:d3d3:: with SMTP id o19mr5200059edr.76.1588366434368; Fri, 01 May 2020 13:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588366434; cv=none; d=google.com; s=arc-20160816; b=CPIlHzIo07Tqp9bJmkb3uEQj9yg6Bl5gZKBJIsOrRqcoTmrkJGnO4xE6W2SJ6AK+jK 4uFak+4x9xzHmgzYUybX9RCggeEreYXEaAkDJfB8mdvDaEqhHwm1WjbDING018fPKFRN pH9QLNUxAzSmgyC1RMWEwAX9mHnGDoFBj+KFfdLnbN847+Geuuix1+1s9mRqX6JK8XnE cVK/EgF7gSybORQ6QGUGexBfBoyZC31R4G2mlvz3d9E1hVlwfKgxqX8oBXQWH7OScbbU oDdS6RMI3bpJ4xAiRI3r6W8YGwbURdcuELSOJb0NrBpMGFee1hP2GZev4dXrCx7VkEub BHXQ== 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=YZGEAHaUzKRXfW+aTBGSotxMQJLdNmfmlL1d190Mk94=; b=N401vk6c8xv4kBQnlfdCrKrTBVBqOKN3eEx74KlXaciCttTof2YmFLvbsRQ4VBP2nn mWQNVNyJVpT0+Bse5w3c4GQq/6AoXngiP5luUDtDa7fBcPC1rCVaNmmSda1VUXdiOXqj zizspCxFwXKzY6/5VkseI5LN/y39K9DHebMFLNfgyxLHfDnHGSwHZxh5Lvj5G61J1Ykg HKmcXa/WCHHsdkH9Jwf1R6zEGQh5rmbUcerVfoWU6ZljxP1au9qCwQl4Cl7UM59g5NN8 IU9lUJToo72Igrh00wZM64G7ZNldFwxua8U9vAN7tkhd1A8dZYw4QdDmEiXkQuZg0s8V lI1A== 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 l64si2767874ede.431.2020.05.01.13.53.31; Fri, 01 May 2020 13:53:54 -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 S1727832AbgEAUvI (ORCPT + 99 others); Fri, 1 May 2020 16:51:08 -0400 Received: from mga14.intel.com ([192.55.52.115]:62859 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726318AbgEAUvH (ORCPT ); Fri, 1 May 2020 16:51:07 -0400 IronPort-SDR: bSxClE756ScLStAo+n1RStKKg4zuDonkxXjuFHxA+qNmUVu9HC+ocWB+zl44AqySwqC0qF+4aa MRYN/pX3pMrA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 13:51:07 -0700 IronPort-SDR: 1J/GPXbfbR06ENSBA5cKOfIP+HoDBTDNtWVKgkcDy0VaCyVd2fbRdGHO7+Enkk+vIIsRnE9kPi SJoi6L2XY71A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,341,1583222400"; d="scan'208";a="460375152" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.152]) by fmsmga006.fm.intel.com with ESMTP; 01 May 2020 13:51:06 -0700 Date: Fri, 1 May 2020 13:51:06 -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: <20200501205106.GE4760@linux.intel.com> References: <20200501193404.GA19745@josh-ZenBook> <20200501201836.GB4760@linux.intel.com> <20200501203234.GA20693@josh-ZenBook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200501203234.GA20693@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 04:32:34PM -0400, Joshua Abraham wrote: > On Fri, May 01, 2020 at 01:18:36PM -0700, Sean Christopherson wrote: > > No, the current documentation is correct. It's probably not as clear as > > it could be, but it's accurate as written. More below. > > > > 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. > > The rationale is that the guest is what consumes the pvclock flag, the > host kernel does nothing interesting (from the API caller perspective) > besides setting up the kvmclock update. The ioctl calls kvm_set_guest_paused() > which even has a comment saying "[it] indicates to the guest kernel that it has > been stopped by the hypervisor." I think that the docs first sentence should > clearly reflect that the API tells the guest that it has been paused. I don't disagree, but simply doing s/host/guest yields a misleading sentence and inconsistencies with the rest of the paragraph.