[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH 3/3] qemu: Forbid migration with cache != none
- From: Jiri Denemark <jdenemar redhat com>
- To: Shu Ming <shuming linux vnet ibm com>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] [PATCH 3/3] qemu: Forbid migration with cache != none
- Date: Wed, 22 Feb 2012 14:57:51 +0100
On Wed, Feb 22, 2012 at 14:58:31 +0800, Shu Ming wrote:
> On 2012-2-22 0:17, Jiri Denemark wrote:
> > @@ -817,6 +817,27 @@ qemuMigrationIsAllowed(struct qemud_driver *driver, virDomainObjPtr vm,
> > return true;
> > }
> >
> > +static bool
> > +qemuMigrationIsSafe(virDomainDefPtr def)
> > +{
> > + int i;
> > +
> > + for (i = 0 ; i< def->ndisks ; i++) {
> > + virDomainDiskDefPtr disk = def->disks[i];
> > +
> > + /* shared&& !readonly implies cache=none */
> > + if (disk->cachemode != VIR_DOMAIN_DISK_CACHE_DISABLE&&
>
> how about disk write through flag here? This flag should also imply
> cache=none.
>
> i.e, VIR_DOMAIN_DISK_CACHE_WRITETHRU
AFAIK, only VIR_DOMAIN_DISK_CACHE_DISABLE translates into cache=none unless
qemu binary is old enough to only support cache=on|off
Jirka
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]