Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: virt: guest-halt-polling.txt convert to ReST

Due to some merge conflict, this file ended being alone under
Documentation/virtual.

The file itself is almost at ReST format. Just minor
adjustments are needed:

- Adjust title markup;
- Adjust a list identation;
- add a literal block markup;
- Add some blank lines.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Mauro Carvalho Chehab and committed by
Paolo Bonzini
120881b9 033741c6

+10 -3
+1
Documentation/virt/index.rst
··· 10 10 kvm/index 11 11 uml/user_mode_linux 12 12 paravirt_ops 13 + guest-halt-polling 13 14 14 15 .. only:: html and subproject 15 16
+9 -3
Documentation/virtual/guest-halt-polling.txt Documentation/virt/guest-halt-polling.rst
··· 1 + ================== 1 2 Guest halt polling 2 3 ================== 3 4 4 5 The cpuidle_haltpoll driver, with the haltpoll governor, allows 5 6 the guest vcpus to poll for a specified amount of time before 6 7 halting. 8 + 7 9 This provides the following benefits to host side polling: 8 10 9 11 1) The POLL flag is set while polling is performed, which allows ··· 31 29 The haltpoll governor has 5 tunable module parameters: 32 30 33 31 1) guest_halt_poll_ns: 32 + 34 33 Maximum amount of time, in nanoseconds, that polling is 35 34 performed before halting. 36 35 37 36 Default: 200000 38 37 39 38 2) guest_halt_poll_shrink: 39 + 40 40 Division factor used to shrink per-cpu guest_halt_poll_ns when 41 41 wakeup event occurs after the global guest_halt_poll_ns. 42 42 43 43 Default: 2 44 44 45 45 3) guest_halt_poll_grow: 46 + 46 47 Multiplication factor used to grow per-cpu guest_halt_poll_ns 47 48 when event occurs after per-cpu guest_halt_poll_ns 48 49 but before global guest_halt_poll_ns. ··· 53 48 Default: 2 54 49 55 50 4) guest_halt_poll_grow_start: 51 + 56 52 The per-cpu guest_halt_poll_ns eventually reaches zero 57 53 in case of an idle system. This value sets the initial 58 54 per-cpu guest_halt_poll_ns when growing. This can ··· 72 66 73 67 Default: Y 74 68 75 - The module parameters can be set from the debugfs files in: 69 + The module parameters can be set from the debugfs files in:: 76 70 77 71 /sys/module/haltpoll/parameters/ 78 72 ··· 80 74 ============= 81 75 82 76 - Care should be taken when setting the guest_halt_poll_ns parameter as a 83 - large value has the potential to drive the cpu usage to 100% on a machine which 84 - would be almost entirely idle otherwise. 77 + large value has the potential to drive the cpu usage to 100% on a machine 78 + which would be almost entirely idle otherwise.