[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt
From: |
Eduardo Habkost |
Subject: |
Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt |
Date: |
Mon, 26 Mar 2012 13:14:23 -0300 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Mar 26, 2012 at 02:03:21PM +0200, Gleb Natapov wrote:
> On Mon, Mar 26, 2012 at 01:59:05PM +0200, Avi Kivity wrote:
> > On 03/26/2012 01:24 PM, Jiri Denemark wrote:
> > > ...
> > > > > The command line becomes unstable if you use -nodefconfig.
> > > >
> > > > -no-user-config solves this but I fully expect libvirt would continue
> > > > to use
> > > > -nodefconfig.
> > >
> > > Libvirt uses -nodefaults -nodefconfig because it wants to fully control
> > > how
> > > the virtual machine will look like (mainly in terms of devices). In other
> > > words, we don't want any devices to just magically appear without libvirt
> > > knowing about them. -nodefaults gets rid of default devices that are built
> > > directly in qemu. Since users can set any devices or command line options
> > > (such as enable-kvm) into qemu configuration files in @SYSCONFDIR@, we
> > > need to
> > > avoid reading those files as well. Hence we use -nodefconfig. However, we
> > > would still like qemu to read CPU definitions, machine types, etc. once
> > > they
> > > become externally loaded configuration (or however we decide to call it).
> > > That
> > > said, when CPU definitions are moved into @DATADIR@, and -no-user-config
> > > is
> > > introduced, I don't see any reason for libvirt to keep using -nodefconfig.
ACK.
> > >
> > > I actually like
> > > -no-user-config
> > > more than
> > > -nodefconfig -readconfig @DATADIR@/...
> > > since it would avoid additional magic to detect what files libvirt should
> > > explicitly pass to -readconfig but basically any approach that would
> > > allow us
> > > to do read files only from @DATADIR@ is much better than what we have with
> > > -nodefconfig now.
> >
> > That's how I see it as well.
> >
> +1
>
> except that instead of -no-user-config we can do what most other
> programs do. If config file is specified during invocation default one
> is not used. After implementing -no-user-config (or similar) we can drop
> -nodefconfig entirely since its only user will be gone it its semantics
> is not clear.
Awesome. It looks like we have a solution now? Anthony, do you agree
with that? Daniel, it looks good for you?
It looks like in the end, no one will ever use -nodefconfig because it's
optimizing for a use-case that nobody cares about. Maybe I'm wrong and
somebody somewhere will use -nodefconfig, maybe Anthony has a specific
use-case or specific tools in mind, I don't know. But personally I will
probably simply ignore the existence of -nodefconfig because it is
absolutely useless for me and for libvirt.
--
Eduardo
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, (continued)
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Avi Kivity, 2012/03/25
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Anthony Liguori, 2012/03/25
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Avi Kivity, 2012/03/26
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Gleb Natapov, 2012/03/26
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Anthony Liguori, 2012/03/26
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Avi Kivity, 2012/03/28
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Eduardo Habkost, 2012/03/26
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Jiri Denemark, 2012/03/26
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Avi Kivity, 2012/03/26
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Gleb Natapov, 2012/03/26
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt,
Eduardo Habkost <=
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Anthony Liguori, 2012/03/26
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Gleb Natapov, 2012/03/25
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Anthony Liguori, 2012/03/25
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Avi Kivity, 2012/03/25
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Anthony Liguori, 2012/03/25
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Avi Kivity, 2012/03/25
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Anthony Liguori, 2012/03/25
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Avi Kivity, 2012/03/25
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Anthony Liguori, 2012/03/26
- Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt, Avi Kivity, 2012/03/28