* [PATCH 0/4] Documentation: KVM: multiple editing corrections
@ 2023-06-12 3:08 Randy Dunlap
2023-06-12 3:08 ` [PATCH 1/4] Documentation: KVM: make corrections to halt-polling.rst Randy Dunlap
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Randy Dunlap @ 2023-06-12 3:08 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Suraj Jitindar Singh, Paolo Bonzini,
Sean Christopherson, Alexander Graf, Andrew Jones,
Christoffer Dall, kvm, Jonathan Corbet, linux-doc
Fix various issues in KVM documentation files (grammar, spelling,
punctuation, file path, wording, hyphenation, and the location of
module parameters).
[PATCH 1/4] Documentation: KVM: make corrections to halt-polling.rst
[PATCH 2/4] Documentation: KVM: make corrections to locking.rst
[PATCH 3/4] Documentation: KVM: make corrections to ppc-pv.rst
[PATCH 4/4] Documentation: KVM: make corrections to vcpu-requests.rst
Documentation/virt/kvm/halt-polling.rst | 10 +++++-----
Documentation/virt/kvm/locking.rst | 18 +++++++++---------
Documentation/virt/kvm/ppc-pv.rst | 8 ++++----
Documentation/virt/kvm/vcpu-requests.rst | 6 +++---
4 files changed, 21 insertions(+), 21 deletions(-)
Cc: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Alexander Graf <agraf@suse.de>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Christoffer Dall <cdall@linaro.org>
Cc: kvm@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/4] Documentation: KVM: make corrections to halt-polling.rst
2023-06-12 3:08 [PATCH 0/4] Documentation: KVM: multiple editing corrections Randy Dunlap
@ 2023-06-12 3:08 ` Randy Dunlap
2023-06-12 3:08 ` [PATCH 2/4] Documentation: KVM: make corrections to locking.rst Randy Dunlap
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Randy Dunlap @ 2023-06-12 3:08 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Suraj Jitindar Singh, Paolo Bonzini,
Sean Christopherson, kvm, Jonathan Corbet, linux-doc
Module parameters are in sysfs, not debugfs, so change that.
Remove superfluous "that" following "Note:".
Hyphenate "system-wide" values.
Hyphenate "trade-off".
Don't treat "denial of service" as a verb.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: kvm@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
---
Documentation/virt/kvm/halt-polling.rst | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff -- a/Documentation/virt/kvm/halt-polling.rst b/Documentation/virt/kvm/halt-polling.rst
--- a/Documentation/virt/kvm/halt-polling.rst
+++ b/Documentation/virt/kvm/halt-polling.rst
@@ -112,11 +112,11 @@ powerpc kvm-hv case.
| | function. | |
+-----------------------+---------------------------+-------------------------+
-These module parameters can be set from the debugfs files in:
+These module parameters can be set from the sysfs files in:
/sys/module/kvm/parameters/
-Note: that these module parameters are system wide values and are not able to
+Note: these module parameters are system-wide values and are not able to
be tuned on a per vm basis.
Any changes to these parameters will be picked up by new and existing vCPUs the
@@ -142,12 +142,12 @@ Further Notes
global max polling interval (halt_poll_ns) then the host will always poll for the
entire block time and thus cpu utilisation will go to 100%.
-- Halt polling essentially presents a trade off between power usage and latency and
+- Halt polling essentially presents a trade-off between power usage and latency and
the module parameters should be used to tune the affinity for this. Idle cpu time is
essentially converted to host kernel time with the aim of decreasing latency when
entering the guest.
- Halt polling will only be conducted by the host when no other tasks are runnable on
that cpu, otherwise the polling will cease immediately and schedule will be invoked to
- allow that other task to run. Thus this doesn't allow a guest to denial of service the
- cpu.
+ allow that other task to run. Thus this doesn't allow a guest to cause denial of service
+ of the cpu.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/4] Documentation: KVM: make corrections to locking.rst
2023-06-12 3:08 [PATCH 0/4] Documentation: KVM: multiple editing corrections Randy Dunlap
2023-06-12 3:08 ` [PATCH 1/4] Documentation: KVM: make corrections to halt-polling.rst Randy Dunlap
@ 2023-06-12 3:08 ` Randy Dunlap
2023-06-12 3:08 ` [PATCH 3/4] Documentation: KVM: make corrections to ppc-pv.rst Randy Dunlap
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Randy Dunlap @ 2023-06-12 3:08 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Sean Christopherson, Paolo Bonzini, kvm,
Jonathan Corbet, linux-doc
Correct grammar and punctuation.
Use "read-only" for consistency.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
---
Q: What is spte.HOST_WRITEABLE supposed to be? It is not used anywhere
else in the kernel source tree.
Documentation/virt/kvm/locking.rst | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff -- a/Documentation/virt/kvm/locking.rst b/Documentation/virt/kvm/locking.rst
--- a/Documentation/virt/kvm/locking.rst
+++ b/Documentation/virt/kvm/locking.rst
@@ -67,7 +67,7 @@ following two cases:
2. Write-Protection: The SPTE is present and the fault is caused by
write-protect. That means we just need to change the W bit of the spte.
-What we use to avoid all the race is the Host-writable bit and MMU-writable bit
+What we use to avoid all the races is the Host-writable bit and MMU-writable bit
on the spte:
- Host-writable means the gfn is writable in the host kernel page tables and in
@@ -130,7 +130,7 @@ to gfn. For indirect sp, we disabled fa
A solution for indirect sp could be to pin the gfn, for example via
kvm_vcpu_gfn_to_pfn_atomic, before the cmpxchg. After the pinning:
-- We have held the refcount of pfn that means the pfn can not be freed and
+- We have held the refcount of pfn; that means the pfn can not be freed and
be reused for another gfn.
- The pfn is writable and therefore it cannot be shared between different gfns
by KSM.
@@ -186,22 +186,22 @@ writable between reading spte and updati
The Dirty bit is lost in this case.
In order to avoid this kind of issue, we always treat the spte as "volatile"
-if it can be updated out of mmu-lock, see spte_has_volatile_bits(), it means,
+if it can be updated out of mmu-lock [see spte_has_volatile_bits()]; it means
the spte is always atomically updated in this case.
3) flush tlbs due to spte updated
-If the spte is updated from writable to readonly, we should flush all TLBs,
+If the spte is updated from writable to read-only, we should flush all TLBs,
otherwise rmap_write_protect will find a read-only spte, even though the
writable spte might be cached on a CPU's TLB.
As mentioned before, the spte can be updated to writable out of mmu-lock on
-fast page fault path, in order to easily audit the path, we see if TLBs need
-be flushed caused by this reason in mmu_spte_update() since this is a common
+fast page fault path. In order to easily audit the path, we see if TLBs needing
+to be flushed caused this reason in mmu_spte_update() since this is a common
function to update spte (present -> present).
Since the spte is "volatile" if it can be updated out of mmu-lock, we always
-atomically update the spte, the race caused by fast page fault can be avoided,
+atomically update the spte and the race caused by fast page fault can be avoided.
See the comments in spte_has_volatile_bits() and mmu_spte_update().
Lockless Access Tracking:
@@ -283,9 +283,9 @@ time it will be set using the Dirty trac
:Arch: x86
:Protects: wakeup_vcpus_on_cpu
:Comment: This is a per-CPU lock and it is used for VT-d posted-interrupts.
- When VT-d posted-interrupts is supported and the VM has assigned
+ When VT-d posted-interrupts are supported and the VM has assigned
devices, we put the blocked vCPU on the list blocked_vcpu_on_cpu
- protected by blocked_vcpu_on_cpu_lock, when VT-d hardware issues
+ protected by blocked_vcpu_on_cpu_lock. When VT-d hardware issues
wakeup notification event since external interrupts from the
assigned devices happens, we will find the vCPU on the list to
wakeup.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 3/4] Documentation: KVM: make corrections to ppc-pv.rst
2023-06-12 3:08 [PATCH 0/4] Documentation: KVM: multiple editing corrections Randy Dunlap
2023-06-12 3:08 ` [PATCH 1/4] Documentation: KVM: make corrections to halt-polling.rst Randy Dunlap
2023-06-12 3:08 ` [PATCH 2/4] Documentation: KVM: make corrections to locking.rst Randy Dunlap
@ 2023-06-12 3:08 ` Randy Dunlap
2023-06-12 3:08 ` [PATCH 4/4] Documentation: KVM: make corrections to vcpu-requests.rst Randy Dunlap
2023-06-16 14:24 ` [PATCH 0/4] Documentation: KVM: multiple editing corrections Jonathan Corbet
4 siblings, 0 replies; 6+ messages in thread
From: Randy Dunlap @ 2023-06-12 3:08 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Paolo Bonzini, Sean Christopherson, kvm,
Alexander Graf, Jonathan Corbet, linux-doc
Correct the path of a header file.
Change "guest to ... guest" to "guest to ... host" in one place.
Hyphenate "32-bit" systems.
Add a comma at one parenthetical phrase.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: kvm@vger.kernel.org
Cc: Alexander Graf <agraf@suse.de>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
---
Documentation/virt/kvm/ppc-pv.rst | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff -- a/Documentation/virt/kvm/ppc-pv.rst b/Documentation/virt/kvm/ppc-pv.rst
--- a/Documentation/virt/kvm/ppc-pv.rst
+++ b/Documentation/virt/kvm/ppc-pv.rst
@@ -89,7 +89,7 @@ also define a new hypercall feature to i
registers. Only if the host supports the additional features, make use of them.
The magic page layout is described by struct kvm_vcpu_arch_shared
-in arch/powerpc/include/asm/kvm_para.h.
+in arch/powerpc/include/uapi/asm/kvm_para.h.
Magic page features
===================
@@ -112,7 +112,7 @@ Magic page flags
================
In addition to features that indicate whether a host is capable of a particular
-feature we also have a channel for a guest to tell the guest whether it's capable
+feature we also have a channel for a guest to tell the host whether it's capable
of something. This is what we call "flags".
Flags are passed to the host in the low 12 bits of the Effective Address.
@@ -139,7 +139,7 @@ Patched instructions
====================
The "ld" and "std" instructions are transformed to "lwz" and "stw" instructions
-respectively on 32 bit systems with an added offset of 4 to accommodate for big
+respectively on 32-bit systems with an added offset of 4 to accommodate for big
endianness.
The following is a list of mapping the Linux kernel performs when running as
@@ -210,7 +210,7 @@ available on all targets.
2) PAPR hypercalls
PAPR hypercalls are needed to run server PowerPC PAPR guests (-M pseries in QEMU).
-These are the same hypercalls that pHyp, the POWER hypervisor implements. Some of
+These are the same hypercalls that pHyp, the POWER hypervisor, implements. Some of
them are handled in the kernel, some are handled in user space. This is only
available on book3s_64.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 4/4] Documentation: KVM: make corrections to vcpu-requests.rst
2023-06-12 3:08 [PATCH 0/4] Documentation: KVM: multiple editing corrections Randy Dunlap
` (2 preceding siblings ...)
2023-06-12 3:08 ` [PATCH 3/4] Documentation: KVM: make corrections to ppc-pv.rst Randy Dunlap
@ 2023-06-12 3:08 ` Randy Dunlap
2023-06-16 14:24 ` [PATCH 0/4] Documentation: KVM: multiple editing corrections Jonathan Corbet
4 siblings, 0 replies; 6+ messages in thread
From: Randy Dunlap @ 2023-06-12 3:08 UTC (permalink / raw)
To: linux-kernel
Cc: Randy Dunlap, Paolo Bonzini, Sean Christopherson, Andrew Jones,
Christoffer Dall, kvm, Jonathan Corbet, linux-doc
Make corrections to punctuation and grammar.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Christoffer Dall <cdall@linaro.org>
Cc: kvm@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
---
Documentation/virt/kvm/vcpu-requests.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff -- a/Documentation/virt/kvm/vcpu-requests.rst b/Documentation/virt/kvm/vcpu-requests.rst
--- a/Documentation/virt/kvm/vcpu-requests.rst
+++ b/Documentation/virt/kvm/vcpu-requests.rst
@@ -101,7 +101,7 @@ also be used, e.g. ::
However, VCPU request users should refrain from doing so, as it would
break the abstraction. The first 8 bits are reserved for architecture
-independent requests, all additional bits are available for architecture
+independent requests; all additional bits are available for architecture
dependent requests.
Architecture Independent Requests
@@ -151,8 +151,8 @@ KVM_REQUEST_NO_WAKEUP
This flag is applied to requests that only need immediate attention
from VCPUs running in guest mode. That is, sleeping VCPUs do not need
- to be awaken for these requests. Sleeping VCPUs will handle the
- requests when they are awaken later for some other reason.
+ to be awakened for these requests. Sleeping VCPUs will handle the
+ requests when they are awakened later for some other reason.
KVM_REQUEST_WAIT
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/4] Documentation: KVM: multiple editing corrections
2023-06-12 3:08 [PATCH 0/4] Documentation: KVM: multiple editing corrections Randy Dunlap
` (3 preceding siblings ...)
2023-06-12 3:08 ` [PATCH 4/4] Documentation: KVM: make corrections to vcpu-requests.rst Randy Dunlap
@ 2023-06-16 14:24 ` Jonathan Corbet
4 siblings, 0 replies; 6+ messages in thread
From: Jonathan Corbet @ 2023-06-16 14:24 UTC (permalink / raw)
To: Randy Dunlap, linux-kernel
Cc: Randy Dunlap, Suraj Jitindar Singh, Paolo Bonzini,
Sean Christopherson, Alexander Graf, Andrew Jones,
Christoffer Dall, kvm, linux-doc
Randy Dunlap <rdunlap@infradead.org> writes:
> Fix various issues in KVM documentation files (grammar, spelling,
> punctuation, file path, wording, hyphenation, and the location of
> module parameters).
>
>
> [PATCH 1/4] Documentation: KVM: make corrections to halt-polling.rst
> [PATCH 2/4] Documentation: KVM: make corrections to locking.rst
> [PATCH 3/4] Documentation: KVM: make corrections to ppc-pv.rst
> [PATCH 4/4] Documentation: KVM: make corrections to vcpu-requests.rst
>
> Documentation/virt/kvm/halt-polling.rst | 10 +++++-----
> Documentation/virt/kvm/locking.rst | 18 +++++++++---------
> Documentation/virt/kvm/ppc-pv.rst | 8 ++++----
> Documentation/virt/kvm/vcpu-requests.rst | 6 +++---
> 4 files changed, 21 insertions(+), 21 deletions(-)
I've applied the set, thanks.
jon
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-06-16 14:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-12 3:08 [PATCH 0/4] Documentation: KVM: multiple editing corrections Randy Dunlap
2023-06-12 3:08 ` [PATCH 1/4] Documentation: KVM: make corrections to halt-polling.rst Randy Dunlap
2023-06-12 3:08 ` [PATCH 2/4] Documentation: KVM: make corrections to locking.rst Randy Dunlap
2023-06-12 3:08 ` [PATCH 3/4] Documentation: KVM: make corrections to ppc-pv.rst Randy Dunlap
2023-06-12 3:08 ` [PATCH 4/4] Documentation: KVM: make corrections to vcpu-requests.rst Randy Dunlap
2023-06-16 14:24 ` [PATCH 0/4] Documentation: KVM: multiple editing corrections Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®