Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2248252ybl; Thu, 29 Aug 2019 05:49:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZ3GCjfGsHIU6RQ0krVi0LNXUuJhlxQuAJZyzcjYYtH66/Oqjeb8GgDJBcXnVAZJK5wiGz X-Received: by 2002:a17:902:e68f:: with SMTP id cn15mr9834682plb.212.1567082947633; Thu, 29 Aug 2019 05:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567082947; cv=none; d=google.com; s=arc-20160816; b=zxvO/PIKnbeZO7SVIiSP19NIdLPCIoHLuGoJxn81CfQKU85HcQHlTbY5EZXnjWsQeC 9ZXH6HNOYhnQKLFWV1Jj3AG7C8mPeLYKJBarHM58MCPTfIhA8Lx6cmeXxNNtqrt/0BgG DmEc2o9UT5CDj8eAEP8lG26M2sLGCck1dYwKppGp/jywiEhLSwp19/Dj3xp3H/Ll2xQK f1pqfDWoOZ5ZWmBm4x42S2wJZLL+/ThKFJ23F4q5de9xuac3ymsaSFIVg97j/yDIkMNC m5mmwOwxXKiKVnBxRAcPnqoS9AhKi5+wg1oemGUEQID9KWbp3LESjhl/efSCVEf9+L7f cc/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=2kCSoAjLb9oxcIezS5ZMPs3YrNn9RsRw8ZtQYujKXas=; b=wQqLAnbsXa6WQ/GK0M3ge4aW9goOoW7n9AfDcuznqwVr8TX3/KJHHh98K83uMdXY9f Wcdjzc707RtesPx0iMRXuFAf1u+LXjC3qMYEh4BNYSu3CjoDVztXOB3PS36chW5Nf+vP 0xjrrZkSVgmGJmuEcjni/xdkU1fgqBxbms/PIsqnGhDn+1su/yAJCldulJF9ej6zMcg0 XmRSY+uObaTYpE3hFJqY9oW+1rJqzPU5C/fLk166IgZOHqaQ9Y34Vz/RFLd+a4ltYR3g DdpOZDJYCm4bxLWyxtdfn4ypIhYULYbbrK+rKsAO5f5HNQEdk7i4AHXxj0EyuZjDnb5B eZZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si1864287plt.26.2019.08.29.05.48.51; Thu, 29 Aug 2019 05:49:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727183AbfH2Mrz (ORCPT + 99 others); Thu, 29 Aug 2019 08:47:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53560 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726518AbfH2Mry (ORCPT ); Thu, 29 Aug 2019 08:47:54 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4759C8980F3; Thu, 29 Aug 2019 12:47:54 +0000 (UTC) Received: from localhost (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9B1125C1D6; Thu, 29 Aug 2019 12:47:51 +0000 (UTC) From: Cornelia Huck To: Christian Borntraeger , Janosch Frank , kvm@vger.kernel.org Cc: David Hildenbrand , Heiko Carstens , Vasily Gorbik , Thomas Huth , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Cornelia Huck Subject: [PATCH] KVM: s390: improve documentation for S390_MEM_OP Date: Thu, 29 Aug 2019 14:47:46 +0200 Message-Id: <20190829124746.28665-1-cohuck@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.67]); Thu, 29 Aug 2019 12:47:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Explicitly specify the valid ranges for size and ar, and reword buf requirements a bit. Signed-off-by: Cornelia Huck --- supposed to go on top of "KVM: s390: Test for bad access register and size at the start of S390_MEM_OP" (<20190829122517.31042-1-thuth@redhat.com>) --- Documentation/virt/kvm/api.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Documentation/virt/kvm/api.txt b/Documentation/virt/kvm/api.txt index 2d067767b617..76c9d6fdbfdb 100644 --- a/Documentation/virt/kvm/api.txt +++ b/Documentation/virt/kvm/api.txt @@ -3079,12 +3079,14 @@ This exception is also raised directly at the corresponding VCPU if the flag KVM_S390_MEMOP_F_INJECT_EXCEPTION is set in the "flags" field. The start address of the memory region has to be specified in the "gaddr" -field, and the length of the region in the "size" field. "buf" is the buffer -supplied by the userspace application where the read data should be written -to for KVM_S390_MEMOP_LOGICAL_READ, or where the data that should be written -is stored for a KVM_S390_MEMOP_LOGICAL_WRITE. "buf" is unused and can be NULL -when KVM_S390_MEMOP_F_CHECK_ONLY is specified. "ar" designates the access -register number to be used. +field, and the length of the region in the "size" field (which must not +be 0). The maximum value for "size" can be obtained by checking the +KVM_CAP_S390_MEM_OP capability. "buf" is the buffer supplied by the +userspace application where the read data should be written to for +KVM_S390_MEMOP_LOGICAL_READ, or where the data that should be written is +stored for a KVM_S390_MEMOP_LOGICAL_WRITE. When KVM_S390_MEMOP_F_CHECK_ONLY +is specified, "buf" is unused and can be NULL. "ar" designates the access +register number to be used; the valid range is 0..15. The "reserved" field is meant for future extensions. It is not used by KVM with the currently defined set of flags. -- 2.20.1