Re: [PATCH 05/12] qemu: Manage disk's unpriv_sgio in domain lifecyle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 11, 2012 at 09:37:22PM +0800, Osier Yang wrote:
> Here lifecyle only means starting and shutdown.
> 
> To record the original "unpriv_sgio" value for non-shared disk,
> this introduces "orig_cdbfilter" for disk def. On domain starting,
> the disk's "unpriv_sgio" is set with regards to the config in domain
> XML.  And on domain shutdown, it's restored to the original value
> ("orig_cdbfilter"). Later patch will prevent restoring if other
> domain is still using the shared disk.
> ---
>  src/conf/domain_conf.h  |    1 +
>  src/qemu/qemu_process.c |   34 +++++++++++++++++++++++++++++++++-
>  2 files changed, 34 insertions(+), 1 deletions(-)
> 
> diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
> index 9586f75..256bea2 100644
> --- a/src/conf/domain_conf.h
> +++ b/src/conf/domain_conf.h
> @@ -629,6 +629,7 @@ struct _virDomainDiskDef {
>      bool rawio_specified;
>      int rawio; /* no = 0, yes = 1 */
>      int cdbfilter;
> +    int orig_cdbfilter;

Huh, why did you go to the bother of saving the original value
in the hash table, if you're saving it here too. THis just seems
bogus to me, and won't survive a restart of libvirtd in any
case.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]