Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2350610imm; Thu, 23 Aug 2018 20:07:33 -0700 (PDT) X-Google-Smtp-Source: AA+uWPznxGykjqv5/wzCtyPowd40wLgT6kvKx8ZvJe6pCrpE9EMkg1X8LiwSf3xZzvH9trPxrH1D X-Received: by 2002:a62:6c04:: with SMTP id h4-v6mr31032745pfc.113.1535080053405; Thu, 23 Aug 2018 20:07:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535080053; cv=none; d=google.com; s=arc-20160816; b=k7kVUBkv87yOlxaxomzyrTk0mXgjAxg9b9BzFNgHOngT7ACaJh41K9tG4oJOqJQmOr FJII1uyYeuGQqi4S3WbSvjiM3J+Z+k3iWu+PjG3ASOHAipYzGeUtLamRFK+vnM1pzbxY 2SyG19DOdRi/ciRstTmuAvYRA13JzQO9PCPl43qFgQU6Ei8qa3XbN25wnSpAojVoVwCx a9jXWlQcSHAYqkrRm2B8ZSfab0gCeJrYCG84wDam05IocUxw2dk7ZHhEI3brSG9pUEja VuXmoY/ujZdwNdu5zvEkZ0/P0HqjeP+uWuI7xcBBXt58Oww5cFrBvGVF+W3E044SpOo/ /uCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=IgU0usR3k4qrDkb/6AH66mDEeApP7pg1CYP0h5N5Q3E=; b=BNz0aLlFqFp6dqEAmEbiYFT00AGjo+bL4w+AMfim67f7GcgeoCUPTJ8CT5PT2D7Z8I 37T32KMy+G9WeyitsyDywxmXXiCiPJQEA06AqlvkiN+vumfDFOwcozeIo6DAohXui+YT aXFe/Sh/fClqwaDwr8Zj1B2Zd5RXaB/iE8XNUQbRCDwG1JdHh4nbMUZ/95WbMDxKvBGu XwiorVJub9pDJd00eD258iCXs5WH1TWk8J+QZks/vTvp64qeZPJ7B+W5U+8TTPt7BxVE fgdfB/1GgCOzNV8ivfTQF/aQijm7Z1wtubH+wDQuquZeGsSMHXxCOZekci0XOmMr3Vwn 2Vnw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o13-v6si6632814pfg.87.2018.08.23.20.07.18; Thu, 23 Aug 2018 20:07:33 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727497AbeHXGim (ORCPT + 99 others); Fri, 24 Aug 2018 02:38:42 -0400 Received: from out1.zte.com.cn ([202.103.147.172]:38252 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbeHXGil (ORCPT ); Fri, 24 Aug 2018 02:38:41 -0400 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 84B2BB2A474EFA4E3352; Fri, 24 Aug 2018 11:06:02 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id w7O35tQi036824; Fri, 24 Aug 2018 11:05:55 +0800 (GMT-8) (envelope-from peng.hao2@zte.com.cn) Received: from localhost.localdomain.localdomain ([10.74.120.59]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018082411060379-5963665 ; Fri, 24 Aug 2018 11:06:03 +0800 From: Peng Hao To: pbonzini@redhat.com, rkrcmar@redhat.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn, wanpeng.li@hotmail.com, Peng Hao Subject: [PATCH V3 2/2] kvm/x86 : add document for coalesced pio Date: Fri, 24 Aug 2018 19:20:32 +0800 Message-Id: <1535109632-59745-3-git-send-email-peng.hao2@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1535109632-59745-1-git-send-email-peng.hao2@zte.com.cn> References: <1535109632-59745-1-git-send-email-peng.hao2@zte.com.cn> X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-08-24 11:06:03, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-08-24 11:05:40, Serialize complete at 2018-08-24 11:05:40 X-MAIL: mse01.zte.com.cn w7O35tQi036824 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Peng Hao --- Documentation/virtual/kvm/00-INDEX | 2 ++ Documentation/virtual/kvm/coalesced-pio.txt | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Documentation/virtual/kvm/coalesced-pio.txt diff --git a/Documentation/virtual/kvm/00-INDEX b/Documentation/virtual/kvm/00-INDEX index 3492458..3d68164 100644 --- a/Documentation/virtual/kvm/00-INDEX +++ b/Documentation/virtual/kvm/00-INDEX @@ -11,6 +11,8 @@ cpuid.txt - KVM-specific cpuid leaves (x86). devices/ - KVM_CAP_DEVICE_CTRL userspace API. +coalesced-pio.txt + - KVM_CAP_COALESCED_PIO halt-polling.txt - notes on halt-polling hypercalls.txt diff --git a/Documentation/virtual/kvm/coalesced-pio.txt b/Documentation/virtual/kvm/coalesced-pio.txt new file mode 100644 index 0000000..932d5cd --- /dev/null +++ b/Documentation/virtual/kvm/coalesced-pio.txt @@ -0,0 +1,14 @@ +Linux KVM Coalesced PIO: +======================== +Coalesced pio is base on coalesced mmio. When the write access to a port +of a device does a simple work (just like setting a register ID or address +index), then we can use coalesced pio. + +Setting a port as coalesced pio, the write access to the port don't need to +exit to userspace, and just record the value in shared coalesced ring in kernel. +Then following access to another port of the same device which relys on the first +port's setting or a read access to the first port will set the previous write +value of the first port firstly in usersapce according to the shared coalesced ring. + +Coalesced pio can be used for rtc 0x70 port, pci-host config port, virtio-pci config +port and so on. -- 1.8.3.1