Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1103504ybz; Fri, 1 May 2020 14:41:56 -0700 (PDT) X-Google-Smtp-Source: APiQypKqJBXgi1xtNlhqYhXBffQbMNWSAcsDyZaAAOk2NuA3DVgBF0enOHVmKeUtfjWwvJl+6C02 X-Received: by 2002:a17:906:48c:: with SMTP id f12mr5364631eja.93.1588369316567; Fri, 01 May 2020 14:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588369316; cv=none; d=google.com; s=arc-20160816; b=MYkX7UC5jxVmjhCb/O/ssvy3CZXbHGiVgzOH6x9ztGfHslPxDxrl/tdpzSIGgMBIJG 6pP8mA6MI3opbwkOM2ryKJfgStKytrHqBcOCwLZeYNmGe/wpJFvTNV50bIIdjpwQ3HFc OKANM+Wzrine1hpYEnBTTaeztUTypNLG86H0/w5r6YQa8tXfnO8L8qkrzL/oBKsDkQZP 7Yb3eIcSRS6/5QMrGZpxx7NW8XhZPD5yD7QK+N2y7mD2O6zK3HzF2vvRRNz3D0fRDcOD b1oIMomFacHtKfyeJO3saPCyemyjpbukUi0t7jq7n6oA/jt1vpCr1QDSUZcfiLKZn+nS zBfg== 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=f785jMUtDix7R/+9Gi/I4NEWrfILMFa1qXV+bzEmBmw=; b=0/dbwHW8I3t+l9PPbWtM631Aium0npOH4FOlkOFo1TH6UzfB+KHpNg4x/si+aRwYE0 rUMC89TwCAUnwceM4pir7/aNSygMpSWfqhmDH5iZqOA5Ap2hb5ygDizqc2WtymiJpyFl DaG1U9sPD6AaHtG4ELq/2NyOWHRtukv/KhPfM4KtPvc9cHJL6x9Yu270NwGlhDU0r4PJ pti9W6lMpZAig7CffzcJhNimf/0OQa1oq4VNeceSoymOLrmHd6+iYDlxPGIWe2xtYu4Y xZkNnV/0JTGX/GORVZySonhMN7MDk+GFGCjeLyjv65px2lGJvw6jiC/QRircnHy/VztS 78IA== 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 k2si2388824ejv.324.2020.05.01.14.41.33; Fri, 01 May 2020 14:41:56 -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 S1726862AbgEAViF (ORCPT + 99 others); Fri, 1 May 2020 17:38:05 -0400 Received: from mga05.intel.com ([192.55.52.43]:4924 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbgEAViE (ORCPT ); Fri, 1 May 2020 17:38:04 -0400 IronPort-SDR: eiAEu5y7Kad6DH5DEtqlnqNsUXLykTAXEUCZKxypEvvSg36YDT3WPFGpxcpH3SGoEXWxF9aGMH XnnHZduGftZw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 14:38:03 -0700 IronPort-SDR: RRD85nzjzmo7I/0Q2wOa3LAHg0d0qYdHv1HBEOFQtPPYIVP0MYmIaWaVCmK02RnP/06m34eUS1 LwWWLerkMiLQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,341,1583222400"; d="scan'208";a="405857296" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.152]) by orsmga004.jf.intel.com with ESMTP; 01 May 2020 14:38:03 -0700 Date: Fri, 1 May 2020 14:38:03 -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: <20200501213803.GF4760@linux.intel.com> References: <20200501193404.GA19745@josh-ZenBook> <20200501201836.GB4760@linux.intel.com> <20200501203234.GA20693@josh-ZenBook> <20200501205106.GE4760@linux.intel.com> <20200501211040.GA22118@josh-ZenBook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200501211040.GA22118@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 05:10:40PM -0400, Joshua Abraham wrote: > On Fri, May 01, 2020 at 01:51:06PM -0700, Sean Christopherson wrote: > > I don't disagree, but simply doing s/host/guest yields a misleading > > sentence and inconsistencies with the rest of the paragraph. > > I see your point. Would this wording be clearer: > > "This ioctl sets a flag accessible to the guest indicating that it has been > paused from the host userspace. Ya. Minor nit, probably worth clarifying that 'it' refers to the vCPU, e.g. This ioctl sets a flag accessible to the guest indicating that the specified vCPU has been paused by the host userspace. > > The host will set a flag in the pvclock structure that is checked > 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 > field of the pvclock_vcpu_time_info structure. It will be set exclusively by > the host and read/cleared exclusively by the guest. The guest operation of > checking and clearing the flag must be an atomic operation so > load-link/store-conditional, or equivalent must be used. There are two cases > where the guest will clear the flag: when the soft lockup watchdog timer resets > itself or when a soft lockup is detected. This ioctl can be called any time > after pausing the vcpu, but before it is resumed."