* [Question] [Block] Is there a way to control the read caching of a block device?
@ 2024-09-03 18:13 DUO Labs
2024-09-03 20:31 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 2+ messages in thread
From: DUO Labs @ 2024-09-03 18:13 UTC (permalink / raw)
To: qemu-devel
I know that the `cache` parameter for `-drive` controls the caching behavior when writing from the guest to the host, but is there a way to control the reading behavior host->guest? Currently, on HEAD, if I open a file on both the guest and host, and write some data to the drive on the (macOS) host, the time until it shows up in the (Linux) guest is inconsistent (more specifically, it seems that the data won't show up in the guest unless I close the file and reopen it --- by contrast, if I write to the drive on the guest, it shows up nearly instantaneously on the host).
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Question] [Block] Is there a way to control the read caching of a block device?
2024-09-03 18:13 [Question] [Block] Is there a way to control the read caching of a block device? DUO Labs
@ 2024-09-03 20:31 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-09-03 20:31 UTC (permalink / raw)
To: DUO Labs, qemu-block; +Cc: qemu-devel
Cc'ing the qemu-block@ list
On 3/9/24 20:13, DUO Labs wrote:
> I know that the `cache` parameter for `-drive` controls the caching
> behavior when writing from the guest to the host, but is there a way to
> control the reading behavior host->guest? Currently, on HEAD, if I open
> a file on both the guest and host, and write some data to the drive on
> the (macOS) host, the time until it shows up in the (Linux) guest is
> inconsistent (more specifically, it seems that the data won't show up in
> the guest unless I close the file and reopen it --- by contrast, if I
> write to the drive on the guest, it shows up nearly instantaneously on
> the host).
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-03 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-03 18:13 [Question] [Block] Is there a way to control the read caching of a block device? DUO Labs
2024-09-03 20:31 ` Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).