Skip to content

Commit 6f7f812

Browse files
rddunlapbp3tk0v
authored andcommitted
Documentation: virt: Clean up paravirt_ops doc
Clarify language. Clean up grammar. Hyphenate some words. Change "low-ops" to "low-level" since "low-ops" isn't defined or even mentioned anywhere else in the kernel source tree. Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Acked-by: Juergen Gross <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 013fdeb commit 6f7f812

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Documentation/virt/paravirt_ops.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,31 @@ Paravirt_ops
55
============
66

77
Linux provides support for different hypervisor virtualization technologies.
8-
Historically different binary kernels would be required in order to support
9-
different hypervisors, this restriction was removed with pv_ops.
8+
Historically, different binary kernels would be required in order to support
9+
different hypervisors; this restriction was removed with pv_ops.
1010
Linux pv_ops is a virtualization API which enables support for different
1111
hypervisors. It allows each hypervisor to override critical operations and
1212
allows a single kernel binary to run on all supported execution environments
1313
including native machine -- without any hypervisors.
1414

1515
pv_ops provides a set of function pointers which represent operations
16-
corresponding to low level critical instructions and high level
17-
functionalities in various areas. pv-ops allows for optimizations at run
18-
time by enabling binary patching of the low-ops critical operations
16+
corresponding to low-level critical instructions and high-level
17+
functionalities in various areas. pv_ops allows for optimizations at run
18+
time by enabling binary patching of the low-level critical operations
1919
at boot time.
2020

2121
pv_ops operations are classified into three categories:
2222

2323
- simple indirect call
24-
These operations correspond to high level functionality where it is
24+
These operations correspond to high-level functionality where it is
2525
known that the overhead of indirect call isn't very important.
2626

2727
- indirect call which allows optimization with binary patch
28-
Usually these operations correspond to low level critical instructions. They
28+
Usually these operations correspond to low-level critical instructions. They
2929
are called frequently and are performance critical. The overhead is
3030
very important.
3131

3232
- a set of macros for hand written assembly code
3333
Hand written assembly codes (.S files) also need paravirtualization
34-
because they include sensitive instructions or some of code paths in
34+
because they include sensitive instructions or some code paths in
3535
them are very performance critical.

0 commit comments

Comments
 (0)