[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Interesting qemu/virt-manager bug about the "rotational" attribute o
Re: Interesting qemu/virt-manager bug about the "rotational" attribute on virtio-blk disks
Fri, 17 Jul 2020 09:06:05 +0200
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
On 16.07.20 10:06, Richard W.M. Jones wrote:
> A virtio-blk disk which is backed by a raw file on an SSD,
> inside the guest shows rotational = 1.
> I assumed that qemu must have a "rotational" property for disks and
> this would be communicated by virtio to the guest, but qemu and virtio
> don't seem to have this. Pretty surprising! Is it called something
> other than "rotational"?
I sent an RFC last year to inquire the rotational info and expose it in
the block layer:
It didn’t expose that info in guest devices, but I wanted to do that in
v1 (if it ever came to v1, which so far it didn’t). However, Stefan
made me aware that that at least wouldn’t be easy, because this would be
a guest-visible change that could occur on migration, which is forbidden.
So if we really wanted something like this, I suppose we’d need to
ensure that the value can’t just silently change on migration, but
instead the change is somehow explicitly announced to the guest, as if
the disk was swapped out and replaced by an SSD (and I don’t know if
that’s worth the effort).
Description: OpenPGP digital signature