All of lore.kernel.org
 help / color / mirror / Atom feed
From: <yezengruan@huawei.com>
To: yezengruan@huawei.com, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org,
	linux-doc@vger.kernel.org,
	virtualization@lists.linux-foundation.org
Cc: mark.rutland@arm.com, suzuki.poulose@arm.com,
	catalin.marinas@arm.com, daniel.lezcano@linaro.org,
	linux@armlinux.org.uk, steven.price@arm.com, james.morse@arm.com,
	maz@kernel.org, will@kernel.org, julien.thierry.kdev@gmail.com
Subject: [PATCH 1/5] KVM: arm64: Document PV-lock interface
Date: Tue, 17 Dec 2019 21:55:45 +0800	[thread overview]
Message-ID: <20191217135549.3240-2-yezengruan__36231.8060871743$1576591022$gmane$org@huawei.com> (raw)
In-Reply-To: <20191217135549.3240-1-yezengruan@huawei.com>

From: Zengruan Ye <yezengruan@huawei.com>

Introduce a paravirtualization interface for KVM/arm64 to obtain the vcpu
is currently running or not.

A hypercall interface is provided for the guest to interrogate the
hypervisor's support for this interface and the location of the shared
memory structures.

Signed-off-by: Zengruan Ye <yezengruan@huawei.com>
---
 Documentation/virt/kvm/arm/pvlock.rst | 31 +++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/virt/kvm/arm/pvlock.rst

diff --git a/Documentation/virt/kvm/arm/pvlock.rst b/Documentation/virt/kvm/arm/pvlock.rst
new file mode 100644
index 000000000000..eec0c36edf17
--- /dev/null
+++ b/Documentation/virt/kvm/arm/pvlock.rst
@@ -0,0 +1,31 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+Paravirtualized lock support for arm64
+======================================
+
+KVM/arm64 provids some hypervisor service calls to support a paravirtualized
+guest obtaining the vcpu is currently running or not.
+
+Two new SMCCC compatible hypercalls are defined:
+
+* PV_LOCK_FEATURES:   0xC5000040
+* PV_LOCK_PREEMPTED:  0xC5000041
+
+The existence of the PV_LOCK hypercall should be probed using the SMCCC 1.1
+ARCH_FEATURES mechanism before calling it.
+
+PV_LOCK_FEATURES
+    ============= ========    ==========
+    Function ID:  (uint32)    0xC5000040
+    PV_call_id:   (uint32)    The function to query for support.
+    Return value: (int64)     NOT_SUPPORTED (-1) or SUCCESS (0) if the relevant
+                              PV-lock feature is supported by the hypervisor.
+    ============= ========    ==========
+
+PV_LOCK_PREEMPTED
+    ============= ========    ==========
+    Function ID:  (uint32)    0xC5000041
+    Return value: (int64)     NOT_SUPPORTED (-1) or SUCCESS (0) if the IPA of
+                              this vcpu's pv data structure is configured by
+                              the hypervisor.
+    ============= ========    ==========
-- 
2.19.1

  parent reply	other threads:[~2019-12-17 13:55 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-17 13:55 [PATCH 0/5] KVM: arm64: vcpu preempted check support yezengruan
2019-12-17 13:55 ` yezengruan
2019-12-17 13:55 ` yezengruan
2019-12-17 13:55 ` [PATCH 1/5] KVM: arm64: Document PV-lock interface yezengruan
2019-12-17 13:55   ` yezengruan
2019-12-17 13:55   ` yezengruan
2019-12-17 14:21   ` Steven Price
2019-12-17 14:21     ` Steven Price
2019-12-17 14:21     ` Steven Price
2019-12-19 11:45     ` yezengruan
2019-12-19 11:45     ` yezengruan
2019-12-19 11:45       ` yezengruan
2019-12-19 11:45       ` yezengruan
2019-12-20 11:43       ` Steven Price
2019-12-20 11:43         ` Steven Price
2019-12-20 11:43         ` Steven Price
2019-12-20 14:32   ` Markus Elfring
2019-12-20 14:32     ` Markus Elfring
2019-12-20 14:32     ` Markus Elfring
2019-12-23  2:06     ` yezengruan
2019-12-23  2:06       ` yezengruan
2019-12-23  2:06       ` yezengruan
2019-12-23  2:06     ` yezengruan
2019-12-17 13:55 ` yezengruan [this message]
2019-12-17 13:55 ` [PATCH 2/5] KVM: arm64: Implement PV_LOCK_FEATURES call yezengruan
2019-12-17 13:55   ` yezengruan
2019-12-17 13:55   ` yezengruan
2019-12-17 14:28   ` Steven Price
2019-12-17 14:28     ` Steven Price
2019-12-17 14:28     ` Steven Price
2019-12-19 11:59     ` yezengruan
2019-12-19 11:59     ` yezengruan
2019-12-19 11:59       ` yezengruan
2019-12-19 11:59       ` yezengruan
2019-12-17 13:55 ` yezengruan
2019-12-17 13:55 ` [PATCH 3/5] KVM: arm64: Support pvlock preempted via shared structure yezengruan
2019-12-17 13:55 ` yezengruan
2019-12-17 13:55   ` yezengruan
2019-12-17 13:55   ` yezengruan
2019-12-17 14:33   ` Steven Price
2019-12-17 14:33     ` Steven Price
2019-12-17 14:33     ` Steven Price
2019-12-26  8:33     ` yezengruan
2019-12-26  8:33     ` yezengruan
2019-12-26  8:33       ` yezengruan
2019-12-26  8:33       ` yezengruan
2019-12-17 13:55 ` [PATCH 4/5] KVM: arm64: Add interface to support vcpu preempted check yezengruan
2019-12-17 13:55   ` yezengruan
2019-12-17 13:55   ` yezengruan
2019-12-17 13:55 ` yezengruan
2019-12-17 13:55 ` [PATCH 5/5] KVM: arm64: Support the vcpu preemption check yezengruan
2019-12-17 13:55 ` yezengruan
2019-12-17 13:55   ` yezengruan
2019-12-17 13:55   ` yezengruan
2019-12-17 14:40   ` Steven Price
2019-12-17 14:40     ` Steven Price
2019-12-17 14:40     ` Steven Price
2019-12-26  8:34     ` yezengruan
2019-12-26  8:34       ` yezengruan
2019-12-26  8:34       ` yezengruan
2019-12-26  8:34     ` yezengruan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='20191217135549.3240-2-yezengruan__36231.8060871743$1576591022$gmane$org@huawei.com' \
    --to=yezengruan@huawei.com \
    --cc=catalin.marinas@arm.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=james.morse@arm.com \
    --cc=julien.thierry.kdev@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=maz@kernel.org \
    --cc=steven.price@arm.com \
    --cc=suzuki.poulose@arm.com \
    --cc=virtualization@lists.linux-foundation.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.