[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd
From: |
Richard W.M. Jones |
Subject: |
Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd |
Date: |
Wed, 8 Jan 2014 22:53:54 +0000 |
User-agent: |
Mutt/1.5.20 (2009-12-10) |
On Wed, Jan 08, 2014 at 11:45:39PM +0100, Paolo Bonzini wrote:
> Il 08/01/2014 23:24, Richard W.M. Jones ha scritto:
> > It's extremely difficult to know when it's safe to add this parameter.
> > Qemu gives no indication of when using discard=.. is safe (ie. won't
> > cause qemu to fail to start up or fail in some other way). It's even
> > worse when we have to go via libvirt which itself doesn't expose
> > qemu's capabilities upwards.
>
> It is a bug that "-help" doesn't list discard=on, but QMP
> query-command-line-options lists it correctly.
>
> libvirt could safely ignore discard if the underlying QEMU does not
> support it, but that's not how it was implemented. Currently,
> explicitly specifying either discard='on' and discard='off' will cause
> the VM to fail to start if QEMU does not support it. There are
> tradeoffs in both solutions...
That sucks .. for me ...
Can't we have an option like discard=ifpossible? libguestfs would use
this, since we'd always prefer to honour discard requests from our
kernel.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
- Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd, Richard W.M. Jones, 2014/01/02
- Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd, Paolo Bonzini, 2014/01/07
- Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd, Richard W.M. Jones, 2014/01/07
- Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd, Paolo Bonzini, 2014/01/07
- Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd, Richard W.M. Jones, 2014/01/07
- Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd, Richard W.M. Jones, 2014/01/07
- Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd, Paolo Bonzini, 2014/01/08
- Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd, Richard W.M. Jones, 2014/01/08
- Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd, Paolo Bonzini, 2014/01/08
- Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd,
Richard W.M. Jones <=
- Re: [Qemu-devel] TRIM/DISCARD/UNMAP support on qemu-nbd, Paolo Bonzini, 2014/01/09