mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
block/file-posix: add x-check-page-cache=on|off option
mincore(2) checks whether pages are resident. Use it to verify that page cache has been dropped. You can trigger a verification failure by mmapping the image file from another process that loads a byte from a page, forcing it to become resident. bdrv_co_invalidate_cache() will fail while that process is alive. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Message-id: 20180427162312.18583-3-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
dd577a26ff
commit
31be8a2a97
2 changed files with 104 additions and 3 deletions
|
@ -2530,6 +2530,10 @@
|
|||
# @locking: whether to enable file locking. If set to 'auto', only enable
|
||||
# when Open File Descriptor (OFD) locking API is available
|
||||
# (default: auto, since 2.10)
|
||||
# @x-check-cache-dropped: whether to check that page cache was dropped on live
|
||||
# migration. May cause noticeable delays if the image
|
||||
# file is large, do not use in production.
|
||||
# (default: off) (since: 2.13)
|
||||
#
|
||||
# Since: 2.9
|
||||
##
|
||||
|
@ -2537,7 +2541,8 @@
|
|||
'data': { 'filename': 'str',
|
||||
'*pr-manager': 'str',
|
||||
'*locking': 'OnOffAuto',
|
||||
'*aio': 'BlockdevAioOptions' } }
|
||||
'*aio': 'BlockdevAioOptions',
|
||||
'*x-check-cache-dropped': 'bool' } }
|
||||
|
||||
##
|
||||
# @BlockdevOptionsNull:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue