diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2012-07-17 06:04:20 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2012-07-17 06:04:20 -0400 |
commit | 8ce44a2174c3b07950d7a8d44774e23e60518205 (patch) | |
tree | 4bf04cdeed59775462d5326d3bcb00c7343b6163 /Documentation | |
parent | f9a4f063a88297e361fd6676986cf3e39b22de72 (diff) | |
parent | 84a1caf1453c3d44050bd22db958af4a7f99315c (diff) |
Merge tag 'v3.5-rc7' into arm/tegra
This solves the merge conflicts while creating the next
branch.
Linux 3.5-rc7
Conflicts:
drivers/iommu/tegra-smmu.c
Diffstat (limited to 'Documentation')
21 files changed, 204 insertions, 138 deletions
diff --git a/Documentation/ABI/testing/sysfs-block-rssd b/Documentation/ABI/testing/sysfs-block-rssd index 679ce3543122..beef30c046b0 100644 --- a/Documentation/ABI/testing/sysfs-block-rssd +++ b/Documentation/ABI/testing/sysfs-block-rssd | |||
@@ -1,26 +1,5 @@ | |||
1 | What: /sys/block/rssd*/registers | ||
2 | Date: March 2012 | ||
3 | KernelVersion: 3.3 | ||
4 | Contact: Asai Thambi S P <asamymuthupa@micron.com> | ||
5 | Description: This is a read-only file. Dumps below driver information and | ||
6 | hardware registers. | ||
7 | - S ACTive | ||
8 | - Command Issue | ||
9 | - Completed | ||
10 | - PORT IRQ STAT | ||
11 | - HOST IRQ STAT | ||
12 | - Allocated | ||
13 | - Commands in Q | ||
14 | |||
15 | What: /sys/block/rssd*/status | 1 | What: /sys/block/rssd*/status |
16 | Date: April 2012 | 2 | Date: April 2012 |
17 | KernelVersion: 3.4 | 3 | KernelVersion: 3.4 |
18 | Contact: Asai Thambi S P <asamymuthupa@micron.com> | 4 | Contact: Asai Thambi S P <asamymuthupa@micron.com> |
19 | Description: This is a read-only file. Indicates the status of the device. | 5 | Description: This is a read-only file. Indicates the status of the device. |
20 | |||
21 | What: /sys/block/rssd*/flags | ||
22 | Date: May 2012 | ||
23 | KernelVersion: 3.5 | ||
24 | Contact: Asai Thambi S P <asamymuthupa@micron.com> | ||
25 | Description: This is a read-only file. Dumps the flags in port and driver | ||
26 | data structure | ||
diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index 5bc8a476c15e..cfedf63cce15 100644 --- a/Documentation/ABI/testing/sysfs-bus-iio +++ b/Documentation/ABI/testing/sysfs-bus-iio | |||
@@ -219,6 +219,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_scale | |||
219 | What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_scale | 219 | What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_supply_scale |
220 | What: /sys/bus/iio/devices/iio:deviceX/in_voltage_scale | 220 | What: /sys/bus/iio/devices/iio:deviceX/in_voltage_scale |
221 | What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_scale | 221 | What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_scale |
222 | What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_scale | ||
222 | What: /sys/bus/iio/devices/iio:deviceX/in_accel_scale | 223 | What: /sys/bus/iio/devices/iio:deviceX/in_accel_scale |
223 | What: /sys/bus/iio/devices/iio:deviceX/in_accel_peak_scale | 224 | What: /sys/bus/iio/devices/iio:deviceX/in_accel_peak_scale |
224 | What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_scale | 225 | What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_scale |
@@ -273,6 +274,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_accel_scale_available | |||
273 | What: /sys/.../iio:deviceX/in_voltageX_scale_available | 274 | What: /sys/.../iio:deviceX/in_voltageX_scale_available |
274 | What: /sys/.../iio:deviceX/in_voltage-voltage_scale_available | 275 | What: /sys/.../iio:deviceX/in_voltage-voltage_scale_available |
275 | What: /sys/.../iio:deviceX/out_voltageX_scale_available | 276 | What: /sys/.../iio:deviceX/out_voltageX_scale_available |
277 | What: /sys/.../iio:deviceX/out_altvoltageX_scale_available | ||
276 | What: /sys/.../iio:deviceX/in_capacitance_scale_available | 278 | What: /sys/.../iio:deviceX/in_capacitance_scale_available |
277 | KernelVersion: 2.635 | 279 | KernelVersion: 2.635 |
278 | Contact: linux-iio@vger.kernel.org | 280 | Contact: linux-iio@vger.kernel.org |
@@ -298,14 +300,19 @@ Description: | |||
298 | gives the 3dB frequency of the filter in Hz. | 300 | gives the 3dB frequency of the filter in Hz. |
299 | 301 | ||
300 | What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_raw | 302 | What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_raw |
303 | What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_raw | ||
301 | KernelVersion: 2.6.37 | 304 | KernelVersion: 2.6.37 |
302 | Contact: linux-iio@vger.kernel.org | 305 | Contact: linux-iio@vger.kernel.org |
303 | Description: | 306 | Description: |
304 | Raw (unscaled, no bias etc.) output voltage for | 307 | Raw (unscaled, no bias etc.) output voltage for |
305 | channel Y. The number must always be specified and | 308 | channel Y. The number must always be specified and |
306 | unique if the output corresponds to a single channel. | 309 | unique if the output corresponds to a single channel. |
310 | While DAC like devices typically use out_voltage, | ||
311 | a continuous frequency generating device, such as | ||
312 | a DDS or PLL should use out_altvoltage. | ||
307 | 313 | ||
308 | What: /sys/bus/iio/devices/iio:deviceX/out_voltageY&Z_raw | 314 | What: /sys/bus/iio/devices/iio:deviceX/out_voltageY&Z_raw |
315 | What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY&Z_raw | ||
309 | KernelVersion: 2.6.37 | 316 | KernelVersion: 2.6.37 |
310 | Contact: linux-iio@vger.kernel.org | 317 | Contact: linux-iio@vger.kernel.org |
311 | Description: | 318 | Description: |
@@ -316,6 +323,8 @@ Description: | |||
316 | 323 | ||
317 | What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown_mode | 324 | What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown_mode |
318 | What: /sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown_mode | 325 | What: /sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown_mode |
326 | What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown_mode | ||
327 | What: /sys/bus/iio/devices/iio:deviceX/out_altvoltage_powerdown_mode | ||
319 | KernelVersion: 2.6.38 | 328 | KernelVersion: 2.6.38 |
320 | Contact: linux-iio@vger.kernel.org | 329 | Contact: linux-iio@vger.kernel.org |
321 | Description: | 330 | Description: |
@@ -330,6 +339,8 @@ Description: | |||
330 | 339 | ||
331 | What: /sys/.../iio:deviceX/out_votlageY_powerdown_mode_available | 340 | What: /sys/.../iio:deviceX/out_votlageY_powerdown_mode_available |
332 | What: /sys/.../iio:deviceX/out_voltage_powerdown_mode_available | 341 | What: /sys/.../iio:deviceX/out_voltage_powerdown_mode_available |
342 | What: /sys/.../iio:deviceX/out_altvotlageY_powerdown_mode_available | ||
343 | What: /sys/.../iio:deviceX/out_altvoltage_powerdown_mode_available | ||
333 | KernelVersion: 2.6.38 | 344 | KernelVersion: 2.6.38 |
334 | Contact: linux-iio@vger.kernel.org | 345 | Contact: linux-iio@vger.kernel.org |
335 | Description: | 346 | Description: |
@@ -338,6 +349,8 @@ Description: | |||
338 | 349 | ||
339 | What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown | 350 | What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_powerdown |
340 | What: /sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown | 351 | What: /sys/bus/iio/devices/iio:deviceX/out_voltage_powerdown |
352 | What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_powerdown | ||
353 | What: /sys/bus/iio/devices/iio:deviceX/out_altvoltage_powerdown | ||
341 | KernelVersion: 2.6.38 | 354 | KernelVersion: 2.6.38 |
342 | Contact: linux-iio@vger.kernel.org | 355 | Contact: linux-iio@vger.kernel.org |
343 | Description: | 356 | Description: |
@@ -346,6 +359,24 @@ Description: | |||
346 | normal operation. Y may be suppressed if all outputs are | 359 | normal operation. Y may be suppressed if all outputs are |
347 | controlled together. | 360 | controlled together. |
348 | 361 | ||
362 | What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_frequency | ||
363 | KernelVersion: 3.4.0 | ||
364 | Contact: linux-iio@vger.kernel.org | ||
365 | Description: | ||
366 | Output frequency for channel Y in Hz. The number must always be | ||
367 | specified and unique if the output corresponds to a single | ||
368 | channel. | ||
369 | |||
370 | What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_phase | ||
371 | KernelVersion: 3.4.0 | ||
372 | Contact: linux-iio@vger.kernel.org | ||
373 | Description: | ||
374 | Phase in radians of one frequency/clock output Y | ||
375 | (out_altvoltageY) relative to another frequency/clock output | ||
376 | (out_altvoltageZ) of the device X. The number must always be | ||
377 | specified and unique if the output corresponds to a single | ||
378 | channel. | ||
379 | |||
349 | What: /sys/bus/iio/devices/iio:deviceX/events | 380 | What: /sys/bus/iio/devices/iio:deviceX/events |
350 | KernelVersion: 2.6.35 | 381 | KernelVersion: 2.6.35 |
351 | Contact: linux-iio@vger.kernel.org | 382 | Contact: linux-iio@vger.kernel.org |
diff --git a/Documentation/ABI/testing/sysfs-class-mtd b/Documentation/ABI/testing/sysfs-class-mtd index db1ad7e34fc3..938ef71e2035 100644 --- a/Documentation/ABI/testing/sysfs-class-mtd +++ b/Documentation/ABI/testing/sysfs-class-mtd | |||
@@ -142,13 +142,14 @@ KernelVersion: 3.4 | |||
142 | Contact: linux-mtd@lists.infradead.org | 142 | Contact: linux-mtd@lists.infradead.org |
143 | Description: | 143 | Description: |
144 | This allows the user to examine and adjust the criteria by which | 144 | This allows the user to examine and adjust the criteria by which |
145 | mtd returns -EUCLEAN from mtd_read(). If the maximum number of | 145 | mtd returns -EUCLEAN from mtd_read() and mtd_read_oob(). If the |
146 | bit errors that were corrected on any single region comprising | 146 | maximum number of bit errors that were corrected on any single |
147 | an ecc step (as reported by the driver) equals or exceeds this | 147 | region comprising an ecc step (as reported by the driver) equals |
148 | value, -EUCLEAN is returned. Otherwise, absent an error, 0 is | 148 | or exceeds this value, -EUCLEAN is returned. Otherwise, absent |
149 | returned. Higher layers (e.g., UBI) use this return code as an | 149 | an error, 0 is returned. Higher layers (e.g., UBI) use this |
150 | indication that an erase block may be degrading and should be | 150 | return code as an indication that an erase block may be |
151 | scrutinized as a candidate for being marked as bad. | 151 | degrading and should be scrutinized as a candidate for being |
152 | marked as bad. | ||
152 | 153 | ||
153 | The initial value may be specified by the flash device driver. | 154 | The initial value may be specified by the flash device driver. |
154 | If not, then the default value is ecc_strength. | 155 | If not, then the default value is ecc_strength. |
@@ -167,7 +168,7 @@ Description: | |||
167 | block degradation, but high enough to avoid the consequences of | 168 | block degradation, but high enough to avoid the consequences of |
168 | a persistent return value of -EUCLEAN on devices where sticky | 169 | a persistent return value of -EUCLEAN on devices where sticky |
169 | bitflips occur. Note that if bitflip_threshold exceeds | 170 | bitflips occur. Note that if bitflip_threshold exceeds |
170 | ecc_strength, -EUCLEAN is never returned by mtd_read(). | 171 | ecc_strength, -EUCLEAN is never returned by the read operations. |
171 | Conversely, if bitflip_threshold is zero, -EUCLEAN is always | 172 | Conversely, if bitflip_threshold is zero, -EUCLEAN is always |
172 | returned, absent a hard error. | 173 | returned, absent a hard error. |
173 | 174 | ||
diff --git a/Documentation/DocBook/media/v4l/controls.xml b/Documentation/DocBook/media/v4l/controls.xml index 676bc46f9c52..cda0dfb6769a 100644 --- a/Documentation/DocBook/media/v4l/controls.xml +++ b/Documentation/DocBook/media/v4l/controls.xml | |||
@@ -3988,7 +3988,7 @@ interface and may change in the future.</para> | |||
3988 | from RGB to Y'CbCr color space. | 3988 | from RGB to Y'CbCr color space. |
3989 | </entry> | 3989 | </entry> |
3990 | </row> | 3990 | </row> |
3991 | <row id = "v4l2-jpeg-chroma-subsampling"> | 3991 | <row> |
3992 | <entrytbl spanname="descr" cols="2"> | 3992 | <entrytbl spanname="descr" cols="2"> |
3993 | <tbody valign="top"> | 3993 | <tbody valign="top"> |
3994 | <row> | 3994 | <row> |
diff --git a/Documentation/DocBook/media/v4l/pixfmt.xml b/Documentation/DocBook/media/v4l/pixfmt.xml index f5ac15ed0549..e58934c92895 100644 --- a/Documentation/DocBook/media/v4l/pixfmt.xml +++ b/Documentation/DocBook/media/v4l/pixfmt.xml | |||
@@ -986,13 +986,13 @@ http://www.thedirks.org/winnov/</ulink></para></entry> | |||
986 | <row id="V4L2-PIX-FMT-Y4"> | 986 | <row id="V4L2-PIX-FMT-Y4"> |
987 | <entry><constant>V4L2_PIX_FMT_Y4</constant></entry> | 987 | <entry><constant>V4L2_PIX_FMT_Y4</constant></entry> |
988 | <entry>'Y04 '</entry> | 988 | <entry>'Y04 '</entry> |
989 | <entry>Old 4-bit greyscale format. Only the least significant 4 bits of each byte are used, | 989 | <entry>Old 4-bit greyscale format. Only the most significant 4 bits of each byte are used, |
990 | the other bits are set to 0.</entry> | 990 | the other bits are set to 0.</entry> |
991 | </row> | 991 | </row> |
992 | <row id="V4L2-PIX-FMT-Y6"> | 992 | <row id="V4L2-PIX-FMT-Y6"> |
993 | <entry><constant>V4L2_PIX_FMT_Y6</constant></entry> | 993 | <entry><constant>V4L2_PIX_FMT_Y6</constant></entry> |
994 | <entry>'Y06 '</entry> | 994 | <entry>'Y06 '</entry> |
995 | <entry>Old 6-bit greyscale format. Only the least significant 6 bits of each byte are used, | 995 | <entry>Old 6-bit greyscale format. Only the most significant 6 bits of each byte are used, |
996 | the other bits are set to 0.</entry> | 996 | the other bits are set to 0.</entry> |
997 | </row> | 997 | </row> |
998 | </tbody> | 998 | </tbody> |
diff --git a/Documentation/DocBook/media/v4l/v4l2.xml b/Documentation/DocBook/media/v4l/v4l2.xml index 015c561754b7..008c2d73a484 100644 --- a/Documentation/DocBook/media/v4l/v4l2.xml +++ b/Documentation/DocBook/media/v4l/v4l2.xml | |||
@@ -560,6 +560,7 @@ and discussions on the V4L mailing list.</revremark> | |||
560 | &sub-g-tuner; | 560 | &sub-g-tuner; |
561 | &sub-log-status; | 561 | &sub-log-status; |
562 | &sub-overlay; | 562 | &sub-overlay; |
563 | &sub-prepare-buf; | ||
563 | &sub-qbuf; | 564 | &sub-qbuf; |
564 | &sub-querybuf; | 565 | &sub-querybuf; |
565 | &sub-querycap; | 566 | &sub-querycap; |
@@ -567,7 +568,6 @@ and discussions on the V4L mailing list.</revremark> | |||
567 | &sub-query-dv-preset; | 568 | &sub-query-dv-preset; |
568 | &sub-query-dv-timings; | 569 | &sub-query-dv-timings; |
569 | &sub-querystd; | 570 | &sub-querystd; |
570 | &sub-prepare-buf; | ||
571 | &sub-reqbufs; | 571 | &sub-reqbufs; |
572 | &sub-s-hw-freq-seek; | 572 | &sub-s-hw-freq-seek; |
573 | &sub-streamon; | 573 | &sub-streamon; |
diff --git a/Documentation/DocBook/media/v4l/vidioc-create-bufs.xml b/Documentation/DocBook/media/v4l/vidioc-create-bufs.xml index 765549ff8a71..a2474ecb574a 100644 --- a/Documentation/DocBook/media/v4l/vidioc-create-bufs.xml +++ b/Documentation/DocBook/media/v4l/vidioc-create-bufs.xml | |||
@@ -108,10 +108,9 @@ information.</para> | |||
108 | /></entry> | 108 | /></entry> |
109 | </row> | 109 | </row> |
110 | <row> | 110 | <row> |
111 | <entry>__u32</entry> | 111 | <entry>struct v4l2_format</entry> |
112 | <entry><structfield>format</structfield></entry> | 112 | <entry><structfield>format</structfield></entry> |
113 | <entry>Filled in by the application, preserved by the driver. | 113 | <entry>Filled in by the application, preserved by the driver.</entry> |
114 | See <xref linkend="v4l2-format" />.</entry> | ||
115 | </row> | 114 | </row> |
116 | <row> | 115 | <row> |
117 | <entry>__u32</entry> | 116 | <entry>__u32</entry> |
diff --git a/Documentation/DocBook/media/v4l/vidioc-dqevent.xml b/Documentation/DocBook/media/v4l/vidioc-dqevent.xml index e8714aa16433..98a856f9ec30 100644 --- a/Documentation/DocBook/media/v4l/vidioc-dqevent.xml +++ b/Documentation/DocBook/media/v4l/vidioc-dqevent.xml | |||
@@ -89,7 +89,7 @@ | |||
89 | <row> | 89 | <row> |
90 | <entry></entry> | 90 | <entry></entry> |
91 | <entry>&v4l2-event-frame-sync;</entry> | 91 | <entry>&v4l2-event-frame-sync;</entry> |
92 | <entry><structfield>frame</structfield></entry> | 92 | <entry><structfield>frame_sync</structfield></entry> |
93 | <entry>Event data for event V4L2_EVENT_FRAME_SYNC.</entry> | 93 | <entry>Event data for event V4L2_EVENT_FRAME_SYNC.</entry> |
94 | </row> | 94 | </row> |
95 | <row> | 95 | <row> |
diff --git a/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml b/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml index e3d5afcdafbb..0a4b90fcf2da 100644 --- a/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml +++ b/Documentation/DocBook/media/v4l/vidioc-g-ext-ctrls.xml | |||
@@ -284,13 +284,6 @@ These controls are described in <xref | |||
284 | processing controls. These controls are described in <xref | 284 | processing controls. These controls are described in <xref |
285 | linkend="image-process-controls" />.</entry> | 285 | linkend="image-process-controls" />.</entry> |
286 | </row> | 286 | </row> |
287 | <row> | ||
288 | <entry><constant>V4L2_CTRL_CLASS_JPEG</constant></entry> | ||
289 | <entry>0x9d0000</entry> | ||
290 | <entry>The class containing JPEG compression controls. | ||
291 | These controls are described in <xref | ||
292 | linkend="jpeg-controls" />.</entry> | ||
293 | </row> | ||
294 | </tbody> | 287 | </tbody> |
295 | </tgroup> | 288 | </tgroup> |
296 | </table> | 289 | </table> |
diff --git a/Documentation/arm/SPEAr/overview.txt b/Documentation/arm/SPEAr/overview.txt index 57aae7765c74..65610bf52ebf 100644 --- a/Documentation/arm/SPEAr/overview.txt +++ b/Documentation/arm/SPEAr/overview.txt | |||
@@ -60,4 +60,4 @@ Introduction | |||
60 | Document Author | 60 | Document Author |
61 | --------------- | 61 | --------------- |
62 | 62 | ||
63 | Viresh Kumar <viresh.kumar@st.com>, (c) 2010-2012 ST Microelectronics | 63 | Viresh Kumar <viresh.linux@gmail.com>, (c) 2010-2012 ST Microelectronics |
diff --git a/Documentation/device-mapper/verity.txt b/Documentation/device-mapper/verity.txt index 32e48797a14f..9884681535ee 100644 --- a/Documentation/device-mapper/verity.txt +++ b/Documentation/device-mapper/verity.txt | |||
@@ -7,39 +7,39 @@ This target is read-only. | |||
7 | 7 | ||
8 | Construction Parameters | 8 | Construction Parameters |
9 | ======================= | 9 | ======================= |
10 | <version> <dev> <hash_dev> <hash_start> | 10 | <version> <dev> <hash_dev> |
11 | <data_block_size> <hash_block_size> | 11 | <data_block_size> <hash_block_size> |
12 | <num_data_blocks> <hash_start_block> | 12 | <num_data_blocks> <hash_start_block> |
13 | <algorithm> <digest> <salt> | 13 | <algorithm> <digest> <salt> |
14 | 14 | ||
15 | <version> | 15 | <version> |
16 | This is the version number of the on-disk format. | 16 | This is the type of the on-disk hash format. |
17 | 17 | ||
18 | 0 is the original format used in the Chromium OS. | 18 | 0 is the original format used in the Chromium OS. |
19 | The salt is appended when hashing, digests are stored continuously and | 19 | The salt is appended when hashing, digests are stored continuously and |
20 | the rest of the block is padded with zeros. | 20 | the rest of the block is padded with zeros. |
21 | 21 | ||
22 | 1 is the current format that should be used for new devices. | 22 | 1 is the current format that should be used for new devices. |
23 | The salt is prepended when hashing and each digest is | 23 | The salt is prepended when hashing and each digest is |
24 | padded with zeros to the power of two. | 24 | padded with zeros to the power of two. |
25 | 25 | ||
26 | <dev> | 26 | <dev> |
27 | This is the device containing the data the integrity of which needs to be | 27 | This is the device containing data, the integrity of which needs to be |
28 | checked. It may be specified as a path, like /dev/sdaX, or a device number, | 28 | checked. It may be specified as a path, like /dev/sdaX, or a device number, |
29 | <major>:<minor>. | 29 | <major>:<minor>. |
30 | 30 | ||
31 | <hash_dev> | 31 | <hash_dev> |
32 | This is the device that that supplies the hash tree data. It may be | 32 | This is the device that supplies the hash tree data. It may be |
33 | specified similarly to the device path and may be the same device. If the | 33 | specified similarly to the device path and may be the same device. If the |
34 | same device is used, the hash_start should be outside of the dm-verity | 34 | same device is used, the hash_start should be outside the configured |
35 | configured device size. | 35 | dm-verity device. |
36 | 36 | ||
37 | <data_block_size> | 37 | <data_block_size> |
38 | The block size on a data device. Each block corresponds to one digest on | 38 | The block size on a data device in bytes. |
39 | the hash device. | 39 | Each block corresponds to one digest on the hash device. |
40 | 40 | ||
41 | <hash_block_size> | 41 | <hash_block_size> |
42 | The size of a hash block. | 42 | The size of a hash block in bytes. |
43 | 43 | ||
44 | <num_data_blocks> | 44 | <num_data_blocks> |
45 | The number of data blocks on the data device. Additional blocks are | 45 | The number of data blocks on the data device. Additional blocks are |
@@ -65,7 +65,7 @@ Construction Parameters | |||
65 | Theory of operation | 65 | Theory of operation |
66 | =================== | 66 | =================== |
67 | 67 | ||
68 | dm-verity is meant to be setup as part of a verified boot path. This | 68 | dm-verity is meant to be set up as part of a verified boot path. This |
69 | may be anything ranging from a boot using tboot or trustedgrub to just | 69 | may be anything ranging from a boot using tboot or trustedgrub to just |
70 | booting from a known-good device (like a USB drive or CD). | 70 | booting from a known-good device (like a USB drive or CD). |
71 | 71 | ||
@@ -73,20 +73,20 @@ When a dm-verity device is configured, it is expected that the caller | |||
73 | has been authenticated in some way (cryptographic signatures, etc). | 73 | has been authenticated in some way (cryptographic signatures, etc). |
74 | After instantiation, all hashes will be verified on-demand during | 74 | After instantiation, all hashes will be verified on-demand during |
75 | disk access. If they cannot be verified up to the root node of the | 75 | disk access. If they cannot be verified up to the root node of the |
76 | tree, the root hash, then the I/O will fail. This should identify | 76 | tree, the root hash, then the I/O will fail. This should detect |
77 | tampering with any data on the device and the hash data. | 77 | tampering with any data on the device and the hash data. |
78 | 78 | ||
79 | Cryptographic hashes are used to assert the integrity of the device on a | 79 | Cryptographic hashes are used to assert the integrity of the device on a |
80 | per-block basis. This allows for a lightweight hash computation on first read | 80 | per-block basis. This allows for a lightweight hash computation on first read |
81 | into the page cache. Block hashes are stored linearly-aligned to the nearest | 81 | into the page cache. Block hashes are stored linearly, aligned to the nearest |
82 | block the size of a page. | 82 | block size. |
83 | 83 | ||
84 | Hash Tree | 84 | Hash Tree |
85 | --------- | 85 | --------- |
86 | 86 | ||
87 | Each node in the tree is a cryptographic hash. If it is a leaf node, the hash | 87 | Each node in the tree is a cryptographic hash. If it is a leaf node, the hash |
88 | is of some block data on disk. If it is an intermediary node, then the hash is | 88 | of some data block on disk is calculated. If it is an intermediary node, |
89 | of a number of child nodes. | 89 | the hash of a number of child nodes is calculated. |
90 | 90 | ||
91 | Each entry in the tree is a collection of neighboring nodes that fit in one | 91 | Each entry in the tree is a collection of neighboring nodes that fit in one |
92 | block. The number is determined based on block_size and the size of the | 92 | block. The number is determined based on block_size and the size of the |
@@ -110,63 +110,23 @@ alg = sha256, num_blocks = 32768, block_size = 4096 | |||
110 | On-disk format | 110 | On-disk format |
111 | ============== | 111 | ============== |
112 | 112 | ||
113 | Below is the recommended on-disk format. The verity kernel code does not | 113 | The verity kernel code does not read the verity metadata on-disk header. |
114 | read the on-disk header. It only reads the hash blocks which directly | 114 | It only reads the hash blocks which directly follow the header. |
115 | follow the header. It is expected that a user-space tool will verify the | 115 | It is expected that a user-space tool will verify the integrity of the |
116 | integrity of the verity_header and then call dmsetup with the correct | 116 | verity header. |
117 | parameters. Alternatively, the header can be omitted and the dmsetup | ||
118 | parameters can be passed via the kernel command-line in a rooted chain | ||
119 | of trust where the command-line is verified. | ||
120 | 117 | ||
121 | The on-disk format is especially useful in cases where the hash blocks | 118 | Alternatively, the header can be omitted and the dmsetup parameters can |
122 | are on a separate partition. The magic number allows easy identification | 119 | be passed via the kernel command-line in a rooted chain of trust where |
123 | of the partition contents. Alternatively, the hash blocks can be stored | 120 | the command-line is verified. |
124 | in the same partition as the data to be verified. In such a configuration | ||
125 | the filesystem on the partition would be sized a little smaller than | ||
126 | the full-partition, leaving room for the hash blocks. | ||
127 | |||
128 | struct superblock { | ||
129 | uint8_t signature[8] | ||
130 | "verity\0\0"; | ||
131 | |||
132 | uint8_t version; | ||
133 | 1 - current format | ||
134 | |||
135 | uint8_t data_block_bits; | ||
136 | log2(data block size) | ||
137 | |||
138 | uint8_t hash_block_bits; | ||
139 | log2(hash block size) | ||
140 | |||
141 | uint8_t pad1[1]; | ||
142 | zero padding | ||
143 | |||
144 | uint16_t salt_size; | ||
145 | big-endian salt size | ||
146 | |||
147 | uint8_t pad2[2]; | ||
148 | zero padding | ||
149 | |||
150 | uint32_t data_blocks_hi; | ||
151 | big-endian high 32 bits of the 64-bit number of data blocks | ||
152 | |||
153 | uint32_t data_blocks_lo; | ||
154 | big-endian low 32 bits of the 64-bit number of data blocks | ||
155 | |||
156 | uint8_t algorithm[16]; | ||
157 | cryptographic algorithm | ||
158 | |||
159 | uint8_t salt[384]; | ||
160 | salt (the salt size is specified above) | ||
161 | |||
162 | uint8_t pad3[88]; | ||
163 | zero padding to 512-byte boundary | ||
164 | } | ||
165 | 121 | ||
166 | Directly following the header (and with sector number padded to the next hash | 122 | Directly following the header (and with sector number padded to the next hash |
167 | block boundary) are the hash blocks which are stored a depth at a time | 123 | block boundary) are the hash blocks which are stored a depth at a time |
168 | (starting from the root), sorted in order of increasing index. | 124 | (starting from the root), sorted in order of increasing index. |
169 | 125 | ||
126 | The full specification of kernel parameters and on-disk metadata format | ||
127 | is available at the cryptsetup project's wiki page | ||
128 | http://code.google.com/p/cryptsetup/wiki/DMVerity | ||
129 | |||
170 | Status | 130 | Status |
171 | ====== | 131 | ====== |
172 | V (for Valid) is returned if every check performed so far was valid. | 132 | V (for Valid) is returned if every check performed so far was valid. |
@@ -174,21 +134,22 @@ If any check failed, C (for Corruption) is returned. | |||
174 | 134 | ||
175 | Example | 135 | Example |
176 | ======= | 136 | ======= |
177 | 137 | Set up a device: | |
178 | Setup a device: | 138 | # dmsetup create vroot --readonly --table \ |
179 | dmsetup create vroot --table \ | 139 | "0 2097152 verity 1 /dev/sda1 /dev/sda2 4096 4096 262144 1 sha256 "\ |
180 | "0 2097152 "\ | ||
181 | "verity 1 /dev/sda1 /dev/sda2 4096 4096 2097152 1 "\ | ||
182 | "4392712ba01368efdf14b05c76f9e4df0d53664630b5d48632ed17a137f39076 "\ | 140 | "4392712ba01368efdf14b05c76f9e4df0d53664630b5d48632ed17a137f39076 "\ |
183 | "1234000000000000000000000000000000000000000000000000000000000000" | 141 | "1234000000000000000000000000000000000000000000000000000000000000" |
184 | 142 | ||
185 | A command line tool veritysetup is available to compute or verify | 143 | A command line tool veritysetup is available to compute or verify |
186 | the hash tree or activate the kernel driver. This is available from | 144 | the hash tree or activate the kernel device. This is available from |
187 | the LVM2 upstream repository and may be supplied as a package called | 145 | the cryptsetup upstream repository http://code.google.com/p/cryptsetup/ |
188 | device-mapper-verity-tools: | 146 | (as a libcryptsetup extension). |
189 | git://sources.redhat.com/git/lvm2 | 147 | |
190 | http://sourceware.org/git/?p=lvm2.git | 148 | Create hash on the device: |
191 | http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/verity?cvsroot=lvm2 | 149 | # veritysetup format /dev/sda1 /dev/sda2 |
192 | 150 | ... | |
193 | veritysetup -a vroot /dev/sda1 /dev/sda2 \ | 151 | Root hash: 4392712ba01368efdf14b05c76f9e4df0d53664630b5d48632ed17a137f39076 |
194 | 4392712ba01368efdf14b05c76f9e4df0d53664630b5d48632ed17a137f39076 | 152 | |
153 | Activate the device: | ||
154 | # veritysetup create vroot /dev/sda1 /dev/sda2 \ | ||
155 | 4392712ba01368efdf14b05c76f9e4df0d53664630b5d48632ed17a137f39076 | ||
diff --git a/Documentation/devicetree/bindings/input/fsl-mma8450.txt b/Documentation/devicetree/bindings/input/fsl-mma8450.txt index a00c94ccbdee..0b96e5737d3a 100644 --- a/Documentation/devicetree/bindings/input/fsl-mma8450.txt +++ b/Documentation/devicetree/bindings/input/fsl-mma8450.txt | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | Required properties: | 3 | Required properties: |
4 | - compatible : "fsl,mma8450". | 4 | - compatible : "fsl,mma8450". |
5 | - reg: the I2C address of MMA8450 | ||
5 | 6 | ||
6 | Example: | 7 | Example: |
7 | 8 | ||
diff --git a/Documentation/devicetree/bindings/mfd/mc13xxx.txt b/Documentation/devicetree/bindings/mfd/mc13xxx.txt index 19f6af47a792..baf07987ae68 100644 --- a/Documentation/devicetree/bindings/mfd/mc13xxx.txt +++ b/Documentation/devicetree/bindings/mfd/mc13xxx.txt | |||
@@ -46,8 +46,8 @@ Examples: | |||
46 | 46 | ||
47 | ecspi@70010000 { /* ECSPI1 */ | 47 | ecspi@70010000 { /* ECSPI1 */ |
48 | fsl,spi-num-chipselects = <2>; | 48 | fsl,spi-num-chipselects = <2>; |
49 | cs-gpios = <&gpio3 24 0>, /* GPIO4_24 */ | 49 | cs-gpios = <&gpio4 24 0>, /* GPIO4_24 */ |
50 | <&gpio3 25 0>; /* GPIO4_25 */ | 50 | <&gpio4 25 0>; /* GPIO4_25 */ |
51 | status = "okay"; | 51 | status = "okay"; |
52 | 52 | ||
53 | pmic: mc13892@0 { | 53 | pmic: mc13892@0 { |
diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt index c7e404b3ef05..fea541ee8b34 100644 --- a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt | |||
@@ -29,6 +29,6 @@ esdhc@70008000 { | |||
29 | compatible = "fsl,imx51-esdhc"; | 29 | compatible = "fsl,imx51-esdhc"; |
30 | reg = <0x70008000 0x4000>; | 30 | reg = <0x70008000 0x4000>; |
31 | interrupts = <2>; | 31 | interrupts = <2>; |
32 | cd-gpios = <&gpio0 6 0>; /* GPIO1_6 */ | 32 | cd-gpios = <&gpio1 6 0>; /* GPIO1_6 */ |
33 | wp-gpios = <&gpio0 5 0>; /* GPIO1_5 */ | 33 | wp-gpios = <&gpio1 5 0>; /* GPIO1_5 */ |
34 | }; | 34 | }; |
diff --git a/Documentation/devicetree/bindings/net/fsl-fec.txt b/Documentation/devicetree/bindings/net/fsl-fec.txt index 7ab9e1a2d8be..4616fc28ee86 100644 --- a/Documentation/devicetree/bindings/net/fsl-fec.txt +++ b/Documentation/devicetree/bindings/net/fsl-fec.txt | |||
@@ -19,6 +19,6 @@ ethernet@83fec000 { | |||
19 | reg = <0x83fec000 0x4000>; | 19 | reg = <0x83fec000 0x4000>; |
20 | interrupts = <87>; | 20 | interrupts = <87>; |
21 | phy-mode = "mii"; | 21 | phy-mode = "mii"; |
22 | phy-reset-gpios = <&gpio1 14 0>; /* GPIO2_14 */ | 22 | phy-reset-gpios = <&gpio2 14 0>; /* GPIO2_14 */ |
23 | local-mac-address = [00 04 9F 01 1B B9]; | 23 | local-mac-address = [00 04 9F 01 1B B9]; |
24 | }; | 24 | }; |
diff --git a/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt b/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt index 9841057d112b..4256a6df9b79 100644 --- a/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt +++ b/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt | |||
@@ -17,6 +17,6 @@ ecspi@70010000 { | |||
17 | reg = <0x70010000 0x4000>; | 17 | reg = <0x70010000 0x4000>; |
18 | interrupts = <36>; | 18 | interrupts = <36>; |
19 | fsl,spi-num-chipselects = <2>; | 19 | fsl,spi-num-chipselects = <2>; |
20 | cs-gpios = <&gpio3 24 0>, /* GPIO4_24 */ | 20 | cs-gpios = <&gpio3 24 0>, /* GPIO3_24 */ |
21 | <&gpio3 25 0>; /* GPIO4_25 */ | 21 | <&gpio3 25 0>; /* GPIO3_25 */ |
22 | }; | 22 | }; |
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 6eab91747a86..db4d3af3643c 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt | |||
@@ -3,6 +3,7 @@ Device tree binding vendor prefix registry. Keep list in alphabetical order. | |||
3 | This isn't an exhaustive list, but you should add new prefixes to it before | 3 | This isn't an exhaustive list, but you should add new prefixes to it before |
4 | using them to avoid name-space collisions. | 4 | using them to avoid name-space collisions. |
5 | 5 | ||
6 | ad Avionic Design GmbH | ||
6 | adi Analog Devices, Inc. | 7 | adi Analog Devices, Inc. |
7 | amcc Applied Micro Circuits Corporation (APM, formally AMCC) | 8 | amcc Applied Micro Circuits Corporation (APM, formally AMCC) |
8 | apm Applied Micro Circuits Corporation (APM) | 9 | apm Applied Micro Circuits Corporation (APM) |
diff --git a/Documentation/hwmon/coretemp b/Documentation/hwmon/coretemp index 84d46c0c71a3..c86b50c03ea8 100644 --- a/Documentation/hwmon/coretemp +++ b/Documentation/hwmon/coretemp | |||
@@ -6,7 +6,9 @@ Supported chips: | |||
6 | Prefix: 'coretemp' | 6 | Prefix: 'coretemp' |
7 | CPUID: family 0x6, models 0xe (Pentium M DC), 0xf (Core 2 DC 65nm), | 7 | CPUID: family 0x6, models 0xe (Pentium M DC), 0xf (Core 2 DC 65nm), |
8 | 0x16 (Core 2 SC 65nm), 0x17 (Penryn 45nm), | 8 | 0x16 (Core 2 SC 65nm), 0x17 (Penryn 45nm), |
9 | 0x1a (Nehalem), 0x1c (Atom), 0x1e (Lynnfield) | 9 | 0x1a (Nehalem), 0x1c (Atom), 0x1e (Lynnfield), |
10 | 0x26 (Tunnel Creek Atom), 0x27 (Medfield Atom), | ||
11 | 0x36 (Cedar Trail Atom) | ||
10 | Datasheet: Intel 64 and IA-32 Architectures Software Developer's Manual | 12 | Datasheet: Intel 64 and IA-32 Architectures Software Developer's Manual |
11 | Volume 3A: System Programming Guide | 13 | Volume 3A: System Programming Guide |
12 | http://softwarecommunity.intel.com/Wiki/Mobility/720.htm | 14 | http://softwarecommunity.intel.com/Wiki/Mobility/720.htm |
@@ -52,6 +54,17 @@ Some information comes from ark.intel.com | |||
52 | 54 | ||
53 | Process Processor TjMax(C) | 55 | Process Processor TjMax(C) |
54 | 56 | ||
57 | 22nm Core i5/i7 Processors | ||
58 | i7 3920XM, 3820QM, 3720QM, 3667U, 3520M 105 | ||
59 | i5 3427U, 3360M/3320M 105 | ||
60 | i7 3770/3770K 105 | ||
61 | i5 3570/3570K, 3550, 3470/3450 105 | ||
62 | i7 3770S 103 | ||
63 | i5 3570S/3550S, 3475S/3470S/3450S 103 | ||
64 | i7 3770T 94 | ||
65 | i5 3570T 94 | ||
66 | i5 3470T 91 | ||
67 | |||
55 | 32nm Core i3/i5/i7 Processors | 68 | 32nm Core i3/i5/i7 Processors |
56 | i7 660UM/640/620, 640LM/620, 620M, 610E 105 | 69 | i7 660UM/640/620, 640LM/620, 620M, 610E 105 |
57 | i5 540UM/520/430, 540M/520/450/430 105 | 70 | i5 540UM/520/430, 540M/520/450/430 105 |
@@ -65,6 +78,11 @@ Process Processor TjMax(C) | |||
65 | U3400 105 | 78 | U3400 105 |
66 | P4505/P4500 90 | 79 | P4505/P4500 90 |
67 | 80 | ||
81 | 32nm Atom Processors | ||
82 | Z2460 90 | ||
83 | D2700/2550/2500 100 | ||
84 | N2850/2800/2650/2600 100 | ||
85 | |||
68 | 45nm Xeon Processors 5400 Quad-Core | 86 | 45nm Xeon Processors 5400 Quad-Core |
69 | X5492, X5482, X5472, X5470, X5460, X5450 85 | 87 | X5492, X5482, X5472, X5470, X5460, X5450 85 |
70 | E5472, E5462, E5450/40/30/20/10/05 85 | 88 | E5472, E5462, E5450/40/30/20/10/05 85 |
@@ -85,6 +103,8 @@ Process Processor TjMax(C) | |||
85 | N475/470/455/450 100 | 103 | N475/470/455/450 100 |
86 | N280/270 90 | 104 | N280/270 90 |
87 | 330/230 125 | 105 | 330/230 125 |
106 | E680/660/640/620 90 | ||
107 | E680T/660T/640T/620T 110 | ||
88 | 108 | ||
89 | 45nm Core2 Processors | 109 | 45nm Core2 Processors |
90 | Solo ULV SU3500/3300 100 | 110 | Solo ULV SU3500/3300 100 |
diff --git a/Documentation/prctl/no_new_privs.txt b/Documentation/prctl/no_new_privs.txt new file mode 100644 index 000000000000..f7be84fba910 --- /dev/null +++ b/Documentation/prctl/no_new_privs.txt | |||
@@ -0,0 +1,57 @@ | |||
1 | The execve system call can grant a newly-started program privileges that | ||
2 | its parent did not have. The most obvious examples are setuid/setgid | ||
3 | programs and file capabilities. To prevent the parent program from | ||
4 | gaining these privileges as well, the kernel and user code must be | ||
5 | careful to prevent the parent from doing anything that could subvert the | ||
6 | child. For example: | ||
7 | |||
8 | - The dynamic loader handles LD_* environment variables differently if | ||
9 | a program is setuid. | ||
10 | |||
11 | - chroot is disallowed to unprivileged processes, since it would allow | ||
12 | /etc/passwd to be replaced from the point of view of a process that | ||
13 | inherited chroot. | ||
14 | |||
15 | - The exec code has special handling for ptrace. | ||
16 | |||
17 | These are all ad-hoc fixes. The no_new_privs bit (since Linux 3.5) is a | ||
18 | new, generic mechanism to make it safe for a process to modify its | ||
19 | execution environment in a manner that persists across execve. Any task | ||
20 | can set no_new_privs. Once the bit is set, it is inherited across fork, | ||
21 | clone, and execve and cannot be unset. With no_new_privs set, execve | ||
22 | promises not to grant the privilege to do anything that could not have | ||
23 | been done without the execve call. For example, the setuid and setgid | ||
24 | bits will no longer change the uid or gid; file capabilities will not | ||
25 | add to the permitted set, and LSMs will not relax constraints after | ||
26 | execve. | ||
27 | |||
28 | To set no_new_privs, use prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0). | ||
29 | |||
30 | Be careful, though: LSMs might also not tighten constraints on exec | ||
31 | in no_new_privs mode. (This means that setting up a general-purpose | ||
32 | service launcher to set no_new_privs before execing daemons may | ||
33 | interfere with LSM-based sandboxing.) | ||
34 | |||
35 | Note that no_new_privs does not prevent privilege changes that do not | ||
36 | involve execve. An appropriately privileged task can still call | ||
37 | setuid(2) and receive SCM_RIGHTS datagrams. | ||
38 | |||
39 | There are two main use cases for no_new_privs so far: | ||
40 | |||
41 | - Filters installed for the seccomp mode 2 sandbox persist across | ||
42 | execve and can change the behavior of newly-executed programs. | ||
43 | Unprivileged users are therefore only allowed to install such filters | ||
44 | if no_new_privs is set. | ||
45 | |||
46 | - By itself, no_new_privs can be used to reduce the attack surface | ||
47 | available to an unprivileged user. If everything running with a | ||
48 | given uid has no_new_privs set, then that uid will be unable to | ||
49 | escalate its privileges by directly attacking setuid, setgid, and | ||
50 | fcap-using binaries; it will need to compromise something without the | ||
51 | no_new_privs bit set first. | ||
52 | |||
53 | In the future, other potentially dangerous kernel features could become | ||
54 | available to unprivileged tasks if no_new_privs is set. In principle, | ||
55 | several options to unshare(2) and clone(2) would be safe when | ||
56 | no_new_privs is set, and no_new_privs + chroot is considerable less | ||
57 | dangerous than chroot by itself. | ||
diff --git a/Documentation/stable_kernel_rules.txt b/Documentation/stable_kernel_rules.txt index f0ab5cf28fca..4a7b54bd37e8 100644 --- a/Documentation/stable_kernel_rules.txt +++ b/Documentation/stable_kernel_rules.txt | |||
@@ -12,6 +12,12 @@ Rules on what kind of patches are accepted, and which ones are not, into the | |||
12 | marked CONFIG_BROKEN), an oops, a hang, data corruption, a real | 12 | marked CONFIG_BROKEN), an oops, a hang, data corruption, a real |
13 | security issue, or some "oh, that's not good" issue. In short, something | 13 | security issue, or some "oh, that's not good" issue. In short, something |
14 | critical. | 14 | critical. |
15 | - Serious issues as reported by a user of a distribution kernel may also | ||
16 | be considered if they fix a notable performance or interactivity issue. | ||
17 | As these fixes are not as obvious and have a higher risk of a subtle | ||
18 | regression they should only be submitted by a distribution kernel | ||
19 | maintainer and include an addendum linking to a bugzilla entry if it | ||
20 | exists and additional information on the user-visible impact. | ||
15 | - New device IDs and quirks are also accepted. | 21 | - New device IDs and quirks are also accepted. |
16 | - No "theoretical race condition" issues, unless an explanation of how the | 22 | - No "theoretical race condition" issues, unless an explanation of how the |
17 | race can be exploited is also provided. | 23 | race can be exploited is also provided. |
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 930126698a0f..2c9948379469 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -1930,6 +1930,23 @@ The "pte_enc" field provides a value that can OR'ed into the hash | |||
1930 | PTE's RPN field (ie, it needs to be shifted left by 12 to OR it | 1930 | PTE's RPN field (ie, it needs to be shifted left by 12 to OR it |
1931 | into the hash PTE second double word). | 1931 | into the hash PTE second double word). |
1932 | 1932 | ||
1933 | 4.75 KVM_IRQFD | ||
1934 | |||
1935 | Capability: KVM_CAP_IRQFD | ||
1936 | Architectures: x86 | ||
1937 | Type: vm ioctl | ||
1938 | Parameters: struct kvm_irqfd (in) | ||
1939 | Returns: 0 on success, -1 on error | ||
1940 | |||
1941 | Allows setting an eventfd to directly trigger a guest interrupt. | ||
1942 | kvm_irqfd.fd specifies the file descriptor to use as the eventfd and | ||
1943 | kvm_irqfd.gsi specifies the irqchip pin toggled by this event. When | ||
1944 | an event is tiggered on the eventfd, an interrupt is injected into | ||
1945 | the guest using the specified gsi pin. The irqfd is removed using | ||
1946 | the KVM_IRQFD_FLAG_DEASSIGN flag, specifying both kvm_irqfd.fd | ||
1947 | and kvm_irqfd.gsi. | ||
1948 | |||
1949 | |||
1933 | 5. The kvm_run structure | 1950 | 5. The kvm_run structure |
1934 | ------------------------ | 1951 | ------------------------ |
1935 | 1952 | ||