summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorStefan Hajnoczi2018-04-27 18:23:12 +0200
committerStefan Hajnoczi2018-05-11 17:43:05 +0200
commit31be8a2a97ecba7d31a82932286489cac318e9e9 (patch)
treefda46bdc3f416a03f950e61621a0397e46665b5f /scripts
parentblock/file-posix: implement bdrv_co_invalidate_cache() on Linux (diff)
downloadqemu-31be8a2a97ecba7d31a82932286489cac318e9e9.tar.gz
qemu-31be8a2a97ecba7d31a82932286489cac318e9e9.tar.xz
qemu-31be8a2a97ecba7d31a82932286489cac318e9e9.zip
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions