qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] question about block size and virtual disks
@ 2017-04-20 21:03 Chris Friesen
  2017-04-20 21:21 ` Eric Blake
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Friesen @ 2017-04-20 21:03 UTC (permalink / raw)
  To: qemu-devel

Hi,

Suppose the host has a physical disk that only supports 4KB access, with no 512B 
fallback.

If we boot a guest with "cache=none", does the guest need to be able to handle 
disks with 4KB blocks or is qemu able to handle guests trying to access the disk 
with 512B granularity?

Also, does the 4KB block size get "passed-through" to the guest somehow so that 
the guest knows it needs to use 4KB blocks, or does that need to be explicitly 
specified via virtio-blk-pci.logical_block_size and/or 
virtio-blk-pci.physical_block_size parameters?  (Assuming I'm using virtio-blk-pci.)

Thanks,
Chris

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-25 11:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-20 21:03 [Qemu-devel] question about block size and virtual disks Chris Friesen
2017-04-20 21:21 ` Eric Blake
2017-04-21 16:26   ` Chris Friesen
2017-04-25 11:33     ` Kevin Wolf

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).